@eslint-sukka/node 4.0.3 → 4.0.5
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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
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"),o=require("globals");exports.node=(n={})=>{let
|
|
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 i=n.module??e.getPackageJson()?.type==="module",f=[...s.configs["flat/mixed-esm-and-cjs"],{files:n.files??(i?["*.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","n/no-restricted-require":["error",e.RESTRICTED_IMPORT_NODE_REQUIRE],"sukka/unicorn/prefer-json-parse-buffer":"error"},languageOptions:{globals:o.node}}];return!1!==n.strict&&f.push({files:n.files??(i?["*.cjs",".*.cjs"]:["*.cjs",".*.cjs","*.js",".*.js"]),rules:{strict:"warn"}}),f};
|
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"),o=require("globals");exports.node=(n={})=>{let
|
|
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 i=n.module??e.getPackageJson()?.type==="module",f=[...s.configs["flat/mixed-esm-and-cjs"],{files:n.files??(i?["*.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","n/no-restricted-require":["error",e.RESTRICTED_IMPORT_NODE_REQUIRE],"sukka/unicorn/prefer-json-parse-buffer":"error"},languageOptions:{globals:o.node}}];return!1!==n.strict&&f.push({files:n.files??(i?["*.cjs",".*.cjs"]:["*.cjs",".*.cjs","*.js",".*.js"]),rules:{strict:"warn"}}),f};
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getPackageJson as
|
|
1
|
+
import{getPackageJson as r,RESTRICTED_IMPORT_NODE_REQUIRE as e}from"@eslint-sukka/shared";import o from"eslint-plugin-sukka";import n from"eslint-plugin-n";import s from"globals";let f=(f={})=>{let i=f.module??r()?.type==="module",t=[...n.configs["flat/mixed-esm-and-cjs"],{files:f.files??(i?["*.mjs",".*.mjs","*.js",".*.js"]:["*.cjs",".*.cjs","*.js",".*.js"]),plugins:{sukka:o,n:n},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","n/no-restricted-require":["error",e],"sukka/unicorn/prefer-json-parse-buffer":"error"},languageOptions:{globals:s.node}}];return!1!==f.strict&&t.push({files:f.files??(i?["*.cjs",".*.cjs"]:["*.cjs",".*.cjs","*.js",".*.js"]),rules:{strict:"warn"}}),t};export{f 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.5",
|
|
4
4
|
"description": "Sukka's ESLint config",
|
|
5
5
|
"author": "Sukka <https://skk.moe>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"eslint-plugin-n": "^16.
|
|
31
|
+
"eslint-plugin-n": "^16.2.0",
|
|
32
32
|
"globals": "^13.23.0",
|
|
33
|
-
"@eslint-sukka/shared": "4.0.
|
|
34
|
-
"eslint-plugin-sukka": "4.0.
|
|
33
|
+
"@eslint-sukka/shared": "4.0.5",
|
|
34
|
+
"eslint-plugin-sukka": "4.0.5"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "rollup -c rollup.config.ts --configPlugin swc3"
|