@eslint-sukka/node 4.0.6 → 4.1.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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +11 -10
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 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]
|
|
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]},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 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]
|
|
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]},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 o,RESTRICTED_IMPORT_NODE_REQUIRE as e}from"@eslint-sukka/shared";import r from"eslint-plugin-sukka";import n from"eslint-plugin-n";import s from"globals";let f=(f={})=>{let i=f.module??o()?.type==="module",t=[...n.configs["flat/mixed-esm-and-cjs"],{files:f.files??(i?["*.mjs",".*.mjs","*.js",".*.js"]:["*.cjs",".*.cjs","*.js",".*.js"]),plugins:{sukka:r,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]},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,20 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-sukka/node",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Sukka's ESLint config",
|
|
5
|
-
"author": "Sukka <https://skk.moe>",
|
|
6
|
-
"license": "MIT",
|
|
7
5
|
"homepage": "https://github.com/SukkaW/eslint-config-sukka",
|
|
8
6
|
"repository": {
|
|
9
7
|
"url": "https://github.com/SukkaW/eslint-config-sukka",
|
|
10
8
|
"directory": "packages/node"
|
|
11
9
|
},
|
|
12
|
-
"keywords": [
|
|
13
|
-
"eslint-config"
|
|
14
|
-
],
|
|
15
10
|
"main": "dist/index.js",
|
|
16
11
|
"module": "dist/index.mjs",
|
|
17
12
|
"types": "dist/index.d.ts",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
18
16
|
"exports": {
|
|
19
17
|
".": {
|
|
20
18
|
"types": "./dist/index.d.ts",
|
|
@@ -24,14 +22,17 @@
|
|
|
24
22
|
},
|
|
25
23
|
"./package.json": "./package.json"
|
|
26
24
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
25
|
+
"keywords": [
|
|
26
|
+
"eslint-config"
|
|
29
27
|
],
|
|
28
|
+
"author": "Sukka <https://skk.moe>",
|
|
29
|
+
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"eslint-plugin-n": "^16.2.0",
|
|
32
32
|
"globals": "^13.23.0",
|
|
33
|
-
"@eslint-sukka/
|
|
34
|
-
"eslint-
|
|
33
|
+
"@eslint-sukka/rollup-config": "4.1.1",
|
|
34
|
+
"@eslint-sukka/shared": "4.1.1",
|
|
35
|
+
"eslint-plugin-sukka": "4.1.1"
|
|
35
36
|
},
|
|
36
37
|
"scripts": {
|
|
37
38
|
"build": "rollup -c rollup.config.ts --configPlugin swc3"
|