@mado/oxlint 0.4.0 → 0.5.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/CHANGELOG.md +12 -0
- package/dist/import.cjs +1 -1
- package/dist/import.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/node.cjs +1 -1
- package/dist/node.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mado/oxlint
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`a7644fb`](https://github.com/doinki/mado/commit/a7644fb91bdb547d1a5c9148386fc4ab986cfc9e) Thanks [@doinki](https://github.com/doinki)! - The default `@mado/oxlint` configuration now includes the import preset. It reports runtime import cycles as errors and allows cycles formed only by type imports.
|
|
8
|
+
|
|
9
|
+
The preset warns about duplicate imports, imports placed after other statements, missing blank lines after imports, and empty named import blocks. It prefers top-level `import type` declarations, grouped named exports, named values for default exports, and default imports written as `import value from './module'`. Duplicate import checks treat different query strings as distinct module requests.
|
|
10
|
+
|
|
11
|
+
- [`f7826d4`](https://github.com/doinki/mado/commit/f7826d4860895d8b6ecf19a3f48c1802a8d5aa03) Thanks [@doinki](https://github.com/doinki)! - The default `@mado/oxlint` configuration now includes the Node.js and Promise presets.
|
|
12
|
+
|
|
13
|
+
The Node.js preset reports errors for reassigning `exports` or calling `new` on `require`. It warns about ignored callback errors, callback calls that may let execution continue, use of `exports` in place of `module.exports`, and paths built by concatenating strings with `__dirname` or `__filename`.
|
|
14
|
+
|
|
3
15
|
## 0.4.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/import.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});const rules={"import/consistent-type-specifier-style":"
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});const rules={"import/consistent-type-specifier-style":"warn","import/default":"off","import/export":"off","import/exports-last":"off","import/extensions":"off","import/first":"warn","import/group-exports":"warn","import/max-dependencies":"off","import/named":"off","import/namespace":"off","import/newline-after-import":"warn","import/no-absolute-path":"off","import/no-amd":"off","import/no-anonymous-default-export":"warn","import/no-commonjs":"off","import/no-cycle":"error","import/no-default-export":"off","import/no-duplicates":["warn",{considerQueryString:true}],"import/no-dynamic-require":"off","import/no-empty-named-blocks":"warn","import/no-mutable-exports":"off","import/no-named-as-default":"off","import/no-named-as-default-member":"off","import/no-named-default":"warn","import/no-named-export":"off","import/no-namespace":"off","import/no-nodejs-modules":"off","import/no-relative-parent-imports":"off","import/no-self-import":"off","import/no-unassigned-import":"off","import/no-webpack-loader-syntax":"off","import/prefer-default-export":"off","import/unambiguous":"off"};var imports={plugins:["import"],rules:rules};exports.default=imports;
|
package/dist/import.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const rules={"import/consistent-type-specifier-style":"
|
|
1
|
+
const rules={"import/consistent-type-specifier-style":"warn","import/default":"off","import/export":"off","import/exports-last":"off","import/extensions":"off","import/first":"warn","import/group-exports":"warn","import/max-dependencies":"off","import/named":"off","import/namespace":"off","import/newline-after-import":"warn","import/no-absolute-path":"off","import/no-amd":"off","import/no-anonymous-default-export":"warn","import/no-commonjs":"off","import/no-cycle":"error","import/no-default-export":"off","import/no-duplicates":["warn",{considerQueryString:true}],"import/no-dynamic-require":"off","import/no-empty-named-blocks":"warn","import/no-mutable-exports":"off","import/no-named-as-default":"off","import/no-named-as-default-member":"off","import/no-named-default":"warn","import/no-named-export":"off","import/no-namespace":"off","import/no-nodejs-modules":"off","import/no-relative-parent-imports":"off","import/no-self-import":"off","import/no-unassigned-import":"off","import/no-webpack-loader-syntax":"off","import/prefer-default-export":"off","import/unambiguous":"off"};var imports={plugins:["import"],rules:rules};export{imports as default};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var oxc=require("./oxc.cjs");const config={extends:[oxc.default],jsPlugins:["eslint-plugin-perfectionist","eslint-plugin-simple-import-sort","eslint-plugin-trim"],rules:{"perfectionist/sort-heritage-clauses":"warn","perfectionist/sort-interfaces":"warn","perfectionist/sort-intersection-types":"warn","perfectionist/sort-object-types":"warn","perfectionist/sort-objects":"warn","perfectionist/sort-switch-case":"warn","perfectionist/sort-union-types":"warn","simple-import-sort/exports":"warn","simple-import-sort/imports":"warn","trim/argument":"warn","trim/class-name":"warn"}};exports.default=config;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _import=require("./import.cjs");var node=require("./node.cjs");var oxc=require("./oxc.cjs");var promise=require("./promise.cjs");const config={extends:[_import.default,node.default,oxc.default,promise.default],jsPlugins:["eslint-plugin-perfectionist","eslint-plugin-simple-import-sort","eslint-plugin-trim"],rules:{"perfectionist/sort-heritage-clauses":"warn","perfectionist/sort-interfaces":"warn","perfectionist/sort-intersection-types":"warn","perfectionist/sort-object-types":"warn","perfectionist/sort-objects":"warn","perfectionist/sort-switch-case":"warn","perfectionist/sort-union-types":"warn","simple-import-sort/exports":"warn","simple-import-sort/imports":"warn","trim/argument":"warn","trim/class-name":"warn"}};exports.default=config;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import oxc from"./oxc.js";const config={extends:[oxc],jsPlugins:["eslint-plugin-perfectionist","eslint-plugin-simple-import-sort","eslint-plugin-trim"],rules:{"perfectionist/sort-heritage-clauses":"warn","perfectionist/sort-interfaces":"warn","perfectionist/sort-intersection-types":"warn","perfectionist/sort-object-types":"warn","perfectionist/sort-objects":"warn","perfectionist/sort-switch-case":"warn","perfectionist/sort-union-types":"warn","simple-import-sort/exports":"warn","simple-import-sort/imports":"warn","trim/argument":"warn","trim/class-name":"warn"}};export{config as default};
|
|
1
|
+
import imports from"./import.js";import node from"./node.js";import oxc from"./oxc.js";import promise from"./promise.js";const config={extends:[imports,node,oxc,promise],jsPlugins:["eslint-plugin-perfectionist","eslint-plugin-simple-import-sort","eslint-plugin-trim"],rules:{"perfectionist/sort-heritage-clauses":"warn","perfectionist/sort-interfaces":"warn","perfectionist/sort-intersection-types":"warn","perfectionist/sort-object-types":"warn","perfectionist/sort-objects":"warn","perfectionist/sort-switch-case":"warn","perfectionist/sort-union-types":"warn","simple-import-sort/exports":"warn","simple-import-sort/imports":"warn","trim/argument":"warn","trim/class-name":"warn"}};export{config as default};
|
package/dist/node.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});const rules={"node/callback-return":"
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});const rules={"node/callback-return":"warn","node/exports-style":"warn","node/global-require":"off","node/handle-callback-err":["warn","^(err|error)$"],"node/no-exports-assign":"error","node/no-mixed-requires":"off","node/no-new-require":"error","node/no-path-concat":"warn","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 +1 @@
|
|
|
1
|
-
const rules={"node/callback-return":"
|
|
1
|
+
const rules={"node/callback-return":"warn","node/exports-style":"warn","node/global-require":"off","node/handle-callback-err":["warn","^(err|error)$"],"node/no-exports-assign":"error","node/no-mixed-requires":"off","node/no-new-require":"error","node/no-path-concat":"warn","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};
|