@eslint-sukka/node 4.1.10-beta.0 → 4.1.10-beta.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.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"),
|
|
1
|
+
"use strict";var e=require("@eslint-sukka/shared"),r=require("eslint-plugin-sukka"),n=require("eslint-plugin-n"),s=require("globals");exports.node=(o={})=>{let i=o.module??e.getPackageJson()?.type==="module",u=[...n.configs["flat/mixed-esm-and-cjs"],{files:o.files??(i?["*.mjs",".*.mjs","*.js",".*.js"]:["*.cjs",".*.cjs","*.js",".*.js"]),plugins:{sukka:e.memo(r,"eslint-plugin-sukka"),n:e.memo(n,"eslint-plugin-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.RESTRICTED_IMPORT_NODE_REQUIRE]},languageOptions:{globals:s.node}}];return!1!==o.strict&&u.push({files:o.files??(i?["*.cjs",".*.cjs"]:["*.cjs",".*.cjs","*.js",".*.js"]),rules:{strict:"warn"}}),u};
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getPackageJson as o,RESTRICTED_IMPORT_NODE_REQUIRE as
|
|
1
|
+
import{getPackageJson as e,memo as o,RESTRICTED_IMPORT_NODE_REQUIRE as r}from"@eslint-sukka/shared";import n from"eslint-plugin-sukka";import s from"eslint-plugin-n";import i from"globals";let f=(f={})=>{let t=f.module??e()?.type==="module",l=[...s.configs["flat/mixed-esm-and-cjs"],{files:f.files??(t?["*.mjs",".*.mjs","*.js",".*.js"]:["*.cjs",".*.cjs","*.js",".*.js"]),plugins:{sukka:o(n,"eslint-plugin-sukka"),n:o(s,"eslint-plugin-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",r]},languageOptions:{globals:i.node}}];return!1!==f.strict&&l.push({files:f.files??(t?["*.cjs",".*.cjs"]:["*.cjs",".*.cjs","*.js",".*.js"]),rules:{strict:"warn"}}),l};export{f as node};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-sukka/node",
|
|
3
|
-
"version": "4.1.10-beta.
|
|
3
|
+
"version": "4.1.10-beta.2",
|
|
4
4
|
"description": "Sukka's ESLint config",
|
|
5
5
|
"homepage": "https://github.com/SukkaW/eslint-config-sukka",
|
|
6
6
|
"repository": {
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"eslint-plugin-n": "^16.3.1",
|
|
32
32
|
"globals": "^13.23.0",
|
|
33
|
-
"@eslint-sukka/shared": "4.1.10-beta.
|
|
34
|
-
"eslint-plugin-sukka": "4.1.10-beta.
|
|
33
|
+
"@eslint-sukka/shared": "4.1.10-beta.2",
|
|
34
|
+
"eslint-plugin-sukka": "4.1.10-beta.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@eslint-sukka/rollup-config": "4.1.10-beta.
|
|
37
|
+
"@eslint-sukka/rollup-config": "4.1.10-beta.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "rollup -c rollup.config.ts --configPlugin swc3"
|