@eslint-sukka/node 6.1.2 → 6.1.4

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