1- /*
2- ## Remaining rules ##
3-
1+ import { a11yEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/a11y' ;
42import {
53 complexityJsxTsxConfig ,
64 complexityTsJsConfig ,
75} from '@ovh-ux/manager-static-analysis-kit/eslint/complexity' ;
86import { cssEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/css' ;
9- import { checkFileEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/naming-conventions';
10- import { importEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/imports';
11- */
12- import { a11yEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/a11y' ;
137import { htmlEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/html' ;
148import { javascriptEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/javascript' ;
9+ import { checkFileEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/naming-conventions' ;
1510import { prettierEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/prettier' ;
1611import { reactEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/react' ;
1712import { tailwindJsxConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/tailwind-jsx' ;
@@ -20,24 +15,23 @@ import { vitestEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/t
2015import { typescriptEslintConfig } from '@ovh-ux/manager-static-analysis-kit/eslint/typescript' ;
2116
2217export default [
18+ /* ------------------------------------------------------------------------ */
19+ /* Basic Rules */
20+ /* ------------------------------------------------------------------------ */
2321 typescriptEslintConfig ,
2422 javascriptEslintConfig ,
2523 reactEslintConfig ,
2624 prettierEslintConfig ,
2725 tanStackQueryEslintConfig ,
2826 htmlEslintConfig ,
29- {
30- ...a11yEslintConfig ,
31- ignores : [ '**/*.spec.tsx' ] ,
32- } ,
3327 {
3428 rules : {
3529 '@typescript-eslint/no-misused-promises' : 'off' ,
3630 'react/no-multi-comp' : 'off' ,
3731 } ,
3832 } ,
3933 /* ------------------------------------------------------------------------ */
40- /* TailwindCSS Rules */
34+ /* TailwindCSS Rules */
4135 /* ------------------------------------------------------------------------ */
4236 tailwindJsxConfig ,
4337 {
@@ -56,7 +50,7 @@ export default [
5650 } ,
5751 } ,
5852 /* ------------------------------------------------------------------------ */
59- /* Vitest Rules */
53+ /* Vitest Rules */
6054 /* ------------------------------------------------------------------------ */
6155 {
6256 ...vitestEslintConfig ,
@@ -70,4 +64,46 @@ export default [
7064 ] ,
7165 } ,
7266 } ,
67+ /* ------------------------------------------------------------------------ */
68+ /* Complexity Rules */
69+ /* ------------------------------------------------------------------------ */
70+ complexityJsxTsxConfig ,
71+ complexityTsJsConfig ,
72+ {
73+ rules : {
74+ 'max-lines-per-function' : 'off' ,
75+ 'max-lines' : 'off' ,
76+ 'max-nested-callbacks' : 'off' ,
77+ } ,
78+ } ,
79+ /* ------------------------------------------------------------------------ */
80+ /* A11y Rules */
81+ /* ------------------------------------------------------------------------ */
82+ {
83+ ...a11yEslintConfig ,
84+ ignores : [ '**/*.spec.tsx' ] ,
85+ } ,
86+ /* ------------------------------------------------------------------------ */
87+ /* Css Rules */
88+ /* ------------------------------------------------------------------------ */
89+ cssEslintConfig ,
90+ {
91+ rules : {
92+ 'css/no-invalid-at-rules' : 'off' ,
93+ 'css/no-invalid-at-rule-placement' : 'off' ,
94+ 'css/no-invalid-properties' : 'off' ,
95+ } ,
96+ } ,
97+ /* ------------------------------------------------------------------------ */
98+ /* Naming Conventions Rules */
99+ /* ------------------------------------------------------------------------ */
100+ ...checkFileEslintConfig ,
101+ {
102+ rules : {
103+ 'check-file/folder-match-with-fex' : 'off' ,
104+ 'check-file/filename-naming-convention' : 'off' ,
105+ 'check-file/folder-naming-convention' : 'off' ,
106+ 'check-file/no-index' : 'off' ,
107+ } ,
108+ } ,
73109] ;
0 commit comments