@mado/oxlint 0.1.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 +12 -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 -36
- package/dist/index.js +15 -16
- 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 +9 -7
package/dist/jsx-a11y.js
CHANGED
|
@@ -1,82 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
var rules = {
|
|
1
|
+
const rules = {
|
|
3
2
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/alt-text.html
|
|
4
|
-
|
|
3
|
+
'jsx-a11y/alt-text': 'off',
|
|
5
4
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/anchor-ambiguous-text.html
|
|
6
|
-
|
|
5
|
+
'jsx-a11y/anchor-ambiguous-text': 'off',
|
|
7
6
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/anchor-has-content.html
|
|
8
|
-
|
|
7
|
+
'jsx-a11y/anchor-has-content': 'off',
|
|
9
8
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/anchor-is-valid.html
|
|
10
|
-
|
|
9
|
+
'jsx-a11y/anchor-is-valid': 'off',
|
|
11
10
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/aria-activedescendant-has-tabindex.html
|
|
12
|
-
|
|
11
|
+
'jsx-a11y/aria-activedescendant-has-tabindex': 'off',
|
|
13
12
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/aria-props.html
|
|
14
|
-
|
|
13
|
+
'jsx-a11y/aria-props': 'off',
|
|
15
14
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/aria-proptypes.html
|
|
16
|
-
|
|
15
|
+
'jsx-a11y/aria-proptypes': 'off',
|
|
17
16
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/aria-role.html
|
|
18
|
-
|
|
17
|
+
'jsx-a11y/aria-role': 'off',
|
|
19
18
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/aria-unsupported-elements.html
|
|
20
|
-
|
|
19
|
+
'jsx-a11y/aria-unsupported-elements': 'off',
|
|
21
20
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/autocomplete-valid.html
|
|
22
|
-
|
|
21
|
+
'jsx-a11y/autocomplete-valid': 'off',
|
|
23
22
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/click-events-have-key-events.html
|
|
24
|
-
|
|
23
|
+
'jsx-a11y/click-events-have-key-events': 'off',
|
|
25
24
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/control-has-associated-label.html
|
|
26
|
-
|
|
25
|
+
'jsx-a11y/control-has-associated-label': 'off',
|
|
27
26
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/heading-has-content.html
|
|
28
|
-
|
|
27
|
+
'jsx-a11y/heading-has-content': 'off',
|
|
29
28
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/html-has-lang.html
|
|
30
|
-
|
|
29
|
+
'jsx-a11y/html-has-lang': 'off',
|
|
31
30
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/iframe-has-title.html
|
|
32
|
-
|
|
31
|
+
'jsx-a11y/iframe-has-title': 'off',
|
|
33
32
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/img-redundant-alt.html
|
|
34
|
-
|
|
33
|
+
'jsx-a11y/img-redundant-alt': 'off',
|
|
35
34
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/interactive-supports-focus.html
|
|
36
|
-
|
|
35
|
+
'jsx-a11y/interactive-supports-focus': 'off',
|
|
37
36
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/label-has-associated-control.html
|
|
38
|
-
|
|
37
|
+
'jsx-a11y/label-has-associated-control': 'off',
|
|
39
38
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/lang.html
|
|
40
|
-
|
|
39
|
+
'jsx-a11y/lang': 'off',
|
|
41
40
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/media-has-caption.html
|
|
42
|
-
|
|
41
|
+
'jsx-a11y/media-has-caption': 'off',
|
|
43
42
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/mouse-events-have-key-events.html
|
|
44
|
-
|
|
43
|
+
'jsx-a11y/mouse-events-have-key-events': 'off',
|
|
45
44
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/no-access-key.html
|
|
46
|
-
|
|
45
|
+
'jsx-a11y/no-access-key': 'off',
|
|
47
46
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/no-aria-hidden-on-focusable.html
|
|
48
|
-
|
|
47
|
+
'jsx-a11y/no-aria-hidden-on-focusable': 'off',
|
|
49
48
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/no-autofocus.html
|
|
50
|
-
|
|
49
|
+
'jsx-a11y/no-autofocus': 'off',
|
|
51
50
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/no-distracting-elements.html
|
|
52
|
-
|
|
51
|
+
'jsx-a11y/no-distracting-elements': 'off',
|
|
53
52
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/no-interactive-element-to-noninteractive-role.html
|
|
54
|
-
|
|
53
|
+
'jsx-a11y/no-interactive-element-to-noninteractive-role': 'off',
|
|
55
54
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/no-noninteractive-element-interactions.html
|
|
56
|
-
|
|
55
|
+
'jsx-a11y/no-noninteractive-element-interactions': 'off',
|
|
57
56
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/no-noninteractive-element-to-interactive-role.html
|
|
58
|
-
|
|
57
|
+
'jsx-a11y/no-noninteractive-element-to-interactive-role': 'off',
|
|
59
58
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/no-noninteractive-tabindex.html
|
|
60
|
-
|
|
59
|
+
'jsx-a11y/no-noninteractive-tabindex': 'off',
|
|
61
60
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/no-redundant-roles.html
|
|
62
|
-
|
|
61
|
+
'jsx-a11y/no-redundant-roles': 'off',
|
|
63
62
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/no-static-element-interactions.html
|
|
64
|
-
|
|
63
|
+
'jsx-a11y/no-static-element-interactions': 'off',
|
|
65
64
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/prefer-tag-over-role.html
|
|
66
|
-
|
|
65
|
+
'jsx-a11y/prefer-tag-over-role': 'off',
|
|
67
66
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/role-has-required-aria-props.html
|
|
68
|
-
|
|
67
|
+
'jsx-a11y/role-has-required-aria-props': 'off',
|
|
69
68
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/role-supports-aria-props.html
|
|
70
|
-
|
|
69
|
+
'jsx-a11y/role-supports-aria-props': 'off',
|
|
71
70
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/scope.html
|
|
72
|
-
|
|
71
|
+
'jsx-a11y/scope': 'off',
|
|
73
72
|
// https://oxc.rs/docs/guide/usage/linter/rules/jsx_a11y/tabindex-no-positive.html
|
|
74
|
-
|
|
73
|
+
'jsx-a11y/tabindex-no-positive': 'off'
|
|
75
74
|
};
|
|
76
|
-
var
|
|
77
|
-
plugins: [
|
|
75
|
+
var jsxA11y = {
|
|
76
|
+
plugins: ['jsx-a11y'],
|
|
78
77
|
rules
|
|
79
78
|
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
};
|
|
79
|
+
|
|
80
|
+
export { jsxA11y as default };
|
package/dist/nextjs.cjs
CHANGED
|
@@ -1,73 +1,54 @@
|
|
|
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: () => nextjs_default
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(nextjs_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/nextjs/google-font-display.html
|
|
28
|
-
|
|
7
|
+
'nextjs/google-font-display': 'off',
|
|
29
8
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/google-font-preconnect.html
|
|
30
|
-
|
|
9
|
+
'nextjs/google-font-preconnect': 'off',
|
|
31
10
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/inline-script-id.html
|
|
32
|
-
|
|
11
|
+
'nextjs/inline-script-id': 'off',
|
|
33
12
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/next-script-for-ga.html
|
|
34
|
-
|
|
13
|
+
'nextjs/next-script-for-ga': 'off',
|
|
35
14
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-assign-module-variable.html
|
|
36
|
-
|
|
15
|
+
'nextjs/no-assign-module-variable': 'off',
|
|
37
16
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-async-client-component.html
|
|
38
|
-
|
|
17
|
+
'nextjs/no-async-client-component': 'off',
|
|
39
18
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-before-interactive-script-outside-document.html
|
|
40
|
-
|
|
19
|
+
'nextjs/no-before-interactive-script-outside-document': 'off',
|
|
41
20
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-css-tags.html
|
|
42
|
-
|
|
21
|
+
'nextjs/no-css-tags': 'off',
|
|
43
22
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-document-import-in-page.html
|
|
44
|
-
|
|
23
|
+
'nextjs/no-document-import-in-page': 'off',
|
|
45
24
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-duplicate-head.html
|
|
46
|
-
|
|
25
|
+
'nextjs/no-duplicate-head': 'off',
|
|
47
26
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-head-element.html
|
|
48
|
-
|
|
27
|
+
'nextjs/no-head-element': 'off',
|
|
49
28
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-head-import-in-document.html
|
|
50
|
-
|
|
29
|
+
'nextjs/no-head-import-in-document': 'off',
|
|
51
30
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-html-link-for-pages.html
|
|
52
|
-
|
|
31
|
+
'nextjs/no-html-link-for-pages': 'off',
|
|
53
32
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-img-element.html
|
|
54
|
-
|
|
33
|
+
'nextjs/no-img-element': 'off',
|
|
55
34
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-page-custom-font.html
|
|
56
|
-
|
|
35
|
+
'nextjs/no-page-custom-font': 'off',
|
|
57
36
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-script-component-in-head.html
|
|
58
|
-
|
|
37
|
+
'nextjs/no-script-component-in-head': 'off',
|
|
59
38
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-styled-jsx-in-document.html
|
|
60
|
-
|
|
39
|
+
'nextjs/no-styled-jsx-in-document': 'off',
|
|
61
40
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-sync-scripts.html
|
|
62
|
-
|
|
41
|
+
'nextjs/no-sync-scripts': 'off',
|
|
63
42
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-title-in-document-head.html
|
|
64
|
-
|
|
43
|
+
'nextjs/no-title-in-document-head': 'off',
|
|
65
44
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-typos.html
|
|
66
|
-
|
|
45
|
+
'nextjs/no-typos': 'off',
|
|
67
46
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-unwanted-polyfillio.html
|
|
68
|
-
|
|
47
|
+
'nextjs/no-unwanted-polyfillio': 'off'
|
|
69
48
|
};
|
|
70
|
-
var
|
|
71
|
-
plugins: [
|
|
49
|
+
var nextjs = {
|
|
50
|
+
plugins: ['nextjs'],
|
|
72
51
|
rules
|
|
73
52
|
};
|
|
53
|
+
|
|
54
|
+
exports.default = nextjs;
|
package/dist/nextjs.js
CHANGED
|
@@ -1,52 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
var rules = {
|
|
1
|
+
const rules = {
|
|
3
2
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/google-font-display.html
|
|
4
|
-
|
|
3
|
+
'nextjs/google-font-display': 'off',
|
|
5
4
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/google-font-preconnect.html
|
|
6
|
-
|
|
5
|
+
'nextjs/google-font-preconnect': 'off',
|
|
7
6
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/inline-script-id.html
|
|
8
|
-
|
|
7
|
+
'nextjs/inline-script-id': 'off',
|
|
9
8
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/next-script-for-ga.html
|
|
10
|
-
|
|
9
|
+
'nextjs/next-script-for-ga': 'off',
|
|
11
10
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-assign-module-variable.html
|
|
12
|
-
|
|
11
|
+
'nextjs/no-assign-module-variable': 'off',
|
|
13
12
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-async-client-component.html
|
|
14
|
-
|
|
13
|
+
'nextjs/no-async-client-component': 'off',
|
|
15
14
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-before-interactive-script-outside-document.html
|
|
16
|
-
|
|
15
|
+
'nextjs/no-before-interactive-script-outside-document': 'off',
|
|
17
16
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-css-tags.html
|
|
18
|
-
|
|
17
|
+
'nextjs/no-css-tags': 'off',
|
|
19
18
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-document-import-in-page.html
|
|
20
|
-
|
|
19
|
+
'nextjs/no-document-import-in-page': 'off',
|
|
21
20
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-duplicate-head.html
|
|
22
|
-
|
|
21
|
+
'nextjs/no-duplicate-head': 'off',
|
|
23
22
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-head-element.html
|
|
24
|
-
|
|
23
|
+
'nextjs/no-head-element': 'off',
|
|
25
24
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-head-import-in-document.html
|
|
26
|
-
|
|
25
|
+
'nextjs/no-head-import-in-document': 'off',
|
|
27
26
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-html-link-for-pages.html
|
|
28
|
-
|
|
27
|
+
'nextjs/no-html-link-for-pages': 'off',
|
|
29
28
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-img-element.html
|
|
30
|
-
|
|
29
|
+
'nextjs/no-img-element': 'off',
|
|
31
30
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-page-custom-font.html
|
|
32
|
-
|
|
31
|
+
'nextjs/no-page-custom-font': 'off',
|
|
33
32
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-script-component-in-head.html
|
|
34
|
-
|
|
33
|
+
'nextjs/no-script-component-in-head': 'off',
|
|
35
34
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-styled-jsx-in-document.html
|
|
36
|
-
|
|
35
|
+
'nextjs/no-styled-jsx-in-document': 'off',
|
|
37
36
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-sync-scripts.html
|
|
38
|
-
|
|
37
|
+
'nextjs/no-sync-scripts': 'off',
|
|
39
38
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-title-in-document-head.html
|
|
40
|
-
|
|
39
|
+
'nextjs/no-title-in-document-head': 'off',
|
|
41
40
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-typos.html
|
|
42
|
-
|
|
41
|
+
'nextjs/no-typos': 'off',
|
|
43
42
|
// https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-unwanted-polyfillio.html
|
|
44
|
-
|
|
43
|
+
'nextjs/no-unwanted-polyfillio': 'off'
|
|
45
44
|
};
|
|
46
|
-
var
|
|
47
|
-
plugins: [
|
|
45
|
+
var nextjs = {
|
|
46
|
+
plugins: ['nextjs'],
|
|
48
47
|
rules
|
|
49
48
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
};
|
|
49
|
+
|
|
50
|
+
export { nextjs as default };
|
package/dist/node.cjs
CHANGED
|
@@ -1,53 +1,34 @@
|
|
|
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: () => node_default
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(node_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/node/callback-return.html
|
|
28
|
-
|
|
7
|
+
'node/callback-return': 'off',
|
|
29
8
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/exports-style.html
|
|
30
|
-
|
|
9
|
+
'node/exports-style': 'off',
|
|
31
10
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/global-require.html
|
|
32
|
-
|
|
11
|
+
'node/global-require': 'off',
|
|
33
12
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/handle-callback-err.html
|
|
34
|
-
|
|
13
|
+
'node/handle-callback-err': 'off',
|
|
35
14
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/no-exports-assign.html
|
|
36
|
-
|
|
15
|
+
'node/no-exports-assign': 'off',
|
|
37
16
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/no-mixed-requires.html
|
|
38
|
-
|
|
17
|
+
'node/no-mixed-requires': 'off',
|
|
39
18
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/no-new-require.html
|
|
40
|
-
|
|
19
|
+
'node/no-new-require': 'off',
|
|
41
20
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/no-path-concat.html
|
|
42
|
-
|
|
21
|
+
'node/no-path-concat': 'off',
|
|
43
22
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/no-process-env.html
|
|
44
|
-
|
|
23
|
+
'node/no-process-env': 'off',
|
|
45
24
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/no-sync.html
|
|
46
|
-
|
|
25
|
+
'node/no-sync': 'off',
|
|
47
26
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/no-top-level-await.html
|
|
48
|
-
|
|
27
|
+
'node/no-top-level-await': 'off'
|
|
49
28
|
};
|
|
50
|
-
var
|
|
51
|
-
plugins: [
|
|
29
|
+
var node = {
|
|
30
|
+
plugins: ['node'],
|
|
52
31
|
rules
|
|
53
32
|
};
|
|
33
|
+
|
|
34
|
+
exports.default = node;
|
package/dist/node.js
CHANGED
|
@@ -1,32 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
var rules = {
|
|
1
|
+
const rules = {
|
|
3
2
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/callback-return.html
|
|
4
|
-
|
|
3
|
+
'node/callback-return': 'off',
|
|
5
4
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/exports-style.html
|
|
6
|
-
|
|
5
|
+
'node/exports-style': 'off',
|
|
7
6
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/global-require.html
|
|
8
|
-
|
|
7
|
+
'node/global-require': 'off',
|
|
9
8
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/handle-callback-err.html
|
|
10
|
-
|
|
9
|
+
'node/handle-callback-err': 'off',
|
|
11
10
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/no-exports-assign.html
|
|
12
|
-
|
|
11
|
+
'node/no-exports-assign': 'off',
|
|
13
12
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/no-mixed-requires.html
|
|
14
|
-
|
|
13
|
+
'node/no-mixed-requires': 'off',
|
|
15
14
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/no-new-require.html
|
|
16
|
-
|
|
15
|
+
'node/no-new-require': 'off',
|
|
17
16
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/no-path-concat.html
|
|
18
|
-
|
|
17
|
+
'node/no-path-concat': 'off',
|
|
19
18
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/no-process-env.html
|
|
20
|
-
|
|
19
|
+
'node/no-process-env': 'off',
|
|
21
20
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/no-sync.html
|
|
22
|
-
|
|
21
|
+
'node/no-sync': 'off',
|
|
23
22
|
// https://oxc.rs/docs/guide/usage/linter/rules/node/no-top-level-await.html
|
|
24
|
-
|
|
23
|
+
'node/no-top-level-await': 'off'
|
|
25
24
|
};
|
|
26
|
-
var
|
|
27
|
-
plugins: [
|
|
25
|
+
var node = {
|
|
26
|
+
plugins: ['node'],
|
|
28
27
|
rules
|
|
29
28
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
29
|
+
|
|
30
|
+
export { node as default };
|
package/dist/oxc.cjs
CHANGED
|
@@ -1,85 +1,66 @@
|
|
|
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: () => oxc_default
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(oxc_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/oxc/approx-constant.html
|
|
28
|
-
|
|
7
|
+
'oxc/approx-constant': 'off',
|
|
29
8
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-array-method-on-arguments.html
|
|
30
|
-
|
|
9
|
+
'oxc/bad-array-method-on-arguments': 'off',
|
|
31
10
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-bitwise-operator.html
|
|
32
|
-
|
|
11
|
+
'oxc/bad-bitwise-operator': 'off',
|
|
33
12
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-char-at-comparison.html
|
|
34
|
-
|
|
13
|
+
'oxc/bad-char-at-comparison': 'off',
|
|
35
14
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-comparison-sequence.html
|
|
36
|
-
|
|
15
|
+
'oxc/bad-comparison-sequence': 'off',
|
|
37
16
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-match-all-arg.html
|
|
38
|
-
|
|
17
|
+
'oxc/bad-match-all-arg': 'off',
|
|
39
18
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-min-max-func.html
|
|
40
|
-
|
|
19
|
+
'oxc/bad-min-max-func': 'off',
|
|
41
20
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-object-literal-comparison.html
|
|
42
|
-
|
|
21
|
+
'oxc/bad-object-literal-comparison': 'off',
|
|
43
22
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-replace-all-arg.html
|
|
44
|
-
|
|
23
|
+
'oxc/bad-replace-all-arg': 'off',
|
|
45
24
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/branches-sharing-code.html
|
|
46
|
-
|
|
25
|
+
'oxc/branches-sharing-code': 'off',
|
|
47
26
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/const-comparisons.html
|
|
48
|
-
|
|
27
|
+
'oxc/const-comparisons': 'off',
|
|
49
28
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/double-comparisons.html
|
|
50
|
-
|
|
29
|
+
'oxc/double-comparisons': 'off',
|
|
51
30
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/erasing-op.html
|
|
52
|
-
|
|
31
|
+
'oxc/erasing-op': 'off',
|
|
53
32
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/misrefactored-assign-op.html
|
|
54
|
-
|
|
33
|
+
'oxc/misrefactored-assign-op': 'off',
|
|
55
34
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/missing-throw.html
|
|
56
|
-
|
|
35
|
+
'oxc/missing-throw': 'off',
|
|
57
36
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-accumulating-spread.html
|
|
58
|
-
|
|
37
|
+
'oxc/no-accumulating-spread': 'off',
|
|
59
38
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-async-await.html
|
|
60
|
-
|
|
39
|
+
'oxc/no-async-await': 'off',
|
|
61
40
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-async-endpoint-handlers.html
|
|
62
|
-
|
|
41
|
+
'oxc/no-async-endpoint-handlers': 'off',
|
|
63
42
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-barrel-file.html
|
|
64
|
-
|
|
43
|
+
'oxc/no-barrel-file': 'off',
|
|
65
44
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-const-enum.html
|
|
66
|
-
|
|
45
|
+
'oxc/no-const-enum': 'off',
|
|
67
46
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-map-spread.html
|
|
68
|
-
|
|
47
|
+
'oxc/no-map-spread': 'off',
|
|
69
48
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-optional-chaining.html
|
|
70
|
-
|
|
49
|
+
'oxc/no-optional-chaining': 'off',
|
|
71
50
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-rest-spread-properties.html
|
|
72
|
-
|
|
51
|
+
'oxc/no-rest-spread-properties': 'off',
|
|
73
52
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-this-in-exported-function.html
|
|
74
|
-
|
|
53
|
+
'oxc/no-this-in-exported-function': 'off',
|
|
75
54
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/number-arg-out-of-range.html
|
|
76
|
-
|
|
55
|
+
'oxc/number-arg-out-of-range': 'off',
|
|
77
56
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/only-used-in-recursion.html
|
|
78
|
-
|
|
57
|
+
'oxc/only-used-in-recursion': 'off',
|
|
79
58
|
// https://oxc.rs/docs/guide/usage/linter/rules/oxc/uninvoked-array-callback.html
|
|
80
|
-
|
|
59
|
+
'oxc/uninvoked-array-callback': 'off'
|
|
81
60
|
};
|
|
82
|
-
var
|
|
83
|
-
plugins: [
|
|
61
|
+
var oxc = {
|
|
62
|
+
plugins: ['oxc'],
|
|
84
63
|
rules
|
|
85
64
|
};
|
|
65
|
+
|
|
66
|
+
exports.default = oxc;
|