|
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 | | -// ]; |
65 | 1 | import { a11yEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/a11y'; |
66 | 2 | import { |
67 | 3 | complexityJsxTsxConfig, |
@@ -121,6 +57,7 @@ export default [ |
121 | 57 | complexityJsxTsxConfig, |
122 | 58 | complexityTsJsConfig, |
123 | 59 | { |
| 60 | + files: ['**/*.spec.ts', '**/*.spec.tsx', '**/setupTests.tsx'], |
124 | 61 | rules: { |
125 | 62 | 'max-lines-per-function': 'off', |
126 | 63 | 'max-lines': 'off', |
|
0 commit comments