@gusnips/oxlint 0.1.0 → 0.1.1
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/README.md +3 -1
- package/base.json +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,7 +31,8 @@ that:
|
|
|
31
31
|
oxlint keeps outside `correctness`: `ban-ts-comment`, `no-array-constructor`,
|
|
32
32
|
`no-case-declarations`, `no-empty`, `no-empty-object-type`, `no-fallthrough`, `no-namespace`,
|
|
33
33
|
`no-prototype-builtins`, `no-regex-spaces`, `no-require-imports`, `no-unexpected-multiline`,
|
|
34
|
-
`no-unnecessary-type-constraint
|
|
34
|
+
`no-unnecessary-type-constraint`, `no-unsafe-function-type`, `no-var`, `prefer-const`,
|
|
35
|
+
`prefer-rest-params` and `prefer-spread`.
|
|
35
36
|
|
|
36
37
|
`react.json` extends `base.json`, turns on the `react` plugin, and sets what
|
|
37
38
|
`eslint-plugin-react-hooks` 7 sets in `recommended`, at the same level:
|
|
@@ -44,6 +45,7 @@ that:
|
|
|
44
45
|
Not there:
|
|
45
46
|
|
|
46
47
|
- `unsupported-syntax`, `config` and `gating`. oxlint does not have them yet.
|
|
48
|
+
- `no-octal`. oxlint has no such rule, and TypeScript rejects octal literals.
|
|
47
49
|
- `react/purity` is off. It reports `new Date()` in a component, and the ESLint plugin does not. The
|
|
48
50
|
plugin still reports `Date.now()` and `Math.random()`.
|
|
49
51
|
- `react/jsx-key` is off. It reports the `components={[<b />, <i />]}` array that react-i18next's
|
package/base.json
CHANGED
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"no-prototype-builtins": "error",
|
|
14
14
|
"no-regex-spaces": "error",
|
|
15
15
|
"no-unexpected-multiline": "error",
|
|
16
|
+
"no-var": "error",
|
|
17
|
+
"prefer-const": "error",
|
|
18
|
+
"prefer-rest-params": "error",
|
|
19
|
+
"prefer-spread": "error",
|
|
16
20
|
"typescript/ban-ts-comment": "error",
|
|
17
21
|
"typescript/no-empty-object-type": "error",
|
|
18
22
|
"typescript/no-namespace": "error",
|
package/package.json
CHANGED