@kayahr/oxlint-config 1.0.1 → 1.0.3
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.
- package/.oxlintrc.json +49 -22
- package/README.md +1 -1
- package/package.json +4 -4
package/.oxlintrc.json
CHANGED
|
@@ -9,6 +9,16 @@
|
|
|
9
9
|
"style": "warn",
|
|
10
10
|
"suspicious": "warn"
|
|
11
11
|
},
|
|
12
|
+
"overrides": [
|
|
13
|
+
{
|
|
14
|
+
"files": [
|
|
15
|
+
"**/*.test.ts"
|
|
16
|
+
],
|
|
17
|
+
"rules": {
|
|
18
|
+
"no-floating-promises": "off"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
],
|
|
12
22
|
"plugins": [
|
|
13
23
|
"eslint",
|
|
14
24
|
"import",
|
|
@@ -29,39 +39,46 @@
|
|
|
29
39
|
"null": "ignore"
|
|
30
40
|
}
|
|
31
41
|
],
|
|
32
|
-
"eslint/func-style":
|
|
33
|
-
"warn",
|
|
34
|
-
"declaration",
|
|
35
|
-
{
|
|
36
|
-
"overrides": {
|
|
37
|
-
"allowArrowFunctions": true,
|
|
38
|
-
"namedExports": "declaration"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
+
"eslint/func-style": "off",
|
|
42
43
|
"eslint/id-length": "off",
|
|
43
44
|
"eslint/init-declarations": "off",
|
|
44
45
|
"eslint/max-lines": "off",
|
|
45
46
|
"eslint/max-lines-per-function": "off",
|
|
47
|
+
"eslint/max-params": "off",
|
|
46
48
|
"eslint/no-await-in-loop": "off",
|
|
49
|
+
"eslint/no-console": "off",
|
|
50
|
+
"eslint/no-continue": "off",
|
|
51
|
+
"eslint/no-empty-function": "off",
|
|
47
52
|
"eslint/no-eq-null": "off",
|
|
48
53
|
"eslint/no-magic-numbers": "off",
|
|
54
|
+
"eslint/no-plusplus": "off",
|
|
49
55
|
"eslint/no-ternary": "off",
|
|
56
|
+
"eslint/no-undefined": "off",
|
|
57
|
+
"eslint/no-void": "off",
|
|
50
58
|
"eslint/prefer-destructuring": "off",
|
|
51
59
|
"eslint/radix": "off",
|
|
52
|
-
"eslint/require-await": "
|
|
60
|
+
"eslint/require-await": "off",
|
|
53
61
|
"eslint/sort-imports": "off",
|
|
54
62
|
"eslint/sort-keys": "off",
|
|
63
|
+
"import/consistent-type-specifier-style": [
|
|
64
|
+
"warn",
|
|
65
|
+
"prefer-top-level"
|
|
66
|
+
],
|
|
55
67
|
"import/exports-last": "off",
|
|
68
|
+
"import/extensions": "off",
|
|
56
69
|
"import/group-exports": "off",
|
|
70
|
+
"import/no-namespace": "off",
|
|
57
71
|
"import/prefer-default-export": "off",
|
|
58
|
-
"jsdoc/require-param": "
|
|
72
|
+
"jsdoc/require-param": "off",
|
|
59
73
|
"jsdoc/require-param-type": "off",
|
|
60
74
|
"jsdoc/require-returns-type": "off",
|
|
61
75
|
"oxc/no-async-await": "off",
|
|
62
76
|
"oxc/no-optional-chaining": "off",
|
|
77
|
+
"oxc/no-reset-spread-properties": "off",
|
|
78
|
+
"oxc/no-rest-spread-properties": "off",
|
|
63
79
|
"promise/avoid-new": "off",
|
|
64
80
|
"promise/prefer-await-to-callbacks": "off",
|
|
81
|
+
"promise/prefer-await-to-then": "off",
|
|
65
82
|
"typescript/array-type": [
|
|
66
83
|
"warn",
|
|
67
84
|
{
|
|
@@ -69,19 +86,29 @@
|
|
|
69
86
|
"readonly": "array-simple"
|
|
70
87
|
}
|
|
71
88
|
],
|
|
89
|
+
"typescript/explicit-function-return-type": "off",
|
|
90
|
+
"typescript/no-base-to-string": "off",
|
|
91
|
+
"typescript/no-misused-spread": "off",
|
|
72
92
|
"typescript/no-unsafe-type-assertion": "off",
|
|
73
93
|
"typescript/promise-function-async": "off",
|
|
94
|
+
"typescript/restrict-template-expressions": "off",
|
|
95
|
+
"unicorn/filename-case": [
|
|
96
|
+
"warn",
|
|
97
|
+
{
|
|
98
|
+
"cases": {
|
|
99
|
+
"camelCase": true,
|
|
100
|
+
"kebabCase": true,
|
|
101
|
+
"pascalCase": true
|
|
102
|
+
},
|
|
103
|
+
"multipleFileExtensions": true
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"unicorn/no-await-expression-member": "off",
|
|
74
107
|
"unicorn/no-null": "off",
|
|
75
108
|
"unicorn/prefer-event-target": "off",
|
|
76
109
|
"unicorn/prefer-node-protocol": "warn",
|
|
77
|
-
"unicorn/prefer-number-properties": "off"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"files": [ "**/*.test.ts" ],
|
|
82
|
-
"rules": {
|
|
83
|
-
"no-floating-promises": "off"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
]
|
|
110
|
+
"unicorn/prefer-number-properties": "off",
|
|
111
|
+
"unicorn/prefer-string-raw": "off",
|
|
112
|
+
"unicorn/switch-case-braces": "off"
|
|
113
|
+
}
|
|
87
114
|
}
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kayahr/oxlint-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Shared oxlint config for @kayahr projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./.oxlintrc.json",
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"test": "run test:*",
|
|
18
|
-
"test:lint": "oxlint --type-aware",
|
|
19
|
-
"test:spell": "cspell --no-progress"
|
|
18
|
+
"test:lint": "oxlint --type-aware --deny-warnings",
|
|
19
|
+
"test:spell": "cspell --color --no-progress"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
".oxlintrc.json"
|
|
23
23
|
],
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@kayahr/cspell": "9.2.1-bundle.2",
|
|
26
|
-
"@kayahr/npm-utils": "0.0.
|
|
26
|
+
"@kayahr/npm-utils": "0.0.4"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"oxlint": "^1.18.0",
|