@mado/oxlint 0.2.1 → 0.4.0

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/dist/nextjs.cjs CHANGED
@@ -1,54 +1 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const rules = {
6
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/google-font-display.html
7
- 'nextjs/google-font-display': 'off',
8
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/google-font-preconnect.html
9
- 'nextjs/google-font-preconnect': 'off',
10
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/inline-script-id.html
11
- 'nextjs/inline-script-id': 'off',
12
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/next-script-for-ga.html
13
- 'nextjs/next-script-for-ga': 'off',
14
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-assign-module-variable.html
15
- 'nextjs/no-assign-module-variable': 'off',
16
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-async-client-component.html
17
- 'nextjs/no-async-client-component': 'off',
18
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-before-interactive-script-outside-document.html
19
- 'nextjs/no-before-interactive-script-outside-document': 'off',
20
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-css-tags.html
21
- 'nextjs/no-css-tags': 'off',
22
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-document-import-in-page.html
23
- 'nextjs/no-document-import-in-page': 'off',
24
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-duplicate-head.html
25
- 'nextjs/no-duplicate-head': 'off',
26
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-head-element.html
27
- 'nextjs/no-head-element': 'off',
28
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-head-import-in-document.html
29
- 'nextjs/no-head-import-in-document': 'off',
30
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-html-link-for-pages.html
31
- 'nextjs/no-html-link-for-pages': 'off',
32
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-img-element.html
33
- 'nextjs/no-img-element': 'off',
34
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-page-custom-font.html
35
- 'nextjs/no-page-custom-font': 'off',
36
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-script-component-in-head.html
37
- 'nextjs/no-script-component-in-head': 'off',
38
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-styled-jsx-in-document.html
39
- 'nextjs/no-styled-jsx-in-document': 'off',
40
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-sync-scripts.html
41
- 'nextjs/no-sync-scripts': 'off',
42
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-title-in-document-head.html
43
- 'nextjs/no-title-in-document-head': 'off',
44
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-typos.html
45
- 'nextjs/no-typos': 'off',
46
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-unwanted-polyfillio.html
47
- 'nextjs/no-unwanted-polyfillio': 'off'
48
- };
49
- var nextjs = {
50
- plugins: ['nextjs'],
51
- rules
52
- };
53
-
54
- exports.default = nextjs;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});const rules={"nextjs/google-font-display":"off","nextjs/google-font-preconnect":"off","nextjs/inline-script-id":"off","nextjs/next-script-for-ga":"off","nextjs/no-assign-module-variable":"off","nextjs/no-async-client-component":"off","nextjs/no-before-interactive-script-outside-document":"off","nextjs/no-css-tags":"off","nextjs/no-document-import-in-page":"off","nextjs/no-duplicate-head":"off","nextjs/no-head-element":"off","nextjs/no-head-import-in-document":"off","nextjs/no-html-link-for-pages":"off","nextjs/no-img-element":"off","nextjs/no-page-custom-font":"off","nextjs/no-script-component-in-head":"off","nextjs/no-styled-jsx-in-document":"off","nextjs/no-sync-scripts":"off","nextjs/no-title-in-document-head":"off","nextjs/no-typos":"off","nextjs/no-unwanted-polyfillio":"off"};var nextjs={plugins:["nextjs"],rules:rules};exports.default=nextjs;
package/dist/nextjs.js CHANGED
@@ -1,50 +1 @@
1
- const rules = {
2
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/google-font-display.html
3
- 'nextjs/google-font-display': 'off',
4
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/google-font-preconnect.html
5
- 'nextjs/google-font-preconnect': 'off',
6
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/inline-script-id.html
7
- 'nextjs/inline-script-id': 'off',
8
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/next-script-for-ga.html
9
- 'nextjs/next-script-for-ga': 'off',
10
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-assign-module-variable.html
11
- 'nextjs/no-assign-module-variable': 'off',
12
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-async-client-component.html
13
- 'nextjs/no-async-client-component': 'off',
14
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-before-interactive-script-outside-document.html
15
- 'nextjs/no-before-interactive-script-outside-document': 'off',
16
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-css-tags.html
17
- 'nextjs/no-css-tags': 'off',
18
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-document-import-in-page.html
19
- 'nextjs/no-document-import-in-page': 'off',
20
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-duplicate-head.html
21
- 'nextjs/no-duplicate-head': 'off',
22
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-head-element.html
23
- 'nextjs/no-head-element': 'off',
24
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-head-import-in-document.html
25
- 'nextjs/no-head-import-in-document': 'off',
26
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-html-link-for-pages.html
27
- 'nextjs/no-html-link-for-pages': 'off',
28
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-img-element.html
29
- 'nextjs/no-img-element': 'off',
30
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-page-custom-font.html
31
- 'nextjs/no-page-custom-font': 'off',
32
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-script-component-in-head.html
33
- 'nextjs/no-script-component-in-head': 'off',
34
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-styled-jsx-in-document.html
35
- 'nextjs/no-styled-jsx-in-document': 'off',
36
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-sync-scripts.html
37
- 'nextjs/no-sync-scripts': 'off',
38
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-title-in-document-head.html
39
- 'nextjs/no-title-in-document-head': 'off',
40
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-typos.html
41
- 'nextjs/no-typos': 'off',
42
- // https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-unwanted-polyfillio.html
43
- 'nextjs/no-unwanted-polyfillio': 'off'
44
- };
45
- var nextjs = {
46
- plugins: ['nextjs'],
47
- rules
48
- };
49
-
50
- export { nextjs as default };
1
+ const rules={"nextjs/google-font-display":"off","nextjs/google-font-preconnect":"off","nextjs/inline-script-id":"off","nextjs/next-script-for-ga":"off","nextjs/no-assign-module-variable":"off","nextjs/no-async-client-component":"off","nextjs/no-before-interactive-script-outside-document":"off","nextjs/no-css-tags":"off","nextjs/no-document-import-in-page":"off","nextjs/no-duplicate-head":"off","nextjs/no-head-element":"off","nextjs/no-head-import-in-document":"off","nextjs/no-html-link-for-pages":"off","nextjs/no-img-element":"off","nextjs/no-page-custom-font":"off","nextjs/no-script-component-in-head":"off","nextjs/no-styled-jsx-in-document":"off","nextjs/no-sync-scripts":"off","nextjs/no-title-in-document-head":"off","nextjs/no-typos":"off","nextjs/no-unwanted-polyfillio":"off"};var nextjs={plugins:["nextjs"],rules:rules};export{nextjs as default};
package/dist/node.cjs CHANGED
@@ -1,34 +1 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const rules = {
6
- // https://oxc.rs/docs/guide/usage/linter/rules/node/callback-return.html
7
- 'node/callback-return': 'off',
8
- // https://oxc.rs/docs/guide/usage/linter/rules/node/exports-style.html
9
- 'node/exports-style': 'off',
10
- // https://oxc.rs/docs/guide/usage/linter/rules/node/global-require.html
11
- 'node/global-require': 'off',
12
- // https://oxc.rs/docs/guide/usage/linter/rules/node/handle-callback-err.html
13
- 'node/handle-callback-err': 'off',
14
- // https://oxc.rs/docs/guide/usage/linter/rules/node/no-exports-assign.html
15
- 'node/no-exports-assign': 'off',
16
- // https://oxc.rs/docs/guide/usage/linter/rules/node/no-mixed-requires.html
17
- 'node/no-mixed-requires': 'off',
18
- // https://oxc.rs/docs/guide/usage/linter/rules/node/no-new-require.html
19
- 'node/no-new-require': 'off',
20
- // https://oxc.rs/docs/guide/usage/linter/rules/node/no-path-concat.html
21
- 'node/no-path-concat': 'off',
22
- // https://oxc.rs/docs/guide/usage/linter/rules/node/no-process-env.html
23
- 'node/no-process-env': 'off',
24
- // https://oxc.rs/docs/guide/usage/linter/rules/node/no-sync.html
25
- 'node/no-sync': 'off',
26
- // https://oxc.rs/docs/guide/usage/linter/rules/node/no-top-level-await.html
27
- 'node/no-top-level-await': 'off'
28
- };
29
- var node = {
30
- plugins: ['node'],
31
- rules
32
- };
33
-
34
- exports.default = node;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});const rules={"node/callback-return":"off","node/exports-style":"off","node/global-require":"off","node/handle-callback-err":"off","node/no-exports-assign":"off","node/no-mixed-requires":"off","node/no-new-require":"off","node/no-path-concat":"off","node/no-process-env":"off","node/no-sync":"off","node/no-top-level-await":"off"};var node={plugins:["node"],rules:rules};exports.default=node;
package/dist/node.js CHANGED
@@ -1,30 +1 @@
1
- const rules = {
2
- // https://oxc.rs/docs/guide/usage/linter/rules/node/callback-return.html
3
- 'node/callback-return': 'off',
4
- // https://oxc.rs/docs/guide/usage/linter/rules/node/exports-style.html
5
- 'node/exports-style': 'off',
6
- // https://oxc.rs/docs/guide/usage/linter/rules/node/global-require.html
7
- 'node/global-require': 'off',
8
- // https://oxc.rs/docs/guide/usage/linter/rules/node/handle-callback-err.html
9
- 'node/handle-callback-err': 'off',
10
- // https://oxc.rs/docs/guide/usage/linter/rules/node/no-exports-assign.html
11
- 'node/no-exports-assign': 'off',
12
- // https://oxc.rs/docs/guide/usage/linter/rules/node/no-mixed-requires.html
13
- 'node/no-mixed-requires': 'off',
14
- // https://oxc.rs/docs/guide/usage/linter/rules/node/no-new-require.html
15
- 'node/no-new-require': 'off',
16
- // https://oxc.rs/docs/guide/usage/linter/rules/node/no-path-concat.html
17
- 'node/no-path-concat': 'off',
18
- // https://oxc.rs/docs/guide/usage/linter/rules/node/no-process-env.html
19
- 'node/no-process-env': 'off',
20
- // https://oxc.rs/docs/guide/usage/linter/rules/node/no-sync.html
21
- 'node/no-sync': 'off',
22
- // https://oxc.rs/docs/guide/usage/linter/rules/node/no-top-level-await.html
23
- 'node/no-top-level-await': 'off'
24
- };
25
- var node = {
26
- plugins: ['node'],
27
- rules
28
- };
29
-
30
- export { node as default };
1
+ const rules={"node/callback-return":"off","node/exports-style":"off","node/global-require":"off","node/handle-callback-err":"off","node/no-exports-assign":"off","node/no-mixed-requires":"off","node/no-new-require":"off","node/no-path-concat":"off","node/no-process-env":"off","node/no-sync":"off","node/no-top-level-await":"off"};var node={plugins:["node"],rules:rules};export{node as default};
package/dist/oxc.cjs CHANGED
@@ -1,66 +1 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const rules = {
6
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/approx-constant.html
7
- 'oxc/approx-constant': 'off',
8
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-array-method-on-arguments.html
9
- 'oxc/bad-array-method-on-arguments': 'off',
10
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-bitwise-operator.html
11
- 'oxc/bad-bitwise-operator': 'off',
12
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-char-at-comparison.html
13
- 'oxc/bad-char-at-comparison': 'off',
14
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-comparison-sequence.html
15
- 'oxc/bad-comparison-sequence': 'off',
16
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-match-all-arg.html
17
- 'oxc/bad-match-all-arg': 'off',
18
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-min-max-func.html
19
- 'oxc/bad-min-max-func': 'off',
20
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-object-literal-comparison.html
21
- 'oxc/bad-object-literal-comparison': 'off',
22
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-replace-all-arg.html
23
- 'oxc/bad-replace-all-arg': 'off',
24
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/branches-sharing-code.html
25
- 'oxc/branches-sharing-code': 'off',
26
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/const-comparisons.html
27
- 'oxc/const-comparisons': 'off',
28
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/double-comparisons.html
29
- 'oxc/double-comparisons': 'off',
30
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/erasing-op.html
31
- 'oxc/erasing-op': 'off',
32
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/misrefactored-assign-op.html
33
- 'oxc/misrefactored-assign-op': 'off',
34
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/missing-throw.html
35
- 'oxc/missing-throw': 'off',
36
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-accumulating-spread.html
37
- 'oxc/no-accumulating-spread': 'off',
38
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-async-await.html
39
- 'oxc/no-async-await': 'off',
40
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-async-endpoint-handlers.html
41
- 'oxc/no-async-endpoint-handlers': 'off',
42
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-barrel-file.html
43
- 'oxc/no-barrel-file': 'off',
44
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-const-enum.html
45
- 'oxc/no-const-enum': 'off',
46
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-map-spread.html
47
- 'oxc/no-map-spread': 'off',
48
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-optional-chaining.html
49
- 'oxc/no-optional-chaining': 'off',
50
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-rest-spread-properties.html
51
- 'oxc/no-rest-spread-properties': 'off',
52
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-this-in-exported-function.html
53
- 'oxc/no-this-in-exported-function': 'off',
54
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/number-arg-out-of-range.html
55
- 'oxc/number-arg-out-of-range': 'off',
56
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/only-used-in-recursion.html
57
- 'oxc/only-used-in-recursion': 'off',
58
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/uninvoked-array-callback.html
59
- 'oxc/uninvoked-array-callback': 'off'
60
- };
61
- var oxc = {
62
- plugins: ['oxc'],
63
- rules
64
- };
65
-
66
- exports.default = oxc;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});const rules={"oxc/approx-constant":"warn","oxc/bad-array-method-on-arguments":"error","oxc/bad-bitwise-operator":"error","oxc/bad-char-at-comparison":"error","oxc/bad-comparison-sequence":"error","oxc/bad-match-all-arg":"error","oxc/bad-min-max-func":"error","oxc/bad-object-literal-comparison":"error","oxc/bad-replace-all-arg":"error","oxc/branches-sharing-code":"warn","oxc/const-comparisons":"error","oxc/double-comparisons":"warn","oxc/erasing-op":"warn","oxc/misrefactored-assign-op":"warn","oxc/missing-throw":"error","oxc/no-accumulating-spread":"warn","oxc/no-async-await":"off","oxc/no-async-endpoint-handlers":"off","oxc/no-barrel-file":"off","oxc/no-const-enum":"warn","oxc/no-map-spread":"off","oxc/no-optional-chaining":"off","oxc/no-rest-spread-properties":"off","oxc/no-this-in-exported-function":"warn","oxc/number-arg-out-of-range":"warn","oxc/only-used-in-recursion":"warn","oxc/uninvoked-array-callback":"error"};var oxc={plugins:["oxc"],rules:rules};exports.default=oxc;
package/dist/oxc.js CHANGED
@@ -1,62 +1 @@
1
- const rules = {
2
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/approx-constant.html
3
- 'oxc/approx-constant': 'off',
4
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-array-method-on-arguments.html
5
- 'oxc/bad-array-method-on-arguments': 'off',
6
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-bitwise-operator.html
7
- 'oxc/bad-bitwise-operator': 'off',
8
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-char-at-comparison.html
9
- 'oxc/bad-char-at-comparison': 'off',
10
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-comparison-sequence.html
11
- 'oxc/bad-comparison-sequence': 'off',
12
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-match-all-arg.html
13
- 'oxc/bad-match-all-arg': 'off',
14
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-min-max-func.html
15
- 'oxc/bad-min-max-func': 'off',
16
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-object-literal-comparison.html
17
- 'oxc/bad-object-literal-comparison': 'off',
18
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-replace-all-arg.html
19
- 'oxc/bad-replace-all-arg': 'off',
20
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/branches-sharing-code.html
21
- 'oxc/branches-sharing-code': 'off',
22
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/const-comparisons.html
23
- 'oxc/const-comparisons': 'off',
24
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/double-comparisons.html
25
- 'oxc/double-comparisons': 'off',
26
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/erasing-op.html
27
- 'oxc/erasing-op': 'off',
28
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/misrefactored-assign-op.html
29
- 'oxc/misrefactored-assign-op': 'off',
30
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/missing-throw.html
31
- 'oxc/missing-throw': 'off',
32
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-accumulating-spread.html
33
- 'oxc/no-accumulating-spread': 'off',
34
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-async-await.html
35
- 'oxc/no-async-await': 'off',
36
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-async-endpoint-handlers.html
37
- 'oxc/no-async-endpoint-handlers': 'off',
38
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-barrel-file.html
39
- 'oxc/no-barrel-file': 'off',
40
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-const-enum.html
41
- 'oxc/no-const-enum': 'off',
42
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-map-spread.html
43
- 'oxc/no-map-spread': 'off',
44
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-optional-chaining.html
45
- 'oxc/no-optional-chaining': 'off',
46
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-rest-spread-properties.html
47
- 'oxc/no-rest-spread-properties': 'off',
48
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-this-in-exported-function.html
49
- 'oxc/no-this-in-exported-function': 'off',
50
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/number-arg-out-of-range.html
51
- 'oxc/number-arg-out-of-range': 'off',
52
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/only-used-in-recursion.html
53
- 'oxc/only-used-in-recursion': 'off',
54
- // https://oxc.rs/docs/guide/usage/linter/rules/oxc/uninvoked-array-callback.html
55
- 'oxc/uninvoked-array-callback': 'off'
56
- };
57
- var oxc = {
58
- plugins: ['oxc'],
59
- rules
60
- };
61
-
62
- export { oxc as default };
1
+ const rules={"oxc/approx-constant":"warn","oxc/bad-array-method-on-arguments":"error","oxc/bad-bitwise-operator":"error","oxc/bad-char-at-comparison":"error","oxc/bad-comparison-sequence":"error","oxc/bad-match-all-arg":"error","oxc/bad-min-max-func":"error","oxc/bad-object-literal-comparison":"error","oxc/bad-replace-all-arg":"error","oxc/branches-sharing-code":"warn","oxc/const-comparisons":"error","oxc/double-comparisons":"warn","oxc/erasing-op":"warn","oxc/misrefactored-assign-op":"warn","oxc/missing-throw":"error","oxc/no-accumulating-spread":"warn","oxc/no-async-await":"off","oxc/no-async-endpoint-handlers":"off","oxc/no-barrel-file":"off","oxc/no-const-enum":"warn","oxc/no-map-spread":"off","oxc/no-optional-chaining":"off","oxc/no-rest-spread-properties":"off","oxc/no-this-in-exported-function":"warn","oxc/number-arg-out-of-range":"warn","oxc/only-used-in-recursion":"warn","oxc/uninvoked-array-callback":"error"};var oxc={plugins:["oxc"],rules:rules};export{oxc as default};
package/dist/promise.cjs CHANGED
@@ -1,44 +1 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const rules = {
6
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/always-return.html
7
- 'promise/always-return': 'off',
8
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/avoid-new.html
9
- 'promise/avoid-new': 'off',
10
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/catch-or-return.html
11
- 'promise/catch-or-return': 'off',
12
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-callback-in-promise.html
13
- 'promise/no-callback-in-promise': 'off',
14
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-multiple-resolved.html
15
- 'promise/no-multiple-resolved': 'off',
16
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-nesting.html
17
- 'promise/no-nesting': 'off',
18
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-new-statics.html
19
- 'promise/no-new-statics': 'off',
20
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-promise-in-callback.html
21
- 'promise/no-promise-in-callback': 'off',
22
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-return-in-finally.html
23
- 'promise/no-return-in-finally': 'off',
24
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-return-wrap.html
25
- 'promise/no-return-wrap': 'off',
26
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/param-names.html
27
- 'promise/param-names': 'off',
28
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-await-to-callbacks.html
29
- 'promise/prefer-await-to-callbacks': 'off',
30
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-await-to-then.html
31
- 'promise/prefer-await-to-then': 'off',
32
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-catch.html
33
- 'promise/prefer-catch': 'off',
34
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/spec-only.html
35
- 'promise/spec-only': 'off',
36
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/valid-params.html
37
- 'promise/valid-params': 'off'
38
- };
39
- var promise = {
40
- plugins: ['promise'],
41
- rules
42
- };
43
-
44
- exports.default = promise;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});const rules={"promise/always-return":["warn",{ignoreLastCallback:true}],"promise/avoid-new":"off","promise/catch-or-return":"warn","promise/no-callback-in-promise":"warn","promise/no-multiple-resolved":"error","promise/no-nesting":"off","promise/no-new-statics":"error","promise/no-promise-in-callback":"off","promise/no-return-in-finally":"off","promise/no-return-wrap":"warn","promise/param-names":"warn","promise/prefer-await-to-callbacks":"off","promise/prefer-await-to-then":"off","promise/prefer-catch":"off","promise/spec-only":"off","promise/valid-params":"error"};var promise={plugins:["promise"],rules:rules};exports.default=promise;
package/dist/promise.js CHANGED
@@ -1,40 +1 @@
1
- const rules = {
2
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/always-return.html
3
- 'promise/always-return': 'off',
4
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/avoid-new.html
5
- 'promise/avoid-new': 'off',
6
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/catch-or-return.html
7
- 'promise/catch-or-return': 'off',
8
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-callback-in-promise.html
9
- 'promise/no-callback-in-promise': 'off',
10
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-multiple-resolved.html
11
- 'promise/no-multiple-resolved': 'off',
12
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-nesting.html
13
- 'promise/no-nesting': 'off',
14
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-new-statics.html
15
- 'promise/no-new-statics': 'off',
16
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-promise-in-callback.html
17
- 'promise/no-promise-in-callback': 'off',
18
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-return-in-finally.html
19
- 'promise/no-return-in-finally': 'off',
20
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-return-wrap.html
21
- 'promise/no-return-wrap': 'off',
22
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/param-names.html
23
- 'promise/param-names': 'off',
24
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-await-to-callbacks.html
25
- 'promise/prefer-await-to-callbacks': 'off',
26
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-await-to-then.html
27
- 'promise/prefer-await-to-then': 'off',
28
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-catch.html
29
- 'promise/prefer-catch': 'off',
30
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/spec-only.html
31
- 'promise/spec-only': 'off',
32
- // https://oxc.rs/docs/guide/usage/linter/rules/promise/valid-params.html
33
- 'promise/valid-params': 'off'
34
- };
35
- var promise = {
36
- plugins: ['promise'],
37
- rules
38
- };
39
-
40
- export { promise as default };
1
+ const rules={"promise/always-return":["warn",{ignoreLastCallback:true}],"promise/avoid-new":"off","promise/catch-or-return":"warn","promise/no-callback-in-promise":"warn","promise/no-multiple-resolved":"error","promise/no-nesting":"off","promise/no-new-statics":"error","promise/no-promise-in-callback":"off","promise/no-return-in-finally":"off","promise/no-return-wrap":"warn","promise/param-names":"warn","promise/prefer-await-to-callbacks":"off","promise/prefer-await-to-then":"off","promise/prefer-catch":"off","promise/spec-only":"off","promise/valid-params":"error"};var promise={plugins:["promise"],rules:rules};export{promise as default};
@@ -1,20 +1 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const rules = {
6
- // https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-jsx-as-prop.html
7
- 'react-perf/jsx-no-jsx-as-prop': 'off',
8
- // https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-new-array-as-prop.html
9
- 'react-perf/jsx-no-new-array-as-prop': 'off',
10
- // https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-new-function-as-prop.html
11
- 'react-perf/jsx-no-new-function-as-prop': 'off',
12
- // https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-new-object-as-prop.html
13
- 'react-perf/jsx-no-new-object-as-prop': 'off'
14
- };
15
- var reactPerf = {
16
- plugins: ['react-perf'],
17
- rules
18
- };
19
-
20
- exports.default = reactPerf;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});const rules={"react-perf/jsx-no-jsx-as-prop":"off","react-perf/jsx-no-new-array-as-prop":"off","react-perf/jsx-no-new-function-as-prop":"off","react-perf/jsx-no-new-object-as-prop":"off"};var reactPerf={plugins:["react-perf"],rules:rules};exports.default=reactPerf;
@@ -1,16 +1 @@
1
- const rules = {
2
- // https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-jsx-as-prop.html
3
- 'react-perf/jsx-no-jsx-as-prop': 'off',
4
- // https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-new-array-as-prop.html
5
- 'react-perf/jsx-no-new-array-as-prop': 'off',
6
- // https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-new-function-as-prop.html
7
- 'react-perf/jsx-no-new-function-as-prop': 'off',
8
- // https://oxc.rs/docs/guide/usage/linter/rules/react_perf/jsx-no-new-object-as-prop.html
9
- 'react-perf/jsx-no-new-object-as-prop': 'off'
10
- };
11
- var reactPerf = {
12
- plugins: ['react-perf'],
13
- rules
14
- };
15
-
16
- export { reactPerf as default };
1
+ const rules={"react-perf/jsx-no-jsx-as-prop":"off","react-perf/jsx-no-new-array-as-prop":"off","react-perf/jsx-no-new-function-as-prop":"off","react-perf/jsx-no-new-object-as-prop":"off"};var reactPerf={plugins:["react-perf"],rules:rules};export{reactPerf as default};