@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/dist/oxc.js CHANGED
@@ -1,64 +1,62 @@
1
- // src/oxc.ts
2
- var rules = {
1
+ const rules = {
3
2
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/approx-constant.html
4
- "oxc/approx-constant": "off",
3
+ 'oxc/approx-constant': 'off',
5
4
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-array-method-on-arguments.html
6
- "oxc/bad-array-method-on-arguments": "off",
5
+ 'oxc/bad-array-method-on-arguments': 'off',
7
6
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-bitwise-operator.html
8
- "oxc/bad-bitwise-operator": "off",
7
+ 'oxc/bad-bitwise-operator': 'off',
9
8
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-char-at-comparison.html
10
- "oxc/bad-char-at-comparison": "off",
9
+ 'oxc/bad-char-at-comparison': 'off',
11
10
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-comparison-sequence.html
12
- "oxc/bad-comparison-sequence": "off",
11
+ 'oxc/bad-comparison-sequence': 'off',
13
12
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-match-all-arg.html
14
- "oxc/bad-match-all-arg": "off",
13
+ 'oxc/bad-match-all-arg': 'off',
15
14
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-min-max-func.html
16
- "oxc/bad-min-max-func": "off",
15
+ 'oxc/bad-min-max-func': 'off',
17
16
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-object-literal-comparison.html
18
- "oxc/bad-object-literal-comparison": "off",
17
+ 'oxc/bad-object-literal-comparison': 'off',
19
18
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-replace-all-arg.html
20
- "oxc/bad-replace-all-arg": "off",
19
+ 'oxc/bad-replace-all-arg': 'off',
21
20
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/branches-sharing-code.html
22
- "oxc/branches-sharing-code": "off",
21
+ 'oxc/branches-sharing-code': 'off',
23
22
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/const-comparisons.html
24
- "oxc/const-comparisons": "off",
23
+ 'oxc/const-comparisons': 'off',
25
24
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/double-comparisons.html
26
- "oxc/double-comparisons": "off",
25
+ 'oxc/double-comparisons': 'off',
27
26
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/erasing-op.html
28
- "oxc/erasing-op": "off",
27
+ 'oxc/erasing-op': 'off',
29
28
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/misrefactored-assign-op.html
30
- "oxc/misrefactored-assign-op": "off",
29
+ 'oxc/misrefactored-assign-op': 'off',
31
30
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/missing-throw.html
32
- "oxc/missing-throw": "off",
31
+ 'oxc/missing-throw': 'off',
33
32
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-accumulating-spread.html
34
- "oxc/no-accumulating-spread": "off",
33
+ 'oxc/no-accumulating-spread': 'off',
35
34
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-async-await.html
36
- "oxc/no-async-await": "off",
35
+ 'oxc/no-async-await': 'off',
37
36
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-async-endpoint-handlers.html
38
- "oxc/no-async-endpoint-handlers": "off",
37
+ 'oxc/no-async-endpoint-handlers': 'off',
39
38
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-barrel-file.html
40
- "oxc/no-barrel-file": "off",
39
+ 'oxc/no-barrel-file': 'off',
41
40
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-const-enum.html
42
- "oxc/no-const-enum": "off",
41
+ 'oxc/no-const-enum': 'off',
43
42
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-map-spread.html
44
- "oxc/no-map-spread": "off",
43
+ 'oxc/no-map-spread': 'off',
45
44
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-optional-chaining.html
46
- "oxc/no-optional-chaining": "off",
45
+ 'oxc/no-optional-chaining': 'off',
47
46
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-rest-spread-properties.html
48
- "oxc/no-rest-spread-properties": "off",
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
- "oxc/no-this-in-exported-function": "off",
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
- "oxc/number-arg-out-of-range": "off",
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
- "oxc/only-used-in-recursion": "off",
53
+ 'oxc/only-used-in-recursion': 'off',
55
54
  // https://oxc.rs/docs/guide/usage/linter/rules/oxc/uninvoked-array-callback.html
56
- "oxc/uninvoked-array-callback": "off"
55
+ 'oxc/uninvoked-array-callback': 'off'
57
56
  };
58
- var oxc_default = {
59
- plugins: ["oxc"],
57
+ var oxc = {
58
+ plugins: ['oxc'],
60
59
  rules
61
60
  };
62
- export {
63
- oxc_default as default
64
- };
61
+
62
+ export { oxc as default };
package/dist/promise.cjs CHANGED
@@ -1,63 +1,44 @@
1
- "use strict";
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
- // src/promise.ts
21
- var promise_exports = {};
22
- __export(promise_exports, {
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
- "promise/always-return": "off",
7
+ 'promise/always-return': 'off',
29
8
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/avoid-new.html
30
- "promise/avoid-new": "off",
9
+ 'promise/avoid-new': 'off',
31
10
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/catch-or-return.html
32
- "promise/catch-or-return": "off",
11
+ 'promise/catch-or-return': 'off',
33
12
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-callback-in-promise.html
34
- "promise/no-callback-in-promise": "off",
13
+ 'promise/no-callback-in-promise': 'off',
35
14
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-multiple-resolved.html
36
- "promise/no-multiple-resolved": "off",
15
+ 'promise/no-multiple-resolved': 'off',
37
16
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-nesting.html
38
- "promise/no-nesting": "off",
17
+ 'promise/no-nesting': 'off',
39
18
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-new-statics.html
40
- "promise/no-new-statics": "off",
19
+ 'promise/no-new-statics': 'off',
41
20
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-promise-in-callback.html
42
- "promise/no-promise-in-callback": "off",
21
+ 'promise/no-promise-in-callback': 'off',
43
22
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-return-in-finally.html
44
- "promise/no-return-in-finally": "off",
23
+ 'promise/no-return-in-finally': 'off',
45
24
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-return-wrap.html
46
- "promise/no-return-wrap": "off",
25
+ 'promise/no-return-wrap': 'off',
47
26
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/param-names.html
48
- "promise/param-names": "off",
27
+ 'promise/param-names': 'off',
49
28
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-await-to-callbacks.html
50
- "promise/prefer-await-to-callbacks": "off",
29
+ 'promise/prefer-await-to-callbacks': 'off',
51
30
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-await-to-then.html
52
- "promise/prefer-await-to-then": "off",
31
+ 'promise/prefer-await-to-then': 'off',
53
32
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-catch.html
54
- "promise/prefer-catch": "off",
33
+ 'promise/prefer-catch': 'off',
55
34
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/spec-only.html
56
- "promise/spec-only": "off",
35
+ 'promise/spec-only': 'off',
57
36
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/valid-params.html
58
- "promise/valid-params": "off"
37
+ 'promise/valid-params': 'off'
59
38
  };
60
- var promise_default = {
61
- plugins: ["promise"],
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
- // src/promise.ts
2
- var rules = {
1
+ const rules = {
3
2
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/always-return.html
4
- "promise/always-return": "off",
3
+ 'promise/always-return': 'off',
5
4
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/avoid-new.html
6
- "promise/avoid-new": "off",
5
+ 'promise/avoid-new': 'off',
7
6
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/catch-or-return.html
8
- "promise/catch-or-return": "off",
7
+ 'promise/catch-or-return': 'off',
9
8
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-callback-in-promise.html
10
- "promise/no-callback-in-promise": "off",
9
+ 'promise/no-callback-in-promise': 'off',
11
10
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-multiple-resolved.html
12
- "promise/no-multiple-resolved": "off",
11
+ 'promise/no-multiple-resolved': 'off',
13
12
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-nesting.html
14
- "promise/no-nesting": "off",
13
+ 'promise/no-nesting': 'off',
15
14
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-new-statics.html
16
- "promise/no-new-statics": "off",
15
+ 'promise/no-new-statics': 'off',
17
16
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-promise-in-callback.html
18
- "promise/no-promise-in-callback": "off",
17
+ 'promise/no-promise-in-callback': 'off',
19
18
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-return-in-finally.html
20
- "promise/no-return-in-finally": "off",
19
+ 'promise/no-return-in-finally': 'off',
21
20
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/no-return-wrap.html
22
- "promise/no-return-wrap": "off",
21
+ 'promise/no-return-wrap': 'off',
23
22
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/param-names.html
24
- "promise/param-names": "off",
23
+ 'promise/param-names': 'off',
25
24
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-await-to-callbacks.html
26
- "promise/prefer-await-to-callbacks": "off",
25
+ 'promise/prefer-await-to-callbacks': 'off',
27
26
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-await-to-then.html
28
- "promise/prefer-await-to-then": "off",
27
+ 'promise/prefer-await-to-then': 'off',
29
28
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/prefer-catch.html
30
- "promise/prefer-catch": "off",
29
+ 'promise/prefer-catch': 'off',
31
30
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/spec-only.html
32
- "promise/spec-only": "off",
31
+ 'promise/spec-only': 'off',
33
32
  // https://oxc.rs/docs/guide/usage/linter/rules/promise/valid-params.html
34
- "promise/valid-params": "off"
33
+ 'promise/valid-params': 'off'
35
34
  };
36
- var promise_default = {
37
- plugins: ["promise"],
35
+ var promise = {
36
+ plugins: ['promise'],
38
37
  rules
39
38
  };
40
- export {
41
- promise_default as default
42
- };
39
+
40
+ export { promise as default };
@@ -1,39 +1,20 @@
1
- "use strict";
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
- // src/react-perf.ts
21
- var react_perf_exports = {};
22
- __export(react_perf_exports, {
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
- "react-perf/jsx-no-jsx-as-prop": "off",
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
- "react-perf/jsx-no-new-array-as-prop": "off",
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
- "react-perf/jsx-no-new-function-as-prop": "off",
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
- "react-perf/jsx-no-new-object-as-prop": "off"
13
+ 'react-perf/jsx-no-new-object-as-prop': 'off'
35
14
  };
36
- var react_perf_default = {
37
- plugins: ["react-perf"],
15
+ var reactPerf = {
16
+ plugins: ['react-perf'],
38
17
  rules
39
18
  };
19
+
20
+ exports.default = reactPerf;
@@ -1,18 +1,16 @@
1
- // src/react-perf.ts
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
- "react-perf/jsx-no-jsx-as-prop": "off",
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
- "react-perf/jsx-no-new-array-as-prop": "off",
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
- "react-perf/jsx-no-new-function-as-prop": "off",
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
- "react-perf/jsx-no-new-object-as-prop": "off"
9
+ 'react-perf/jsx-no-new-object-as-prop': 'off'
11
10
  };
12
- var react_perf_default = {
13
- plugins: ["react-perf"],
11
+ var reactPerf = {
12
+ plugins: ['react-perf'],
14
13
  rules
15
14
  };
16
- export {
17
- react_perf_default as default
18
- };
15
+
16
+ export { reactPerf as default };