@eslint-sukka/node 4.0.0 → 4.0.2
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/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -3
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@eslint-sukka/shared"),r=require("eslint-plugin-sukka"),s=require("eslint-plugin-n");exports.node=(
|
|
1
|
+
"use strict";var e=require("@eslint-sukka/shared"),r=require("eslint-plugin-sukka"),s=require("eslint-plugin-n"),o=require("globals");exports.node=(n={})=>{let f=n.module??e.getPackageJson()?.type==="module",i=[...s.configs["flat/mixed-esm-and-cjs"],{files:n.files??(f?["*.mjs",".*.mjs","*.js",".*.js"]:["*.cjs",".*.cjs","*.js",".*.js"]),plugins:{sukka:r,n:s},rules:{"handle-callback-err":"off","no-buffer-constructor":"off","sukka/unicorn/no-new-buffer":"error","no-new-require":"off","n/no-new-require":"error","no-path-concat":"off","n/no-path-concat":"error","no-process-env":"off","no-process-exit":"off","n/no-process-exit":"off","sukka/unicorn/no-process-exit":"warn","no-restricted-modules":"off","no-sync":"off","n/no-deprecated-api":["error",{ignoreModuleItems:["url.parse","url.resolve"]}],"n/no-missing-import":"off","n/no-missing-require":"off","n/no-extraneous-import":"off","n/no-extraneous-require":"off","sukka/unicorn/prefer-json-parse-buffer":"error"},languageOptions:{globals:o.node}}];return!1!==n.strict&&i.push({files:n.files??(f?["*.cjs",".*.cjs"]:["*.cjs",".*.cjs","*.js",".*.js"]),rules:{strict:"warn"}}),i};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FlatESLintConfigItem } from 'eslint-
|
|
1
|
+
import { FlatESLintConfigItem } from '@eslint-sukka/shared';
|
|
2
2
|
|
|
3
3
|
interface OptionsNode {
|
|
4
4
|
strict?: boolean;
|
|
@@ -7,4 +7,4 @@ interface OptionsNode {
|
|
|
7
7
|
}
|
|
8
8
|
declare const node: (options?: OptionsNode) => FlatESLintConfigItem[];
|
|
9
9
|
|
|
10
|
-
export { OptionsNode, node };
|
|
10
|
+
export { type OptionsNode, node };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@eslint-sukka/shared"),r=require("eslint-plugin-sukka"),s=require("eslint-plugin-n");exports.node=(
|
|
1
|
+
"use strict";var e=require("@eslint-sukka/shared"),r=require("eslint-plugin-sukka"),s=require("eslint-plugin-n"),o=require("globals");exports.node=(n={})=>{let f=n.module??e.getPackageJson()?.type==="module",i=[...s.configs["flat/mixed-esm-and-cjs"],{files:n.files??(f?["*.mjs",".*.mjs","*.js",".*.js"]:["*.cjs",".*.cjs","*.js",".*.js"]),plugins:{sukka:r,n:s},rules:{"handle-callback-err":"off","no-buffer-constructor":"off","sukka/unicorn/no-new-buffer":"error","no-new-require":"off","n/no-new-require":"error","no-path-concat":"off","n/no-path-concat":"error","no-process-env":"off","no-process-exit":"off","n/no-process-exit":"off","sukka/unicorn/no-process-exit":"warn","no-restricted-modules":"off","no-sync":"off","n/no-deprecated-api":["error",{ignoreModuleItems:["url.parse","url.resolve"]}],"n/no-missing-import":"off","n/no-missing-require":"off","n/no-extraneous-import":"off","n/no-extraneous-require":"off","sukka/unicorn/prefer-json-parse-buffer":"error"},languageOptions:{globals:o.node}}];return!1!==n.strict&&i.push({files:n.files??(f?["*.cjs",".*.cjs"]:["*.cjs",".*.cjs","*.js",".*.js"]),rules:{strict:"warn"}}),i};
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getPackageJson as
|
|
1
|
+
import{getPackageJson as o}from"@eslint-sukka/shared";import e from"eslint-plugin-sukka";import r from"eslint-plugin-n";import n from"globals";let s=(s={})=>{let f=s.module??o()?.type==="module",i=[...r.configs["flat/mixed-esm-and-cjs"],{files:s.files??(f?["*.mjs",".*.mjs","*.js",".*.js"]:["*.cjs",".*.cjs","*.js",".*.js"]),plugins:{sukka:e,n:r},rules:{"handle-callback-err":"off","no-buffer-constructor":"off","sukka/unicorn/no-new-buffer":"error","no-new-require":"off","n/no-new-require":"error","no-path-concat":"off","n/no-path-concat":"error","no-process-env":"off","no-process-exit":"off","n/no-process-exit":"off","sukka/unicorn/no-process-exit":"warn","no-restricted-modules":"off","no-sync":"off","n/no-deprecated-api":["error",{ignoreModuleItems:["url.parse","url.resolve"]}],"n/no-missing-import":"off","n/no-missing-require":"off","n/no-extraneous-import":"off","n/no-extraneous-require":"off","sukka/unicorn/prefer-json-parse-buffer":"error"},languageOptions:{globals:n.node}}];return!1!==s.strict&&i.push({files:s.files??(f?["*.cjs",".*.cjs"]:["*.cjs",".*.cjs","*.js",".*.js"]),rules:{strict:"warn"}}),i};export{s as node};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-sukka/node",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Sukka's ESLint config",
|
|
5
5
|
"author": "Sukka <https://skk.moe>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,8 +29,9 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"eslint-plugin-n": "^16.1.0",
|
|
32
|
-
"
|
|
33
|
-
"eslint-
|
|
32
|
+
"globals": "^13.23.0",
|
|
33
|
+
"@eslint-sukka/shared": "4.0.2",
|
|
34
|
+
"eslint-plugin-sukka": "4.0.2"
|
|
34
35
|
},
|
|
35
36
|
"scripts": {
|
|
36
37
|
"build": "rollup -c rollup.config.ts --configPlugin swc3"
|