@mado/oxlint 0.2.0 → 0.2.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/CHANGELOG.md +6 -0
- package/dist/eslint.cjs +195 -214
- package/dist/eslint.js +192 -194
- package/dist/import.cjs +41 -60
- package/dist/import.js +38 -40
- package/dist/index.cjs +18 -38
- package/dist/index.js +15 -18
- package/dist/jest.cjs +68 -87
- package/dist/jest.js +65 -67
- package/dist/jsdoc.cjs +31 -50
- package/dist/jsdoc.js +28 -30
- package/dist/jsx-a11y.cjs +44 -63
- package/dist/jsx-a11y.js +41 -43
- package/dist/nextjs.cjs +29 -48
- package/dist/nextjs.js +26 -28
- package/dist/node.cjs +19 -38
- package/dist/node.js +16 -18
- package/dist/oxc.cjs +35 -54
- package/dist/oxc.js +32 -34
- package/dist/promise.cjs +24 -43
- package/dist/promise.js +21 -23
- package/dist/react-perf.cjs +12 -31
- package/dist/react-perf.js +9 -11
- package/dist/react.cjs +93 -112
- package/dist/react.js +90 -92
- package/dist/typescript.cjs +119 -138
- package/dist/typescript.js +116 -118
- package/dist/unicorn.cjs +146 -165
- package/dist/unicorn.js +143 -145
- package/dist/vitest.cjs +81 -100
- package/dist/vitest.js +78 -80
- package/dist/vue.cjs +54 -73
- package/dist/vue.js +51 -53
- package/package.json +6 -5
package/dist/oxc.js
CHANGED
|
@@ -1,64 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
var rules = {
|
|
1
|
+
const rules = {
|
|
3
2
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/approx-constant.html
|
|
4
|
-
|
|
3
|
+
'oxc/approx-constant': 'off',
|
|
5
4
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-array-method-on-arguments.html
|
|
6
|
-
|
|
5
|
+
'oxc/bad-array-method-on-arguments': 'off',
|
|
7
6
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-bitwise-operator.html
|
|
8
|
-
|
|
7
|
+
'oxc/bad-bitwise-operator': 'off',
|
|
9
8
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-char-at-comparison.html
|
|
10
|
-
|
|
9
|
+
'oxc/bad-char-at-comparison': 'off',
|
|
11
10
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-comparison-sequence.html
|
|
12
|
-
|
|
11
|
+
'oxc/bad-comparison-sequence': 'off',
|
|
13
12
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-match-all-arg.html
|
|
14
|
-
|
|
13
|
+
'oxc/bad-match-all-arg': 'off',
|
|
15
14
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-min-max-func.html
|
|
16
|
-
|
|
15
|
+
'oxc/bad-min-max-func': 'off',
|
|
17
16
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-object-literal-comparison.html
|
|
18
|
-
|
|
17
|
+
'oxc/bad-object-literal-comparison': 'off',
|
|
19
18
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-replace-all-arg.html
|
|
20
|
-
|
|
19
|
+
'oxc/bad-replace-all-arg': 'off',
|
|
21
20
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/branches-sharing-code.html
|
|
22
|
-
|
|
21
|
+
'oxc/branches-sharing-code': 'off',
|
|
23
22
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/const-comparisons.html
|
|
24
|
-
|
|
23
|
+
'oxc/const-comparisons': 'off',
|
|
25
24
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/double-comparisons.html
|
|
26
|
-
|
|
25
|
+
'oxc/double-comparisons': 'off',
|
|
27
26
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/erasing-op.html
|
|
28
|
-
|
|
27
|
+
'oxc/erasing-op': 'off',
|
|
29
28
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/misrefactored-assign-op.html
|
|
30
|
-
|
|
29
|
+
'oxc/misrefactored-assign-op': 'off',
|
|
31
30
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/missing-throw.html
|
|
32
|
-
|
|
31
|
+
'oxc/missing-throw': 'off',
|
|
33
32
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-accumulating-spread.html
|
|
34
|
-
|
|
33
|
+
'oxc/no-accumulating-spread': 'off',
|
|
35
34
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-async-await.html
|
|
36
|
-
|
|
35
|
+
'oxc/no-async-await': 'off',
|
|
37
36
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-async-endpoint-handlers.html
|
|
38
|
-
|
|
37
|
+
'oxc/no-async-endpoint-handlers': 'off',
|
|
39
38
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-barrel-file.html
|
|
40
|
-
|
|
39
|
+
'oxc/no-barrel-file': 'off',
|
|
41
40
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-const-enum.html
|
|
42
|
-
|
|
41
|
+
'oxc/no-const-enum': 'off',
|
|
43
42
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-map-spread.html
|
|
44
|
-
|
|
43
|
+
'oxc/no-map-spread': 'off',
|
|
45
44
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-optional-chaining.html
|
|
46
|
-
|
|
45
|
+
'oxc/no-optional-chaining': 'off',
|
|
47
46
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-rest-spread-properties.html
|
|
48
|
-
|
|
47
|
+
'oxc/no-rest-spread-properties': 'off',
|
|
49
48
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-this-in-exported-function.html
|
|
50
|
-
|
|
49
|
+
'oxc/no-this-in-exported-function': 'off',
|
|
51
50
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/number-arg-out-of-range.html
|
|
52
|
-
|
|
51
|
+
'oxc/number-arg-out-of-range': 'off',
|
|
53
52
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/only-used-in-recursion.html
|
|
54
|
-
|
|
53
|
+
'oxc/only-used-in-recursion': 'off',
|
|
55
54
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/uninvoked-array-callback.html
|
|
56
|
-
|
|
55
|
+
'oxc/uninvoked-array-callback': 'off'
|
|
57
56
|
};
|
|
58
|
-
var
|
|
59
|
-
plugins: [
|
|
57
|
+
var oxc = {
|
|
58
|
+
plugins: ['oxc'],
|
|
60
59
|
rules
|
|
61
60
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
};
|
|
61
|
+
|
|
62
|
+
export { oxc as default };
|
package/dist/promise.cjs
CHANGED
|
@@ -1,63 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
'use strict';
|
|
19
2
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
default: () => promise_default
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(promise_exports);
|
|
26
|
-
var rules = {
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const rules = {
|
|
27
6
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/always-return.html
|
|
28
|
-
|
|
7
|
+
'promise/always-return': 'off',
|
|
29
8
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/avoid-new.html
|
|
30
|
-
|
|
9
|
+
'promise/avoid-new': 'off',
|
|
31
10
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/catch-or-return.html
|
|
32
|
-
|
|
11
|
+
'promise/catch-or-return': 'off',
|
|
33
12
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/no-callback-in-promise.html
|
|
34
|
-
|
|
13
|
+
'promise/no-callback-in-promise': 'off',
|
|
35
14
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/no-multiple-resolved.html
|
|
36
|
-
|
|
15
|
+
'promise/no-multiple-resolved': 'off',
|
|
37
16
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/no-nesting.html
|
|
38
|
-
|
|
17
|
+
'promise/no-nesting': 'off',
|
|
39
18
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/no-new-statics.html
|
|
40
|
-
|
|
19
|
+
'promise/no-new-statics': 'off',
|
|
41
20
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/no-promise-in-callback.html
|
|
42
|
-
|
|
21
|
+
'promise/no-promise-in-callback': 'off',
|
|
43
22
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/no-return-in-finally.html
|
|
44
|
-
|
|
23
|
+
'promise/no-return-in-finally': 'off',
|
|
45
24
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/no-return-wrap.html
|
|
46
|
-
|
|
25
|
+
'promise/no-return-wrap': 'off',
|
|
47
26
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/param-names.html
|
|
48
|
-
|
|
27
|
+
'promise/param-names': 'off',
|
|
49
28
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-await-to-callbacks.html
|
|
50
|
-
|
|
29
|
+
'promise/prefer-await-to-callbacks': 'off',
|
|
51
30
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-await-to-then.html
|
|
52
|
-
|
|
31
|
+
'promise/prefer-await-to-then': 'off',
|
|
53
32
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-catch.html
|
|
54
|
-
|
|
33
|
+
'promise/prefer-catch': 'off',
|
|
55
34
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/spec-only.html
|
|
56
|
-
|
|
35
|
+
'promise/spec-only': 'off',
|
|
57
36
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/valid-params.html
|
|
58
|
-
|
|
37
|
+
'promise/valid-params': 'off'
|
|
59
38
|
};
|
|
60
|
-
var
|
|
61
|
-
plugins: [
|
|
39
|
+
var promise = {
|
|
40
|
+
plugins: ['promise'],
|
|
62
41
|
rules
|
|
63
42
|
};
|
|
43
|
+
|
|
44
|
+
exports.default = promise;
|
package/dist/promise.js
CHANGED
|
@@ -1,42 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
var rules = {
|
|
1
|
+
const rules = {
|
|
3
2
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/always-return.html
|
|
4
|
-
|
|
3
|
+
'promise/always-return': 'off',
|
|
5
4
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/avoid-new.html
|
|
6
|
-
|
|
5
|
+
'promise/avoid-new': 'off',
|
|
7
6
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/catch-or-return.html
|
|
8
|
-
|
|
7
|
+
'promise/catch-or-return': 'off',
|
|
9
8
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/no-callback-in-promise.html
|
|
10
|
-
|
|
9
|
+
'promise/no-callback-in-promise': 'off',
|
|
11
10
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/no-multiple-resolved.html
|
|
12
|
-
|
|
11
|
+
'promise/no-multiple-resolved': 'off',
|
|
13
12
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/no-nesting.html
|
|
14
|
-
|
|
13
|
+
'promise/no-nesting': 'off',
|
|
15
14
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/no-new-statics.html
|
|
16
|
-
|
|
15
|
+
'promise/no-new-statics': 'off',
|
|
17
16
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/no-promise-in-callback.html
|
|
18
|
-
|
|
17
|
+
'promise/no-promise-in-callback': 'off',
|
|
19
18
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/no-return-in-finally.html
|
|
20
|
-
|
|
19
|
+
'promise/no-return-in-finally': 'off',
|
|
21
20
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/no-return-wrap.html
|
|
22
|
-
|
|
21
|
+
'promise/no-return-wrap': 'off',
|
|
23
22
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/param-names.html
|
|
24
|
-
|
|
23
|
+
'promise/param-names': 'off',
|
|
25
24
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-await-to-callbacks.html
|
|
26
|
-
|
|
25
|
+
'promise/prefer-await-to-callbacks': 'off',
|
|
27
26
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-await-to-then.html
|
|
28
|
-
|
|
27
|
+
'promise/prefer-await-to-then': 'off',
|
|
29
28
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-catch.html
|
|
30
|
-
|
|
29
|
+
'promise/prefer-catch': 'off',
|
|
31
30
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/spec-only.html
|
|
32
|
-
|
|
31
|
+
'promise/spec-only': 'off',
|
|
33
32
|
// https://oxc.rs/docs/guide/usage/linter/rules/promise/valid-params.html
|
|
34
|
-
|
|
33
|
+
'promise/valid-params': 'off'
|
|
35
34
|
};
|
|
36
|
-
var
|
|
37
|
-
plugins: [
|
|
35
|
+
var promise = {
|
|
36
|
+
plugins: ['promise'],
|
|
38
37
|
rules
|
|
39
38
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
};
|
|
39
|
+
|
|
40
|
+
export { promise as default };
|
package/dist/react-perf.cjs
CHANGED
|
@@ -1,39 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
'use strict';
|
|
19
2
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
default: () => react_perf_default
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(react_perf_exports);
|
|
26
|
-
var rules = {
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const rules = {
|
|
27
6
|
// https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-jsx-as-prop.html
|
|
28
|
-
|
|
7
|
+
'react-perf/jsx-no-jsx-as-prop': 'off',
|
|
29
8
|
// https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-new-array-as-prop.html
|
|
30
|
-
|
|
9
|
+
'react-perf/jsx-no-new-array-as-prop': 'off',
|
|
31
10
|
// https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-new-function-as-prop.html
|
|
32
|
-
|
|
11
|
+
'react-perf/jsx-no-new-function-as-prop': 'off',
|
|
33
12
|
// https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-new-object-as-prop.html
|
|
34
|
-
|
|
13
|
+
'react-perf/jsx-no-new-object-as-prop': 'off'
|
|
35
14
|
};
|
|
36
|
-
var
|
|
37
|
-
plugins: [
|
|
15
|
+
var reactPerf = {
|
|
16
|
+
plugins: ['react-perf'],
|
|
38
17
|
rules
|
|
39
18
|
};
|
|
19
|
+
|
|
20
|
+
exports.default = reactPerf;
|
package/dist/react-perf.js
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
var rules = {
|
|
1
|
+
const rules = {
|
|
3
2
|
// https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-jsx-as-prop.html
|
|
4
|
-
|
|
3
|
+
'react-perf/jsx-no-jsx-as-prop': 'off',
|
|
5
4
|
// https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-new-array-as-prop.html
|
|
6
|
-
|
|
5
|
+
'react-perf/jsx-no-new-array-as-prop': 'off',
|
|
7
6
|
// https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-new-function-as-prop.html
|
|
8
|
-
|
|
7
|
+
'react-perf/jsx-no-new-function-as-prop': 'off',
|
|
9
8
|
// https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-new-object-as-prop.html
|
|
10
|
-
|
|
9
|
+
'react-perf/jsx-no-new-object-as-prop': 'off'
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
plugins: [
|
|
11
|
+
var reactPerf = {
|
|
12
|
+
plugins: ['react-perf'],
|
|
14
13
|
rules
|
|
15
14
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
15
|
+
|
|
16
|
+
export { reactPerf as default };
|