@kasoa/oxlint-config 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAG3C,eAAO,MAAM,YAAY,gEAAiE,CAAC;AAE3F,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAG3C,eAAO,MAAM,YAAY,gEAAiE,CAAC;AAE3F,eAAO,MAAM,IAAI,EAAE,YA4JjB,CAAC"}
|
package/dist/src/base/index.js
CHANGED
|
@@ -18,29 +18,30 @@ export const base = defineConfig({
|
|
|
18
18
|
style: "error",
|
|
19
19
|
},
|
|
20
20
|
rules: {
|
|
21
|
+
"capitalized-comments": "off",
|
|
21
22
|
"func-style": "off",
|
|
22
23
|
"id-length": "off",
|
|
23
|
-
"capitalized-comments": "off",
|
|
24
|
-
curly: ["error", "multi-line", "consistent"],
|
|
25
24
|
"init-declarations": "off",
|
|
25
|
+
"max-classes-per-file": "off",
|
|
26
|
+
"max-lines-per-function": "off",
|
|
27
|
+
"max-statements": "off",
|
|
28
|
+
"no-continue": "off",
|
|
26
29
|
"no-magic-numbers": "off",
|
|
27
30
|
"no-ternary": "off",
|
|
31
|
+
"require-await": "off",
|
|
28
32
|
"sort-imports": "off",
|
|
29
33
|
"sort-keys": "off",
|
|
30
34
|
"vars-on-top": "off",
|
|
31
35
|
complexity: ["error", { max: 10 }],
|
|
36
|
+
curly: ["error", "multi-line", "consistent"],
|
|
32
37
|
"default-case-last": "error",
|
|
33
38
|
eqeqeq: "error",
|
|
34
|
-
"new-cap": "off",
|
|
35
39
|
"getter-return": "error",
|
|
36
40
|
"grouped-accessor-pairs": ["error", "getBeforeSet"],
|
|
37
|
-
"max-classes-per-file": "off",
|
|
38
41
|
"max-depth": ["error", { max: 3 }],
|
|
39
|
-
"max-lines-per-function": ["error", { max: 50, skipBlankLines: true, skipComments: true }],
|
|
40
|
-
"import/no-unassigned-import": "off",
|
|
41
42
|
"max-nested-callbacks": ["error", { max: 3 }],
|
|
42
43
|
"max-params": ["error", { max: 3 }],
|
|
43
|
-
"
|
|
44
|
+
"new-cap": "off",
|
|
44
45
|
"no-alert": "error",
|
|
45
46
|
"no-bitwise": "error",
|
|
46
47
|
"no-console": ["error", { allow: ["info", "warn", "error"] }],
|
|
@@ -58,10 +59,12 @@ export const base = defineConfig({
|
|
|
58
59
|
"import/no-named-export": "off",
|
|
59
60
|
"import/no-namespace": "off",
|
|
60
61
|
"import/no-nodejs-modules": "off",
|
|
62
|
+
"import/no-unassigned-import": "off",
|
|
61
63
|
"import/prefer-default-export": "off",
|
|
62
|
-
"typescript/consistent-type-definitions": "off",
|
|
63
64
|
"import/no-cycle": "error",
|
|
65
|
+
"promise/prefer-await-to-callbacks": "off",
|
|
64
66
|
"typescript/ban-ts-comment": ["error", { minimumDescriptionLength: 10 }],
|
|
67
|
+
"typescript/consistent-type-definitions": "off",
|
|
65
68
|
"typescript/consistent-return": "error",
|
|
66
69
|
"typescript/consistent-type-exports": "error",
|
|
67
70
|
"typescript/consistent-type-imports": [
|
|
@@ -71,7 +74,6 @@ export const base = defineConfig({
|
|
|
71
74
|
"typescript/dot-notation": "error",
|
|
72
75
|
"typescript/no-confusing-void-expression": "error",
|
|
73
76
|
"typescript/no-dynamic-delete": "error",
|
|
74
|
-
"typescript/no-empty-object-type": "error",
|
|
75
77
|
"typescript/no-explicit-any": "error",
|
|
76
78
|
"typescript/no-floating-promises": "error",
|
|
77
79
|
"typescript/no-misused-promises": "error",
|
|
@@ -96,7 +98,7 @@ export const base = defineConfig({
|
|
|
96
98
|
"typescript/prefer-optional-chain": "error",
|
|
97
99
|
"typescript/prefer-readonly": "error",
|
|
98
100
|
"typescript/prefer-regexp-exec": "error",
|
|
99
|
-
"typescript/
|
|
101
|
+
"typescript/require-await": "off",
|
|
100
102
|
"typescript/require-array-sort-compare": "error",
|
|
101
103
|
"typescript/restrict-plus-operands": "error",
|
|
102
104
|
"typescript/restrict-template-expressions": "error",
|
|
@@ -106,8 +108,8 @@ export const base = defineConfig({
|
|
|
106
108
|
"typescript/switch-exhaustiveness-check": "error",
|
|
107
109
|
"typescript/unbound-method": "error",
|
|
108
110
|
"typescript/use-unknown-in-catch-callback-variable": "error",
|
|
109
|
-
"unicorn/no-abusive-eslint-disable": "error",
|
|
110
111
|
"unicorn/no-null": "off",
|
|
112
|
+
"unicorn/no-abusive-eslint-disable": "error",
|
|
111
113
|
"unicorn/filename-case": ["error", { case: "kebabCase" }],
|
|
112
114
|
},
|
|
113
115
|
overrides: [
|
|
@@ -126,6 +128,12 @@ export const base = defineConfig({
|
|
|
126
128
|
"func-names": "off",
|
|
127
129
|
},
|
|
128
130
|
},
|
|
131
|
+
{
|
|
132
|
+
files: ["**/*.d.ts"],
|
|
133
|
+
rules: {
|
|
134
|
+
"typescript/no-empty-interface": "off",
|
|
135
|
+
},
|
|
136
|
+
},
|
|
129
137
|
{
|
|
130
138
|
files: [
|
|
131
139
|
"**/test/**",
|
|
@@ -138,7 +146,6 @@ export const base = defineConfig({
|
|
|
138
146
|
vitest: true,
|
|
139
147
|
},
|
|
140
148
|
rules: {
|
|
141
|
-
"max-lines-per-function": ["error", { max: 75, skipBlankLines: true, skipComments: true }],
|
|
142
149
|
"vitest/no-importing-vitest-globals": "off",
|
|
143
150
|
"vitest/max-nested-describe": ["error", { max: 3 }],
|
|
144
151
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAI3C,eAAO,MAAM,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAI3C,eAAO,MAAM,KAAK,EAAE,YA6BlB,CAAC"}
|
package/dist/src/react/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { defineConfig } from "oxlint";
|
|
|
2
2
|
import { base } from "../base/index.js";
|
|
3
3
|
export const react = defineConfig({
|
|
4
4
|
...base,
|
|
5
|
-
plugins: [...(base.plugins ?? []), "react", "
|
|
5
|
+
plugins: [...(base.plugins ?? []), "react", "jsx-a11y"],
|
|
6
6
|
rules: {
|
|
7
7
|
...base.rules,
|
|
8
8
|
"jsx-a11y/alt-text": "error",
|
|
@@ -27,9 +27,5 @@ export const react = defineConfig({
|
|
|
27
27
|
"react/no-unsafe": "error",
|
|
28
28
|
"react/no-unknown-property": "error",
|
|
29
29
|
"react/void-dom-elements-no-children": "error",
|
|
30
|
-
"react-perf/jsx-no-jsx-as-prop": "error",
|
|
31
|
-
"react-perf/jsx-no-new-array-as-prop": "error",
|
|
32
|
-
"react-perf/jsx-no-new-function-as-prop": "error",
|
|
33
|
-
"react-perf/jsx-no-new-object-as-prop": "error",
|
|
34
30
|
},
|
|
35
31
|
});
|