Skip to content

Commit 4c8810a

Browse files
committed
refactor(pci-project): max-lines rules
ref: #MANAGER-20320 Signed-off-by: Fabien Henon <[email protected]>
1 parent c7ce000 commit 4c8810a

File tree

11 files changed

+936
-823
lines changed

11 files changed

+936
-823
lines changed

packages/manager/apps/pci-project/eslint.config.mjs

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,3 @@
1-
// Full adoption
2-
/*import { eslintSharedConfig } from '@ovh-ux/manager-static-analysis-kit';
3-
4-
export default eslintSharedConfig;
5-
*/
6-
// Progressive adoption
7-
// import { a11yEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/a11y';
8-
// import {
9-
// complexityJsxTsxConfig,
10-
// complexityTsJsConfig,
11-
// } from '@ovh-ux/manager-static-analysis-kit/eslint/complexity';
12-
// import { cssEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/css';
13-
// import { htmlEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/html';
14-
// import { importEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/imports';
15-
// import { javascriptEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/javascript';
16-
// import { checkFileEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/naming-conventions';
17-
// import { prettierEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/prettier';
18-
// import { reactEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/react';
19-
// import { tailwindJsxConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/tailwind-jsx';
20-
// import { tanStackQueryEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/tanstack';
21-
// import { vitestEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/tests';
22-
// import { typescriptEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/typescript';
23-
// // import { storybookEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/storybook';
24-
// export default [
25-
// javascriptEslintConfig,
26-
// // typescriptEslintConfig,
27-
// // reactEslintConfig,
28-
// // a11yEslintConfig,
29-
// // htmlEslintConfig,
30-
// // tailwindJsxConfig,
31-
// // tanStackQueryEslintConfig,
32-
// // ...importEslintConfig,
33-
// // ...checkFileEslintConfig,
34-
// // vitestEslintConfig,
35-
// // prettierEslintConfig,
36-
// // complexityJsxTsxConfig,
37-
// // complexityTsJsConfig,
38-
// {
39-
// ...cssEslintConfig,
40-
// files: ['**\/*.css', '**\/*.scss'],
41-
// },
42-
// ];
43-
// Progressive and disable some rules
44-
// import { typescriptEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/typescript';
45-
// export default [
46-
// {
47-
// ...typescriptEslintConfig,
48-
// rules: {
49-
// ...typescriptEslintConfig.rules,
50-
// '@typescript-eslint/no-unsafe-return': 'off',
51-
// '@typescript-eslint/no-unsafe-assignment': 'off',
52-
// '@typescript-eslint/no-explicit-any': 'off',
53-
// '@typescript-eslint/await-thenable': 'off'
54-
// },
55-
// },
56-
// ];
57-
// Progressive and disable full rules
58-
// import { typescriptEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/typescript';
59-
// export default [
60-
// {
61-
// ...typescriptEslintConfig,
62-
// rules: {},
63-
// },
64-
// ];
651
import { a11yEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/a11y';
662
import {
673
complexityJsxTsxConfig,
@@ -121,6 +57,7 @@ export default [
12157
complexityJsxTsxConfig,
12258
complexityTsJsConfig,
12359
{
60+
files: ['**/*.spec.ts', '**/*.spec.tsx', '**/setupTests.tsx'],
12461
rules: {
12562
'max-lines-per-function': 'off',
12663
'max-lines': 'off',

0 commit comments

Comments
 (0)