oxlint-config-presets 0.1.8 → 0.1.10
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/@vitest/all.json +2 -0
- package/README.md +440 -204
- 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.json +20 -1
- package/eslint/base.json +30 -0
- package/eslint.json +30 -0
- package/hardcore.json +29 -1
- package/jest/all.json +1 -0
- package/jsx-a11y/recommended.json +6 -0
- package/jsx-a11y/strict.json +16 -0
- package/package.json +1 -1
- package/problems.json +3 -1
- package/react/all.json +2 -0
- package/react-hooks/recommended-latest.json +7 -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",
|
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",
|