@eslint-sukka/node 6.0.0-beta.6 → 6.0.0-beta.8
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 +6 -6
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@eslint-sukka/shared"),r=require("eslint-plugin-sukka"),o=require("eslint-plugin-n"),t={__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,exports:!0,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,require:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1};exports.node=(a={})=>{let n=a.module??e.getPackageJson()?.type==="module",s=[...o.configs["flat/mixed-esm-and-cjs"],{files:a.files??(n?["*.mjs",".*.mjs","*.js",".*.js"]:["*.cjs",".*.cjs","*.js",".*.js"]),plugins:{sukka:e.memo(r,"eslint-plugin-sukka"),n:e.memo(o,"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:t}}];return!1!==a.strict&&s.push({files:a.files??(n?["*.cjs",".*.cjs"]:["*.cjs",".*.cjs","*.js",".*.js"]),rules:{strict:"warn"}}),s};
|
|
1
|
+
"use strict";var e=require("@eslint-sukka/shared"),r=require("eslint-plugin-sukka"),o=require("eslint-plugin-n"),t={__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,exports:!0,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,Iterator:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,require:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1};exports.node=(a={})=>{let n=a.module??e.getPackageJson()?.type==="module",s=[...o.configs["flat/mixed-esm-and-cjs"],{name:"@eslint-sukka/node base",files:a.files??(n?["*.mjs",".*.mjs","*.js",".*.js"]:["*.cjs",".*.cjs","*.js",".*.js"]),plugins:{sukka:e.memo(r,"eslint-plugin-sukka"),n:e.memo(o,"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:t}}];return!1!==a.strict&&s.push({name:"@eslint-sukka/node use strict",files:a.files??(n?["*.cjs",".*.cjs"]:["*.cjs",".*.cjs","*.js",".*.js"]),rules:{strict:"warn"}}),s};
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getPackageJson as e,memo as r,RESTRICTED_IMPORT_NODE_REQUIRE as o}from"@eslint-sukka/shared";import t from"eslint-plugin-sukka";import a from"eslint-plugin-n";var n={__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,exports:!0,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,require:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1};let s=(s={})=>{let l=s.module??e()?.type==="module",i=[...a.configs["flat/mixed-esm-and-cjs"],{files:s.files??(l?["*.mjs",".*.mjs","*.js",".*.js"]:["*.cjs",".*.cjs","*.js",".*.js"]),plugins:{sukka:r(t,"eslint-plugin-sukka"),n:r(a,"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",o]},languageOptions:{globals:n}}];return!1!==s.strict&&i.push({files:s.files??(l?["*.cjs",".*.cjs"]:["*.cjs",".*.cjs","*.js",".*.js"]),rules:{strict:"warn"}}),i};export{s as node};
|
|
1
|
+
import{getPackageJson as e,memo as r,RESTRICTED_IMPORT_NODE_REQUIRE as o}from"@eslint-sukka/shared";import t from"eslint-plugin-sukka";import a from"eslint-plugin-n";var n={__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,exports:!0,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,Iterator:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,require:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1};let s=(s={})=>{let l=s.module??e()?.type==="module",i=[...a.configs["flat/mixed-esm-and-cjs"],{name:"@eslint-sukka/node base",files:s.files??(l?["*.mjs",".*.mjs","*.js",".*.js"]:["*.cjs",".*.cjs","*.js",".*.js"]),plugins:{sukka:r(t,"eslint-plugin-sukka"),n:r(a,"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",o]},languageOptions:{globals:n}}];return!1!==s.strict&&i.push({name:"@eslint-sukka/node use strict",files:s.files??(l?["*.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": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.8",
|
|
4
4
|
"description": "Sukka's ESLint config",
|
|
5
5
|
"homepage": "https://github.com/SukkaW/eslint-config-sukka",
|
|
6
6
|
"repository": {
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"author": "Sukka <https://skk.moe>",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"eslint-plugin-n": "^17.
|
|
32
|
-
"eslint-
|
|
33
|
-
"
|
|
31
|
+
"eslint-plugin-n": "^17.7.0",
|
|
32
|
+
"@eslint-sukka/shared": "6.0.0-beta.8",
|
|
33
|
+
"eslint-plugin-sukka": "6.0.0-beta.8"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"globals": "^15.
|
|
37
|
-
"@eslint-sukka/rollup-config": "6.0.0-beta.
|
|
36
|
+
"globals": "^15.2.0",
|
|
37
|
+
"@eslint-sukka/rollup-config": "6.0.0-beta.8"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "rollup -c rollup.config.ts --configPlugin swc3"
|