33 "env" : {
44 "node" : true
55 },
6+ "extends" : [
7+ " ./node_modules/@eggjs/oxlint-config/.oxlintrc.json"
8+ ],
69 "categories" : {
7- "correctness" : " error " ,
10+ "correctness" : " allow " ,
811 "suspicious" : " allow" ,
912 "pedantic" : " allow" ,
1013 "style" : " allow" ,
1114 "nursery" : " allow" ,
12- "restriction" : " allow"
15+ "restriction" : " allow" ,
16+ "perf" : " allow"
1317 },
14- "plugins" : [
15- " oxc"
16- ],
1718 "rules" : {
1819 "no-extend-native" : " warn" ,
19- "no-control-regex" : " allow" ,
20- "no-unused-private-class-members" : " allow"
20+ // Disable TypeScript rules
21+ "typescript/explicit-function-return-type" : " allow" ,
22+ "typescript/consistent-type-imports" : " allow" ,
23+ "typescript/consistent-type-definitions" : " allow" ,
24+ "typescript/consistent-indexed-object-style" : " allow" ,
25+ "typescript/no-inferrable-types" : " allow" ,
26+ "typescript/array-type" : " allow" ,
27+ "typescript/no-non-null-assertion" : " allow" ,
28+ "typescript/no-explicit-any" : " allow" ,
29+ "typescript/no-import-type-side-effects" : " allow" ,
30+ "typescript/no-dynamic-delete" : " allow" ,
31+ "typescript/prefer-ts-expect-error" : " allow" ,
32+ "typescript/ban-ts-comment" : " allow" ,
33+ "typescript/prefer-enum-initializers" : " allow" ,
34+ "typescript/explicit-module-boundary-types" : " allow" ,
35+ // Disable import rules
36+ "import/exports-last" : " allow" ,
37+ "import/max-dependencies" : " allow" ,
38+ "import/no-cycle" : " allow" ,
39+ "import/no-anonymous-default-export" : " allow" ,
40+ "import/no-namespace" : " allow" ,
41+ "import/named" : " allow" ,
42+ "import/export" : " allow" ,
43+ "import/no-default-export" : " allow" ,
44+ "import/unambiguous" : " allow" ,
45+ "import/group-exports" : " allow" ,
46+ "import/extensions" : " allow" ,
47+ "import/consistent-type-specifier-style" : " allow" ,
48+ "import/prefer-default-export" : " allow" ,
49+ "import/no-named-as-default-member" : " allow" ,
50+ // Disable unicorn rules
51+ "unicorn/error-message" : " allow" ,
52+ "unicorn/no-null" : " allow" ,
53+ "unicorn/filename-case" : " allow" ,
54+ "unicorn/prefer-structured-clone" : " allow" ,
55+ "unicorn/prefer-logical-operator-over-ternary" : " allow" ,
56+ "unicorn/prefer-number-properties" : " allow" ,
57+ "unicorn/prefer-array-some" : " allow" ,
58+ "unicorn/prefer-string-slice" : " allow" ,
59+ "unicorn/throw-new-error" : " allow" ,
60+ "unicorn/catch-error-name" : " allow" ,
61+ "unicorn/prefer-spread" : " allow" ,
62+ "unicorn/numeric-separators-style" : " allow" ,
63+ "unicorn/prefer-string-raw" : " allow" ,
64+ "unicorn/text-encoding-identifier-case" : " allow" ,
65+ "unicorn/no-array-for-each" : " allow" ,
66+ "unicorn/explicit-length-check" : " allow" ,
67+ "unicorn/no-lonely-if" : " allow" ,
68+ "unicorn/no-useless-undefined" : " allow" ,
69+ "unicorn/prefer-date-now" : " allow" ,
70+ "unicorn/no-static-only-class" : " allow" ,
71+ "unicorn/no-typeof-undefined" : " allow" ,
72+ "unicorn/prefer-negative-index" : " allow" ,
73+ "unicorn/no-anonymous-default-export" : " allow" ,
74+ "unicorn/consistent-assert" : " allow" ,
75+ // Disable promise rules
76+ "promise/no-return-wrap" : " allow" ,
77+ "promise/param-names" : " allow" ,
78+ "promise/prefer-await-to-callbacks" : " allow" ,
79+ "promise/prefer-await-to-then" : " allow" ,
80+ "promise/prefer-catch" : " allow" ,
81+ "promise/no-return-in-finally" : " allow" ,
82+ "promise/avoid-new" : " allow" ,
83+ // Disable other ESLint rules
84+ "constructor-super" : " allow" ,
85+ "getter-return" : " allow" ,
86+ "no-undef" : " allow" ,
87+ "no-unreachable" : " allow" ,
88+ "no-var" : " allow" ,
89+ "no-eq-null" : " allow" ,
90+ "no-await-in-loop" : " allow" ,
91+ "eqeqeq" : " allow" ,
92+ "init-declarations" : " allow" ,
93+ "curly" : " allow" ,
94+ "no-ternary" : " allow" ,
95+ "max-params" : " allow" ,
96+ "no-await-expression-member" : " allow" ,
97+ "no-continue" : " allow" ,
98+ "guard-for-in" : " allow" ,
99+ "func-style" : " allow" ,
100+ "sort-imports" : " allow" ,
101+ "yoda" : " allow" ,
102+ "sort-keys" : " allow" ,
103+ "no-magic-numbers" : " allow" ,
104+ "no-duplicate-imports" : " allow" ,
105+ "no-multi-assign" : " allow" ,
106+ "func-names" : " allow" ,
107+ "default-param-last" : " allow" ,
108+ "prefer-object-spread" : " allow" ,
109+ "no-undefined" : " allow" ,
110+ "no-plusplus" : " allow" ,
111+ "no-console" : " allow" ,
112+ "no-extraneous-class" : " allow" ,
113+ "no-empty-function" : " allow" ,
114+ "max-depth" : " allow" ,
115+ "max-lines-per-function" : " allow" ,
116+ "no-lonely-if" : " allow" ,
117+ "max-lines" : " allow" ,
118+ "require-await" : " allow" ,
119+ "max-nested-callbacks" : " allow" ,
120+ "max-classes-per-file" : " allow" ,
121+ "radix" : " allow" ,
122+ "no-negated-condition" : " allow" ,
123+ "no-else-return" : " allow" ,
124+ "no-throw-literal" : " allow" ,
125+ "id-length" : " allow" ,
126+ "arrow-body-style" : " allow" ,
127+ "prefer-destructuring" : " allow"
21128 }
22129}
0 commit comments