@anolilab/eslint-config 11.0.1 → 11.0.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## @anolilab/eslint-config [11.0.2](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@11.0.1...@anolilab/eslint-config@11.0.2) (2023-07-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Remove 'n/file-extension-in-import' rule from overrides ([3541b6d](https://github.com/anolilab/javascript-style-guide/commit/3541b6d0bf490cc049263159dfce6e1a341cd797))
|
|
7
|
+
|
|
1
8
|
## @anolilab/eslint-config [11.0.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@11.0.0...@anolilab/eslint-config@11.0.1) (2023-07-27)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
require('../../chunk-3NVDJZNH.js');
|
|
4
4
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
5
5
|
|
|
6
|
-
if(global.anolilabEslintConfigNodeRules===void 0&&packageJsonUtils.pkg?.engines?.node){let
|
|
6
|
+
if(global.anolilabEslintConfigNodeRules===void 0&&packageJsonUtils.pkg?.engines?.node){let n=packageJsonUtils.pkg.engines.node;global.anolilabEslintConfigNodeRules={"n/no-unsupported-features/es-builtins":["error",{version:n}],"n/no-unsupported-features/es-syntax":["error",{ignores:["modules"],version:n}],"n/no-unsupported-features/node-builtins":["error",{version:n}]};}var o={env:{node:!0},extends:["plugin:n/recommended"],parserOptions:{ecmaVersion:2021},plugins:["n"],rules:{"global-require":"error","n/callback-return":"off","n/file-extension-in-import":"off","n/handle-callback-err":"off","n/no-extraneous-import":"off","n/no-extraneous-require":"off","n/no-missing-import":"off","n/no-missing-require":"off","n/no-mixed-requires":["error",{allowCall:!0,grouping:!0}],"n/no-new-require":"error","n/no-process-env":"off","n/no-process-exit":"off","n/no-restricted-modules":"off","n/no-sync":"off","n/no-unpublished-bin":"error","n/process-exit-as-throw":"error","no-buffer-constructor":"error","no-path-concat":"error",...global.anolilabEslintConfigNodeRules}},i=o;
|
|
7
7
|
|
|
8
|
-
module.exports =
|
|
8
|
+
module.exports = i;
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
10
10
|
//# sourceMappingURL=node.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/node.ts"],"names":["pkg","version","config","node_default"],"mappings":"gCAAA,OAAS,OAAAA,MAAW,+BAGpB,GAAI,OAAO,gCAAkC,QAAaA,GAAK,SAAU,KAAS,CAC9E,IAAMC,EAAkBD,EAAI,QAAQ,KAEpC,OAAO,8BAAgC,CACnC,wCAAyC,CAAC,QAAS,CAAE,QAAAC,CAAQ,CAAC,EAC9D,sCAAuC,CAAC,QAAS,CAAE,QAAS,CAAC,SAAS,EAAG,QAAAA,CAAQ,CAAC,EAClF,0CAA2C,CAAC,QAAS,CAAE,QAAAA,CAAQ,CAAC,CACpE,CACJ,CAGA,IAAMC,EAAwB,CAC1B,IAAK,CACD,KAAM,EACV,EACA,QAAS,CAAC,sBAAsB,EAChC,
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/node.ts"],"names":["pkg","version","config","node_default"],"mappings":"gCAAA,OAAS,OAAAA,MAAW,+BAGpB,GAAI,OAAO,gCAAkC,QAAaA,GAAK,SAAU,KAAS,CAC9E,IAAMC,EAAkBD,EAAI,QAAQ,KAEpC,OAAO,8BAAgC,CACnC,wCAAyC,CAAC,QAAS,CAAE,QAAAC,CAAQ,CAAC,EAC9D,sCAAuC,CAAC,QAAS,CAAE,QAAS,CAAC,SAAS,EAAG,QAAAA,CAAQ,CAAC,EAClF,0CAA2C,CAAC,QAAS,CAAE,QAAAA,CAAQ,CAAC,CACpE,CACJ,CAGA,IAAMC,EAAwB,CAC1B,IAAK,CACD,KAAM,EACV,EACA,QAAS,CAAC,sBAAsB,EAChC,cAAe,CACX,YAAa,IACjB,EACA,QAAS,CAAC,GAAG,EACb,MAAO,CAEH,iBAAkB,QAElB,oBAAqB,MAIrB,6BAA8B,MAG9B,wBAAyB,MAGzB,yBAA0B,MAG1B,0BAA2B,MAI3B,sBAAuB,MAGvB,uBAAwB,MAIxB,sBAAuB,CACnB,QACA,CACI,UAAW,GACX,SAAU,EACd,CACJ,EAGA,mBAAoB,QAGpB,mBAAoB,MAIpB,oBAAqB,MAGrB,0BAA2B,MAI3B,YAAa,MAGb,uBAAwB,QAGxB,0BAA2B,QAG3B,wBAAyB,QAGzB,iBAAkB,QAElB,GAAG,OAAO,6BACd,CACJ,EAEOC,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nif (global.anolilabEslintConfigNodeRules === undefined && pkg?.engines?.[\"node\"]) {\n const version: string = pkg.engines[\"node\"];\n\n global.anolilabEslintConfigNodeRules = {\n \"n/no-unsupported-features/es-builtins\": [\"error\", { version }],\n \"n/no-unsupported-features/es-syntax\": [\"error\", { ignores: [\"modules\"], version }],\n \"n/no-unsupported-features/node-builtins\": [\"error\", { version }],\n };\n}\n\n// @see https://github.com/eslint-community/eslint-plugin-n\nconst config: Linter.Config = {\n env: {\n node: true,\n },\n extends: [\"plugin:n/recommended\"],\n parserOptions: {\n ecmaVersion: 2021,\n },\n plugins: [\"n\"],\n rules: {\n // https://eslint.org/docs/rules/global-require\n \"global-require\": \"error\",\n // enforce return after a callback\n \"n/callback-return\": \"off\",\n\n // enforce the style of file extensions in import declarations\n // This rule is buggy @see https://github.com/eslint-community/eslint-plugin-n/issues/21\n \"n/file-extension-in-import\": \"off\",\n\n // enforces error handling in callbacks (node environment)\n \"n/handle-callback-err\": \"off\",\n\n // Redundant with `import/no-extraneous-dependencies`.\n \"n/no-extraneous-import\": \"off\",\n\n // disallow require() expressions which import extraneous modules\n \"n/no-extraneous-require\": \"off\",\n\n // require all requires be top-level\n // Redundant with `import/no-unresolved`.\n \"n/no-missing-import\": \"off\", // This rule is also buggy and doesn't support `node:`.\n\n // disallow require() expressions which import non-existence modules\n \"n/no-missing-require\": \"off\",\n\n // disallow use of the Buffer() constructor\n // disallow mixing regular variable and require declarations\n \"n/no-mixed-requires\": [\n \"error\",\n {\n allowCall: true,\n grouping: true,\n },\n ],\n\n // disallow use of new operator with the require function\n \"n/no-new-require\": \"error\",\n\n // disallow use of process.env\n \"n/no-process-env\": \"off\",\n\n // disallow string concatenation with __dirname and __filename\n // unicorn/no-process-exit is enabled instead.\n \"n/no-process-exit\": \"off\",\n\n // restrict usage of specified node modules\n \"n/no-restricted-modules\": \"off\",\n\n // disallow process.exit()\n // disallow use of synchronous methods (off by default)\n \"n/no-sync\": \"off\",\n\n // disallow bin files that npm ignores\n \"n/no-unpublished-bin\": \"error\",\n\n // require that process.exit() expressions use the same code path as throw\n \"n/process-exit-as-throw\": \"error\",\n\n // https://eslint.org/docs/rules/no-buffer-constructor\n \"no-buffer-constructor\": \"error\",\n\n // https://eslint.org/docs/rules/no-path-concat\n \"no-path-concat\": \"error\",\n\n ...global.anolilabEslintConfigNodeRules,\n },\n};\n\nexport default config;\n"]}
|