77 "style" : " error" ,
88 "restriction" : " error"
99 },
10- "plugins" : [" import" , " node" , " oxc" , " promise" , " unicorn" , " vitest" ],
10+ "plugins" : [" import" , " node" , " oxc" , " promise" , " unicorn" , " vitest" , " vue " ],
1111 "rules" : {
1212 "unicorn/filename-case" : [
1313 " error" ,
1414 {
1515 "case" : " snakeCase"
1616 }
1717 ],
18- "eslint/func-style" : [
18+ "eslint/func-style" : [" error" , " declaration" ],
19+ "eslint/sort-keys" : " off" ,
20+ "eslint/no-ternary" : " off" , // A utiliser pour des opérations simples
21+ "oxc/no-async-await" : " off" ,
22+ "oxc/no-rest-spread-properties" : " off" , // Enable if older browser support is needed
23+ "eslint/max-statements" : [" warn" , 20 ],
24+ "eslint/id-length" : [" error" , { "exceptions" : [" x" , " y" , " z" , " i" , " j" , " k" , " r" , " g" , " b" , " id" , " ID" , " fs" , " os" ], "min" : 3 }],
25+ "eslint/no-console" : " warn" , // Disable for debugging. Disable later to not have browser logs
26+ "sort-imports" : [" error" , { "allowSeparatedGroups" : true }],
27+ "eslint/no-undefined" : " off" , // Conflict with unicorn/no-typeof-undefined which prefers direct undefined comparison
28+ "import/prefer-default-export" : " off" ,
29+ "import/no-named-export" : " off" ,
30+ "import/no-namespace" : [" error" , { "ignore" : [" vuetify/*" ] }],
31+ "vue/max-props" : [" error" , { "maxProps" : 8 }],
32+ "oxc/no-optional-chaining" : " off" ,
33+ "node/no-process-env" : " off" ,
34+ "no-continue" : " off" ,
35+ "max-params" : [" warn" , { "max" : 4 }],
36+ "eslint/no-magic-numbers" : [
1937 " error" ,
2038 {
21- "style:" : " declaration"
39+ "ignore" : [-1 , 0 , 1 , 2 , 4 ],
40+ "ignoreArrayIndexes" : true
2241 }
2342 ],
24- "eslint/sort-keys" : " off" ,
25- "eslint/no-ternary" : " off"
2643 },
2744 "overrides" : [
2845 {
29- "files" : [" **/components/*" ],
46+ "files" : [" **/components/** " ],
3047 "rules" : {
3148 "unicorn/filename-case" : [
3249 " error" ,
3350 {
34- "case" : " PascalCase "
51+ "case" : " pascalCase "
3552 }
36- ]
53+ ],
54+ "import/unambiguous" : " warn"
55+ }
56+ },
57+ {
58+ "files" : [
59+ " app/plugins/**" ,
60+ " node_scripts/**" ,
61+ " server/**" ,
62+ " *.config.js" , ],
63+ "rules" : {
64+ "import/no-default-export" : " off" ,
65+ "unicorn/prefer-structured-clone" : " off" ,
66+ "unicorn/require-post-message-target-origin" : " off"
67+ }
68+ },
69+ {
70+ "files" : [" tests/**" ],
71+ "rules" : {
72+ "vitest/require-hook" : " off" ,
73+ "eslint/init-declarations" : " off" ,
74+ "vitest/require-top-level-describe" : " off"
75+ }
76+ },
77+ {
78+ "files" : [" **/preload.js" ],
79+ "rules" : {
80+ "import/no-commonjs" : " off" ,
81+ "import/unambiguous" : " off"
3782 }
3883 }
3984 ]
40- }
85+ }
0 commit comments