oxlint-config-presets 0.1.7 → 0.1.9
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/@antfu.json +23 -0
- package/@eslint/all.json +5 -0
- package/@typescript-eslint/all.json +1 -0
- package/@vitest/all.json +3 -0
- package/@vitest/recommended.json +1 -0
- package/README.md +366 -166
- package/airbnb/base.json +69 -0
- package/airbnb/legacy.json +34 -0
- package/airbnb/whitespace.json +82 -0
- package/airbnb.json +77 -0
- package/alloy/react.json +2 -0
- package/alloy/typescript.json +1 -0
- package/alloy.json +20 -1
- package/eslint/base.json +30 -0
- package/eslint.json +30 -0
- package/hardcore.json +29 -1
- package/jest/all.json +4 -0
- package/jest/recommended.json +1 -0
- package/jsx-a11y/recommended.json +6 -0
- package/jsx-a11y/strict.json +16 -0
- package/package.json +1 -1
- package/react/all.json +2 -0
- package/react-hooks/recommended.json +7 -0
- package/react-refresh/next.json +27 -0
- package/react-refresh/recommended.json +6 -0
- package/react-refresh/vite.json +11 -0
- package/unicorn/all.json +135 -0
- package/unicorn/recommended.json +135 -0
- package/unicorn/unopinionated.json +135 -0
- package/vue/essential.json +6 -0
- package/vue/vue2-essential.json +1 -0
- package/wikimedia.json +1 -0
- package/xo.json +19 -0
package/@antfu.json
CHANGED
|
@@ -101,6 +101,29 @@
|
|
|
101
101
|
"name": "self"
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
|
+
"no-restricted-properties": [
|
|
105
|
+
"error",
|
|
106
|
+
{
|
|
107
|
+
"message": "Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",
|
|
108
|
+
"property": "__proto__"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"message": "Use `Object.defineProperty` instead.",
|
|
112
|
+
"property": "__defineGetter__"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"message": "Use `Object.defineProperty` instead.",
|
|
116
|
+
"property": "__defineSetter__"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"message": "Use `Object.getOwnPropertyDescriptor` instead.",
|
|
120
|
+
"property": "__lookupGetter__"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"message": "Use `Object.getOwnPropertyDescriptor` instead.",
|
|
124
|
+
"property": "__lookupSetter__"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
104
127
|
"no-self-assign": [
|
|
105
128
|
"error",
|
|
106
129
|
{
|
package/@eslint/all.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"default-param-last": "error",
|
|
19
19
|
"eqeqeq": "error",
|
|
20
20
|
"for-direction": "error",
|
|
21
|
+
"func-name-matching": "error",
|
|
21
22
|
"func-names": "error",
|
|
22
23
|
"func-style": "error",
|
|
23
24
|
"getter-return": "error",
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
"guard-for-in": "error",
|
|
26
27
|
"id-length": "error",
|
|
27
28
|
"init-declarations": "error",
|
|
29
|
+
"logical-assignment-operators": "error",
|
|
28
30
|
"max-classes-per-file": "error",
|
|
29
31
|
"max-depth": "error",
|
|
30
32
|
"max-lines": "error",
|
|
@@ -110,6 +112,7 @@
|
|
|
110
112
|
"no-restricted-exports": "error",
|
|
111
113
|
"no-restricted-globals": "error",
|
|
112
114
|
"no-restricted-imports": "error",
|
|
115
|
+
"no-restricted-properties": "error",
|
|
113
116
|
"no-return-assign": "error",
|
|
114
117
|
"no-script-url": "error",
|
|
115
118
|
"no-self-assign": "error",
|
|
@@ -126,6 +129,7 @@
|
|
|
126
129
|
"no-unassigned-vars": "error",
|
|
127
130
|
"no-undef": "error",
|
|
128
131
|
"no-undefined": "error",
|
|
132
|
+
"no-underscore-dangle": "error",
|
|
129
133
|
"no-unexpected-multiline": "error",
|
|
130
134
|
"no-unmodified-loop-condition": "error",
|
|
131
135
|
"no-unneeded-ternary": "error",
|
|
@@ -167,6 +171,7 @@
|
|
|
167
171
|
"preserve-caught-error": "error",
|
|
168
172
|
"radix": "error",
|
|
169
173
|
"require-await": "error",
|
|
174
|
+
"require-unicode-regexp": "error",
|
|
170
175
|
"require-yield": "error",
|
|
171
176
|
"sort-keys": "error",
|
|
172
177
|
"sort-vars": "error",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"typescript/consistent-type-imports": "error",
|
|
41
41
|
"typescript/dot-notation": "error",
|
|
42
42
|
"typescript/explicit-function-return-type": "error",
|
|
43
|
+
"typescript/explicit-member-accessibility": "error",
|
|
43
44
|
"typescript/explicit-module-boundary-types": "error",
|
|
44
45
|
"typescript/no-array-delete": "error",
|
|
45
46
|
"typescript/no-base-to-string": "error",
|
package/@vitest/all.json
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"vitest/no-large-snapshots": "warn",
|
|
26
26
|
"vitest/no-mocks-import": "warn",
|
|
27
27
|
"vitest/no-restricted-matchers": "warn",
|
|
28
|
+
"vitest/no-restricted-vi-methods": "warn",
|
|
28
29
|
"vitest/no-standalone-expect": "warn",
|
|
29
30
|
"vitest/no-test-prefixes": "warn",
|
|
30
31
|
"vitest/no-test-return-statement": "warn",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"vitest/prefer-describe-function-title": "warn",
|
|
38
39
|
"vitest/prefer-each": "warn",
|
|
39
40
|
"vitest/prefer-equality-matcher": "warn",
|
|
41
|
+
"vitest/prefer-expect-assertions": "warn",
|
|
40
42
|
"vitest/prefer-expect-resolves": "warn",
|
|
41
43
|
"vitest/prefer-expect-type-of": "warn",
|
|
42
44
|
"vitest/prefer-hooks-in-order": "warn",
|
|
@@ -65,6 +67,7 @@
|
|
|
65
67
|
"vitest/require-to-throw-message": "warn",
|
|
66
68
|
"vitest/require-top-level-describe": "warn",
|
|
67
69
|
"vitest/valid-describe-callback": "warn",
|
|
70
|
+
"vitest/valid-expect-in-promise": "warn",
|
|
68
71
|
"vitest/valid-expect": "warn",
|
|
69
72
|
"vitest/valid-title": "warn"
|
|
70
73
|
}
|
package/@vitest/recommended.json
CHANGED