@anolilab/eslint-config 6.0.2 → 6.1.0
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 +14 -0
- package/README.md +6 -5
- package/dist/config/plugins/babel.js +3 -2
- package/dist/config/plugins/babel.js.map +1 -1
- package/dist/config/plugins/babel.mjs +7 -6
- package/dist/config/plugins/babel.mjs.map +1 -1
- package/dist/config/plugins/html.js +5 -2
- package/dist/config/plugins/html.js.map +1 -1
- package/dist/config/plugins/html.mjs +5 -2
- package/dist/config/plugins/html.mjs.map +1 -1
- package/dist/config/plugins/jsdoc.js +2 -2
- package/dist/config/plugins/jsdoc.js.map +1 -1
- package/dist/config/plugins/jsdoc.mjs +2 -2
- package/dist/config/plugins/jsdoc.mjs.map +1 -1
- package/dist/config/plugins/jsonc.js +2 -4
- package/dist/config/plugins/jsonc.js.map +1 -1
- package/dist/config/plugins/jsonc.mjs +2 -4
- package/dist/config/plugins/jsonc.mjs.map +1 -1
- package/dist/config/plugins/node.js.map +1 -1
- package/dist/config/plugins/node.mjs.map +1 -1
- package/dist/config/plugins/react.js +1 -1
- package/dist/config/plugins/react.js.map +1 -1
- package/dist/config/plugins/react.mjs +1 -1
- package/dist/config/plugins/react.mjs.map +1 -1
- package/dist/config/plugins/typescript.js +2 -4
- package/dist/config/plugins/typescript.js.map +1 -1
- package/dist/config/plugins/typescript.mjs +2 -4
- package/dist/config/plugins/typescript.mjs.map +1 -1
- package/dist/config/plugins/unicorn.js +3 -3
- package/dist/config/plugins/unicorn.js.map +1 -1
- package/dist/config/plugins/unicorn.mjs +2 -2
- package/dist/config/plugins/unicorn.mjs.map +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -8
- package/dist/index.mjs.map +1 -1
- package/dist/postinstall.js.map +1 -1
- package/dist/postinstall.mjs.map +1 -1
- package/package.json +9 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## @anolilab/eslint-config [6.1.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@6.0.3...@anolilab/eslint-config@6.1.0) (2023-06-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **eslint-config:** added @html-eslint/eslint-plugin to the html plugin, improved the prettier console log output ([836ab76](https://github.com/anolilab/javascript-style-guide/commit/836ab76c88038713d267e8c3fa8b6182274428fd))
|
|
7
|
+
|
|
8
|
+
## @anolilab/eslint-config [6.0.3](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@6.0.2...@anolilab/eslint-config@6.0.3) (2023-06-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **eslint-config:** disabling all rules that are crashing with the prettier config, updated the readme with the info ([ab2a954](https://github.com/anolilab/javascript-style-guide/commit/ab2a954f1482dbe36fd941e305e83619bc831569))
|
|
14
|
+
|
|
1
15
|
## @anolilab/eslint-config [6.0.2](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@6.0.1...@anolilab/eslint-config@6.0.2) (2023-06-16)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -34,6 +34,7 @@ The goal is to reduce noise in code version control and promote use of the lates
|
|
|
34
34
|
- Includes many useful ESLint plugins, like [unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn), [import](https://github.com/benmosher/eslint-plugin-import) and [more](#plugins).
|
|
35
35
|
- Automatically enables rules based on the [engines](https://docs.npmjs.com/files/package.json#engines) field in your package.json.
|
|
36
36
|
- Specify indent and semicolon preferences easily without messing with the rule config.
|
|
37
|
+
- Disables rules that conflict with [Prettier](#let-prettier-handle-style-related-rules).
|
|
37
38
|
|
|
38
39
|
## Install
|
|
39
40
|
|
|
@@ -214,13 +215,13 @@ Default: `undefined`
|
|
|
214
215
|
|
|
215
216
|
Prettier is a code formatting tool that offers fewer options but is more professional than the style-related rules in ESLint.
|
|
216
217
|
|
|
217
|
-
Now that Prettier has become a necessary tool in front end projects, `@anolilab/eslint-config` does not need to maintain the style-related rules in ESLint anymore,
|
|
218
|
+
Now that Prettier has become a necessary tool in front end projects, `@anolilab/eslint-config` does not need to maintain the style-related rules in ESLint anymore,
|
|
219
|
+
so we completely removed all Prettier related rules, if `prettier` is found in your `package.json` and use ESLint to check logical errors which it’s good at.
|
|
218
220
|
|
|
219
|
-
As for whether two spaces or four spaces are used for indentation and whether there is a semicolon at the end, you can configure it in the project’s
|
|
221
|
+
As for whether two spaces or four spaces are used for indentation and whether there is a semicolon at the end, you can configure it in the project’s `.prettierrc.js`.
|
|
222
|
+
Of course, we also provide a recommended Prettier [configuration](../prettier-config/README.md) for your reference.
|
|
220
223
|
|
|
221
|
-
`@anolilab/eslint-config` does
|
|
222
|
-
|
|
223
|
-
This the used [.prettierrc.cjs](../prettier-config/index.cjs) configuration by Anolilab Team only for reference.
|
|
224
|
+
`@anolilab/eslint-config` does disable all included style-related rules, so there is no need to install [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier).
|
|
224
225
|
|
|
225
226
|
## Using experimental features with JavaScript
|
|
226
227
|
|
|
@@ -4,9 +4,10 @@ var chunkROX6JHFJ_js = require('../../chunk-ROX6JHFJ.js');
|
|
|
4
4
|
var chunk6E2RGUNG_js = require('../../chunk-6E2RGUNG.js');
|
|
5
5
|
var chunkSV64EPVP_js = require('../../chunk-SV64EPVP.js');
|
|
6
6
|
var chunkARKJLBXP_js = require('../../chunk-ARKJLBXP.js');
|
|
7
|
+
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
7
8
|
|
|
8
|
-
var
|
|
9
|
+
var a=chunk6E2RGUNG_js.a.rules,n=chunkSV64EPVP_js.a.rules,e=chunkROX6JHFJ_js.a.rules,l={};packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(l={"babel/quotes":0,"@babel/object-curly-spacing":"off","@babel/semi":"off"});var f=chunkARKJLBXP_js.a("all",{plugins:["babel"],rules:{camelcase:"off","babel/camelcase":[e.camelcase[0],{...e.camelcase[1]}],"new-cap":"off","babel/new-cap":e["new-cap"],"no-invalid-this":"off","babel/no-invalid-this":a["no-invalid-this"],"object-curly-spacing":"off","babel/object-curly-spacing":e["object-curly-spacing"],quotes:"off","babel/quotes":e.quotes,semi:"off","babel/semi":e.semi,"no-unused-expressions":"off","babel/no-unused-expressions":a["no-unused-expressions"],"valid-typeof":"off","babel/valid-typeof":n["valid-typeof"],...l}}),d=f;
|
|
9
10
|
|
|
10
|
-
module.exports =
|
|
11
|
+
module.exports = d;
|
|
11
12
|
//# sourceMappingURL=out.js.map
|
|
12
13
|
//# sourceMappingURL=babel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/babel.ts"],"names":["bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","config","create_config_default","babel_default"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/babel.ts"],"names":["hasAnyDep","bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","prettierRules","config","create_config_default","babel_default"],"mappings":"gLAAA,OAAS,aAAAA,MAAiB,+BAQ1B,IAAMC,EAAqBC,EAAoB,MACzCC,EAAcC,EAAa,MAC3BC,EAAaC,EAAY,MAE3BC,EAAoC,CAAC,EAGrCP,EAAU,CAAC,UAAU,EAAG,CACpB,SAAU,EACd,CAAC,IAEDO,EAAgB,CACZ,eAAgB,EAEhB,8BAA+B,MAC/B,cAAe,KACnB,GAGJ,IAAMC,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CACH,UAAW,MACX,kBAAmB,CAEdJ,EAAW,UAAuB,CAAC,EACpC,CAAE,GAAIA,EAAW,UAAuB,CAAC,CAAE,CAC/C,EAEA,UAAW,MACX,gBAAiBA,EAAW,SAAS,EAErC,kBAAmB,MACnB,wBAAyBJ,EAAmB,iBAAiB,EAE7D,uBAAwB,MACxB,6BAA8BI,EAAW,sBAAsB,EAE/D,OAAQ,MACR,eAAgBA,EAAW,OAE3B,KAAM,MACN,aAAcA,EAAW,KAEzB,wBAAyB,MACzB,8BAA+BJ,EAAmB,uBAAuB,EAEzE,eAAgB,MAChB,qBAAsBE,EAAY,cAAc,EAEhD,GAAGI,CACP,CACJ,CAAC,EAEMG,EAAQF","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport createConfig from \"../../utils/create-config\";\nimport bestPracticesConfig from \"../best-practices\";\nimport errorsConfig from \"../errors\";\nimport styleConfig from \"../style\";\n\nconst bestPracticesRules = bestPracticesConfig.rules as Linter.RulesRecord;\nconst errorsRules = errorsConfig.rules as Linter.RulesRecord;\nconst styleRules = styleConfig.rules as Linter.RulesRecord;\n\nlet prettierRules: Linter.RulesRecord = {};\n\nif (\n hasAnyDep([\"prettier\"], {\n peerDeps: false,\n })\n) {\n prettierRules = {\n \"babel/quotes\": 0,\n\n \"@babel/object-curly-spacing\": \"off\",\n \"@babel/semi\": \"off\",\n };\n}\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"babel\"],\n rules: {\n camelcase: \"off\",\n \"babel/camelcase\": [\n // Deep clone to avoid object mutation wierdness\n (styleRules[\"camelcase\"] as any[])[0],\n { ...(styleRules[\"camelcase\"] as any[])[1] },\n ],\n\n \"new-cap\": \"off\",\n \"babel/new-cap\": styleRules[\"new-cap\"],\n\n \"no-invalid-this\": \"off\",\n \"babel/no-invalid-this\": bestPracticesRules[\"no-invalid-this\"],\n\n \"object-curly-spacing\": \"off\",\n \"babel/object-curly-spacing\": styleRules[\"object-curly-spacing\"],\n\n quotes: \"off\",\n \"babel/quotes\": styleRules[\"quotes\"],\n\n semi: \"off\",\n \"babel/semi\": styleRules[\"semi\"],\n\n \"no-unused-expressions\": \"off\",\n \"babel/no-unused-expressions\": bestPracticesRules[\"no-unused-expressions\"],\n\n \"valid-typeof\": \"off\",\n \"babel/valid-typeof\": errorsRules[\"valid-typeof\"],\n\n ...prettierRules,\n },\n});\n\nexport default config;\n"]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { a as a$
|
|
2
|
-
import { a } from '../../chunk-WDMF75TJ.mjs';
|
|
3
|
-
import { a as a$
|
|
4
|
-
import { a as a$
|
|
1
|
+
import { a as a$3 } from '../../chunk-6ZQSXLLR.mjs';
|
|
2
|
+
import { a as a$1 } from '../../chunk-WDMF75TJ.mjs';
|
|
3
|
+
import { a as a$2 } from '../../chunk-DJDHW6UR.mjs';
|
|
4
|
+
import { a as a$4 } from '../../chunk-3XUVOUJE.mjs';
|
|
5
|
+
import { hasAnyDep } from '@anolilab/package-json-utils';
|
|
5
6
|
|
|
6
|
-
var
|
|
7
|
+
var a=a$1.rules,n=a$2.rules,e=a$3.rules,l={};hasAnyDep(["prettier"],{peerDeps:!1})&&(l={"babel/quotes":0,"@babel/object-curly-spacing":"off","@babel/semi":"off"});var f=a$4("all",{plugins:["babel"],rules:{camelcase:"off","babel/camelcase":[e.camelcase[0],{...e.camelcase[1]}],"new-cap":"off","babel/new-cap":e["new-cap"],"no-invalid-this":"off","babel/no-invalid-this":a["no-invalid-this"],"object-curly-spacing":"off","babel/object-curly-spacing":e["object-curly-spacing"],quotes:"off","babel/quotes":e.quotes,semi:"off","babel/semi":e.semi,"no-unused-expressions":"off","babel/no-unused-expressions":a["no-unused-expressions"],"valid-typeof":"off","babel/valid-typeof":n["valid-typeof"],...l}}),d=f;
|
|
7
8
|
|
|
8
|
-
export {
|
|
9
|
+
export { d as default };
|
|
9
10
|
//# sourceMappingURL=out.js.map
|
|
10
11
|
//# sourceMappingURL=babel.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/babel.ts"],"names":["bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","config","create_config_default","babel_default"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/babel.ts"],"names":["hasAnyDep","bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","prettierRules","config","create_config_default","babel_default"],"mappings":"oLAAA,OAAS,aAAAA,MAAiB,+BAQ1B,IAAMC,EAAqBC,EAAoB,MACzCC,EAAcC,EAAa,MAC3BC,EAAaC,EAAY,MAE3BC,EAAoC,CAAC,EAGrCP,EAAU,CAAC,UAAU,EAAG,CACpB,SAAU,EACd,CAAC,IAEDO,EAAgB,CACZ,eAAgB,EAEhB,8BAA+B,MAC/B,cAAe,KACnB,GAGJ,IAAMC,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,OAAO,EACjB,MAAO,CACH,UAAW,MACX,kBAAmB,CAEdJ,EAAW,UAAuB,CAAC,EACpC,CAAE,GAAIA,EAAW,UAAuB,CAAC,CAAE,CAC/C,EAEA,UAAW,MACX,gBAAiBA,EAAW,SAAS,EAErC,kBAAmB,MACnB,wBAAyBJ,EAAmB,iBAAiB,EAE7D,uBAAwB,MACxB,6BAA8BI,EAAW,sBAAsB,EAE/D,OAAQ,MACR,eAAgBA,EAAW,OAE3B,KAAM,MACN,aAAcA,EAAW,KAEzB,wBAAyB,MACzB,8BAA+BJ,EAAmB,uBAAuB,EAEzE,eAAgB,MAChB,qBAAsBE,EAAY,cAAc,EAEhD,GAAGI,CACP,CACJ,CAAC,EAEMG,EAAQF","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport createConfig from \"../../utils/create-config\";\nimport bestPracticesConfig from \"../best-practices\";\nimport errorsConfig from \"../errors\";\nimport styleConfig from \"../style\";\n\nconst bestPracticesRules = bestPracticesConfig.rules as Linter.RulesRecord;\nconst errorsRules = errorsConfig.rules as Linter.RulesRecord;\nconst styleRules = styleConfig.rules as Linter.RulesRecord;\n\nlet prettierRules: Linter.RulesRecord = {};\n\nif (\n hasAnyDep([\"prettier\"], {\n peerDeps: false,\n })\n) {\n prettierRules = {\n \"babel/quotes\": 0,\n\n \"@babel/object-curly-spacing\": \"off\",\n \"@babel/semi\": \"off\",\n };\n}\n\nconst config: Linter.Config = createConfig(\"all\", {\n plugins: [\"babel\"],\n rules: {\n camelcase: \"off\",\n \"babel/camelcase\": [\n // Deep clone to avoid object mutation wierdness\n (styleRules[\"camelcase\"] as any[])[0],\n { ...(styleRules[\"camelcase\"] as any[])[1] },\n ],\n\n \"new-cap\": \"off\",\n \"babel/new-cap\": styleRules[\"new-cap\"],\n\n \"no-invalid-this\": \"off\",\n \"babel/no-invalid-this\": bestPracticesRules[\"no-invalid-this\"],\n\n \"object-curly-spacing\": \"off\",\n \"babel/object-curly-spacing\": styleRules[\"object-curly-spacing\"],\n\n quotes: \"off\",\n \"babel/quotes\": styleRules[\"quotes\"],\n\n semi: \"off\",\n \"babel/semi\": styleRules[\"semi\"],\n\n \"no-unused-expressions\": \"off\",\n \"babel/no-unused-expressions\": bestPracticesRules[\"no-unused-expressions\"],\n\n \"valid-typeof\": \"off\",\n \"babel/valid-typeof\": errorsRules[\"valid-typeof\"],\n\n ...prettierRules,\n },\n});\n\nexport default config;\n"]}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkROX6JHFJ_js = require('../../chunk-ROX6JHFJ.js');
|
|
4
|
+
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
var n=chunkROX6JHFJ_js.a.rules,e=!1,s={};packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(e=!0,s={"@html-eslint/no-extra-spacing-attrs":"off","@html-eslint/element-newline":"off","@html-eslint/quotes":"off"});var l={overrides:[{files:["*.erb","*.handlebars","*.hbs","*.htm","*.html","*.mustache","*.nunjucks","*.php","*.tag","*.twig","*.we"],plugins:["html","@html-eslint"],parser:"@html-eslint/parser",extends:["plugin:@html-eslint/recommended"],globals:{sourceCode:!0},settings:{"html/indent":`+${n.indent[1]}`,"html/report-bad-indent":e?"off":"error"},rules:{"spaced-comment":"off","capitalized-comments":"off","@html-eslint/indent":e?"off":["error",n.indent[1]],...s}}]},m=l;
|
|
7
|
+
|
|
8
|
+
module.exports = m;
|
|
6
9
|
//# sourceMappingURL=out.js.map
|
|
7
10
|
//# sourceMappingURL=html.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/html.ts"],"names":["config","html_default"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/html.ts"],"names":["hasAnyDep","styleRules","style_default","hasPrettier","prettierRules","config","html_default"],"mappings":"4CAAA,OAAS,aAAAA,MAAiB,+BAK1B,IAAMC,EAAaC,EAAY,MAE3BC,EAAc,GAEdC,EAAoC,CAAC,EAGrCJ,EAAU,CAAC,UAAU,EAAG,CACpB,SAAU,EACd,CAAC,IAEDG,EAAc,GAEdC,EAAgB,CACZ,sCAAuC,MACvC,+BAAgC,MAChC,sBAAuB,KAC3B,GAGJ,IAAMC,EAAwB,CAC1B,UAAW,CACP,CACI,MAAO,CAAC,QAAS,eAAgB,QAAS,QAAS,SAAU,aAAc,aAAc,QAAS,QAAS,SAAU,MAAM,EAC3H,QAAS,CAAC,OAAQ,cAAc,EAChC,OAAQ,sBACR,QAAS,CAAC,iCAAiC,EAC3C,QAAS,CACL,WAAY,EAChB,EACA,SAAU,CACN,cAAe,IAAKJ,EAAW,OAAoB,CAAC,IACpD,yBAA0BE,EAAc,MAAQ,OACpD,EACA,MAAO,CAEH,iBAAkB,MAClB,uBAAwB,MACxB,sBAAuBA,EAAc,MAAQ,CAAC,QAAUF,EAAW,OAAoB,CAAC,CAAC,EAEzF,GAAGG,CACP,CACJ,CACJ,CACJ,EAEOE,EAAQD","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport styleConfig from \"../style\";\n\nconst styleRules = styleConfig.rules as Linter.RulesRecord;\n\nlet hasPrettier = false;\n\nlet prettierRules: Linter.RulesRecord = {};\n\nif (\n hasAnyDep([\"prettier\"], {\n peerDeps: false,\n })\n) {\n hasPrettier = true;\n\n prettierRules = {\n \"@html-eslint/no-extra-spacing-attrs\": \"off\",\n \"@html-eslint/element-newline\": \"off\",\n \"@html-eslint/quotes\": \"off\",\n }\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n files: [\"*.erb\", \"*.handlebars\", \"*.hbs\", \"*.htm\", \"*.html\", \"*.mustache\", \"*.nunjucks\", \"*.php\", \"*.tag\", \"*.twig\", \"*.we\"],\n plugins: [\"html\", \"@html-eslint\"],\n parser: \"@html-eslint/parser\",\n extends: [\"plugin:@html-eslint/recommended\"],\n globals: {\n sourceCode: true,\n },\n settings: {\n \"html/indent\": `+${(styleRules[\"indent\"] as any[])[1]}`,\n \"html/report-bad-indent\": hasPrettier ? \"off\" : \"error\",\n },\n rules: {\n // @see https://github.com/yeonjuan/html-eslint/issues/67 bug in html-eslint\n \"spaced-comment\": \"off\",\n \"capitalized-comments\": \"off\",\n \"@html-eslint/indent\": hasPrettier ? \"off\" : [\"error\", (styleRules[\"indent\"] as any[])[1]],\n\n ...prettierRules,\n }\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { a } from '../../chunk-6ZQSXLLR.mjs';
|
|
2
|
+
import { hasAnyDep } from '@anolilab/package-json-utils';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
var n=a.rules,e=!1,s={};hasAnyDep(["prettier"],{peerDeps:!1})&&(e=!0,s={"@html-eslint/no-extra-spacing-attrs":"off","@html-eslint/element-newline":"off","@html-eslint/quotes":"off"});var l={overrides:[{files:["*.erb","*.handlebars","*.hbs","*.htm","*.html","*.mustache","*.nunjucks","*.php","*.tag","*.twig","*.we"],plugins:["html","@html-eslint"],parser:"@html-eslint/parser",extends:["plugin:@html-eslint/recommended"],globals:{sourceCode:!0},settings:{"html/indent":`+${n.indent[1]}`,"html/report-bad-indent":e?"off":"error"},rules:{"spaced-comment":"off","capitalized-comments":"off","@html-eslint/indent":e?"off":["error",n.indent[1]],...s}}]},m=l;
|
|
5
|
+
|
|
6
|
+
export { m as default };
|
|
4
7
|
//# sourceMappingURL=out.js.map
|
|
5
8
|
//# sourceMappingURL=html.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/html.ts"],"names":["config","html_default"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/html.ts"],"names":["hasAnyDep","styleRules","style_default","hasPrettier","prettierRules","config","html_default"],"mappings":"6CAAA,OAAS,aAAAA,MAAiB,+BAK1B,IAAMC,EAAaC,EAAY,MAE3BC,EAAc,GAEdC,EAAoC,CAAC,EAGrCJ,EAAU,CAAC,UAAU,EAAG,CACpB,SAAU,EACd,CAAC,IAEDG,EAAc,GAEdC,EAAgB,CACZ,sCAAuC,MACvC,+BAAgC,MAChC,sBAAuB,KAC3B,GAGJ,IAAMC,EAAwB,CAC1B,UAAW,CACP,CACI,MAAO,CAAC,QAAS,eAAgB,QAAS,QAAS,SAAU,aAAc,aAAc,QAAS,QAAS,SAAU,MAAM,EAC3H,QAAS,CAAC,OAAQ,cAAc,EAChC,OAAQ,sBACR,QAAS,CAAC,iCAAiC,EAC3C,QAAS,CACL,WAAY,EAChB,EACA,SAAU,CACN,cAAe,IAAKJ,EAAW,OAAoB,CAAC,IACpD,yBAA0BE,EAAc,MAAQ,OACpD,EACA,MAAO,CAEH,iBAAkB,MAClB,uBAAwB,MACxB,sBAAuBA,EAAc,MAAQ,CAAC,QAAUF,EAAW,OAAoB,CAAC,CAAC,EAEzF,GAAGG,CACP,CACJ,CACJ,CACJ,EAEOE,EAAQD","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport styleConfig from \"../style\";\n\nconst styleRules = styleConfig.rules as Linter.RulesRecord;\n\nlet hasPrettier = false;\n\nlet prettierRules: Linter.RulesRecord = {};\n\nif (\n hasAnyDep([\"prettier\"], {\n peerDeps: false,\n })\n) {\n hasPrettier = true;\n\n prettierRules = {\n \"@html-eslint/no-extra-spacing-attrs\": \"off\",\n \"@html-eslint/element-newline\": \"off\",\n \"@html-eslint/quotes\": \"off\",\n }\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n files: [\"*.erb\", \"*.handlebars\", \"*.hbs\", \"*.htm\", \"*.html\", \"*.mustache\", \"*.nunjucks\", \"*.php\", \"*.tag\", \"*.twig\", \"*.we\"],\n plugins: [\"html\", \"@html-eslint\"],\n parser: \"@html-eslint/parser\",\n extends: [\"plugin:@html-eslint/recommended\"],\n globals: {\n sourceCode: true,\n },\n settings: {\n \"html/indent\": `+${(styleRules[\"indent\"] as any[])[1]}`,\n \"html/report-bad-indent\": hasPrettier ? \"off\" : \"error\",\n },\n rules: {\n // @see https://github.com/yeonjuan/html-eslint/issues/67 bug in html-eslint\n \"spaced-comment\": \"off\",\n \"capitalized-comments\": \"off\",\n \"@html-eslint/indent\": hasPrettier ? \"off\" : [\"error\", (styleRules[\"indent\"] as any[])[1]],\n\n ...prettierRules,\n }\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var chunkYMWD4DNM_js = require('../../chunk-YMWD4DNM.js');
|
|
4
4
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
Found eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.`):
|
|
6
|
+
var s=[{files:["*.js","*.jsx","*.mjs","*.cjs"],plugins:["jsdoc"],extends:["plugin:jsdoc/recommended-error"]}];packageJsonUtils.hasTypescript&&(packageJsonUtils.hasAnyDep(["eslint-plugin-tsdoc"],{peerDeps:!1})?chunkYMWD4DNM_js.b(`
|
|
7
|
+
Found eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.`):s.push({files:["*.ts","*.tsx","*.mts","*.cts"],plugins:["jsdoc"],extends:["plugin:jsdoc/recommended-typescript-error"]}));var n={overrides:s},d=n;
|
|
8
8
|
|
|
9
9
|
module.exports = d;
|
|
10
10
|
//# sourceMappingURL=out.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/jsdoc.ts"],"names":["hasAnyDep","hasTypescript","overrides","consoleLog","config","jsdoc_default"],"mappings":"4CAAA,OAAS,aAAAA,EAAW,iBAAAC,MAAqB,+BAKzC,IAAMC,EAAwC,CAC1C,CACI,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,QAAS,CAAC,OAAO,EACjB,QAAS,CAAC,gCAAgC,CAC9C,CACJ,EAEID,
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/jsdoc.ts"],"names":["hasAnyDep","hasTypescript","overrides","consoleLog","config","jsdoc_default"],"mappings":"4CAAA,OAAS,aAAAA,EAAW,iBAAAC,MAAqB,+BAKzC,IAAMC,EAAwC,CAC1C,CACI,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,QAAS,CAAC,OAAO,EACjB,QAAS,CAAC,gCAAgC,CAC9C,CACJ,EAEID,IAEID,EAAU,CAAC,qBAAqB,EAAG,CAC/B,SAAU,EACd,CAAC,EAEDG,EAAW;AAAA,6FAAgG,EAE3GD,EAAU,KAAK,CACX,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,QAAS,CAAC,OAAO,EACjB,QAAS,CAAC,2CAA2C,CACzD,CAAC,GAIT,IAAME,EAAwB,CAC1B,UAAAF,CACJ,EAEOG,EAAQD","sourcesContent":["import { hasAnyDep, hasTypescript } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { consoleLog } from \"../../utils/loggers\";\n\nconst overrides: Linter.Config[\"overrides\"] = [\n {\n files: [\"*.js\", \"*.jsx\", \"*.mjs\", \"*.cjs\"],\n plugins: [\"jsdoc\"],\n extends: [\"plugin:jsdoc/recommended-error\"],\n },\n];\n\nif (hasTypescript) {\n if (\n hasAnyDep([\"eslint-plugin-tsdoc\"], {\n peerDeps: false,\n })\n ) {\n consoleLog(\"\\nFound eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.\");\n } else {\n overrides.push({\n files: [\"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\"],\n plugins: [\"jsdoc\"],\n extends: [\"plugin:jsdoc/recommended-typescript-error\"],\n });\n }\n}\n\nconst config: Linter.Config = {\n overrides,\n};\n\nexport default config;\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { b } from '../../chunk-G7JIJH44.mjs';
|
|
2
2
|
import { hasTypescript, hasAnyDep } from '@anolilab/package-json-utils';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
Found eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.`):
|
|
4
|
+
var s=[{files:["*.js","*.jsx","*.mjs","*.cjs"],plugins:["jsdoc"],extends:["plugin:jsdoc/recommended-error"]}];hasTypescript&&(hasAnyDep(["eslint-plugin-tsdoc"],{peerDeps:!1})?b(`
|
|
5
|
+
Found eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.`):s.push({files:["*.ts","*.tsx","*.mts","*.cts"],plugins:["jsdoc"],extends:["plugin:jsdoc/recommended-typescript-error"]}));var n={overrides:s},d=n;
|
|
6
6
|
|
|
7
7
|
export { d as default };
|
|
8
8
|
//# sourceMappingURL=out.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/jsdoc.ts"],"names":["hasAnyDep","hasTypescript","overrides","consoleLog","config","jsdoc_default"],"mappings":"6CAAA,OAAS,aAAAA,EAAW,iBAAAC,MAAqB,+BAKzC,IAAMC,EAAwC,CAC1C,CACI,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,QAAS,CAAC,OAAO,EACjB,QAAS,CAAC,gCAAgC,CAC9C,CACJ,EAEID,
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/jsdoc.ts"],"names":["hasAnyDep","hasTypescript","overrides","consoleLog","config","jsdoc_default"],"mappings":"6CAAA,OAAS,aAAAA,EAAW,iBAAAC,MAAqB,+BAKzC,IAAMC,EAAwC,CAC1C,CACI,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,QAAS,CAAC,OAAO,EACjB,QAAS,CAAC,gCAAgC,CAC9C,CACJ,EAEID,IAEID,EAAU,CAAC,qBAAqB,EAAG,CAC/B,SAAU,EACd,CAAC,EAEDG,EAAW;AAAA,6FAAgG,EAE3GD,EAAU,KAAK,CACX,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,QAAS,CAAC,OAAO,EACjB,QAAS,CAAC,2CAA2C,CACzD,CAAC,GAIT,IAAME,EAAwB,CAC1B,UAAAF,CACJ,EAEOG,EAAQD","sourcesContent":["import { hasAnyDep, hasTypescript } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { consoleLog } from \"../../utils/loggers\";\n\nconst overrides: Linter.Config[\"overrides\"] = [\n {\n files: [\"*.js\", \"*.jsx\", \"*.mjs\", \"*.cjs\"],\n plugins: [\"jsdoc\"],\n extends: [\"plugin:jsdoc/recommended-error\"],\n },\n];\n\nif (hasTypescript) {\n if (\n hasAnyDep([\"eslint-plugin-tsdoc\"], {\n peerDeps: false,\n })\n ) {\n consoleLog(\"\\nFound eslint-plugin-tsdoc as dependency, disabling the jsdoc rules for *.ts and *.tsx files.\");\n } else {\n overrides.push({\n files: [\"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\"],\n plugins: [\"jsdoc\"],\n extends: [\"plugin:jsdoc/recommended-typescript-error\"],\n });\n }\n}\n\nconst config: Linter.Config = {\n overrides,\n};\n\nexport default config;\n"]}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkYMWD4DNM_js = require('../../chunk-YMWD4DNM.js');
|
|
4
3
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
5
4
|
|
|
6
|
-
var
|
|
7
|
-
Found prettier as dependency, disabling the jsonc prettier rules.`)),n.push("plugin:jsonc/prettier"));var i={overrides:[{files:["*.json","*.json5","*.jsonc"],extends:n,parser:"jsonc-eslint-parser"},{files:["*.json5"],extends:["plugin:jsonc/recommended-with-json5"]},{files:["*.jsonc"],extends:["plugin:jsonc/recommended-with-jsonc"]},{files:["*.json"],extends:["plugin:jsonc/recommended-with-json"],rules:{"jsonc/sort-keys":["error",{pathPattern:"^$",order:["publisher","name","displayName","type","version","private","packageManager","description","author","license","funding","homepage","repository","bugs","keywords","categories","sideEffects","exports","main","module","unpkg","jsdelivr","types","typesVersions","bin","icon","files","engines","activationEvents","contributes","scripts","peerDependencies","peerDependenciesMeta","dependencies","optionalDependencies","devDependencies","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"]},{pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies$",order:{type:"asc"}},{pathPattern:"^exports.*$",order:["types","require","import"]}]}}]},r=i;
|
|
5
|
+
var e=[];packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&e.push("plugin:jsonc/prettier");var n={overrides:[{files:["*.json","*.json5","*.jsonc"],extends:e,parser:"jsonc-eslint-parser"},{files:["*.json5"],extends:["plugin:jsonc/recommended-with-json5"]},{files:["*.jsonc"],extends:["plugin:jsonc/recommended-with-jsonc"]},{files:["*.json"],extends:["plugin:jsonc/recommended-with-json"],rules:{"jsonc/sort-keys":["error",{pathPattern:"^$",order:["publisher","name","displayName","type","version","private","packageManager","description","author","license","funding","homepage","repository","bugs","keywords","categories","sideEffects","exports","main","module","unpkg","jsdelivr","types","typesVersions","bin","icon","files","engines","activationEvents","contributes","scripts","peerDependencies","peerDependenciesMeta","dependencies","optionalDependencies","devDependencies","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"]},{pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies$",order:{type:"asc"}},{pathPattern:"^exports.*$",order:["types","require","import"]}]}}]},t=n;
|
|
8
6
|
|
|
9
|
-
module.exports =
|
|
7
|
+
module.exports = t;
|
|
10
8
|
//# sourceMappingURL=out.js.map
|
|
11
9
|
//# sourceMappingURL=jsonc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/jsonc.ts"],"names":["hasAnyDep","extendedPlugins","
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/jsonc.ts"],"names":["hasAnyDep","extendedPlugins","config","jsonc_default"],"mappings":"AAAA,OAAS,aAAAA,MAAiB,+BAG1B,IAAMC,EAA4B,CAAC,EAG/BD,EAAU,CAAC,UAAU,EAAG,CACpB,SAAU,EACd,CAAC,GAEDC,EAAgB,KAAK,uBAAuB,EAGhD,IAAMC,EAAwB,CAC1B,UAAW,CACP,CACI,MAAO,CAAC,SAAU,UAAW,SAAS,EACtC,QAASD,EACT,OAAQ,qBACZ,EACA,CACI,MAAO,CAAC,SAAS,EACjB,QAAS,CAAC,qCAAqC,CACnD,EACA,CACI,MAAO,CAAC,SAAS,EACjB,QAAS,CAAC,qCAAqC,CACnD,EACA,CACI,MAAO,CAAC,QAAQ,EAChB,QAAS,CAAC,oCAAoC,EAC9C,MAAO,CACH,kBAAmB,CACf,QACA,CACI,YAAa,KACb,MAAO,CACH,YACA,OACA,cACA,OACA,UACA,UACA,iBACA,cACA,SACA,UACA,UACA,WACA,aACA,OACA,WACA,aACA,cACA,UACA,OACA,SACA,QACA,WACA,QACA,gBACA,MACA,OACA,QACA,UACA,mBACA,cACA,UACA,mBACA,uBACA,eACA,uBACA,kBACA,OACA,YACA,cACA,QACA,mBACA,cACA,cACJ,CACJ,EACA,CACI,YAAa,kDACb,MAAO,CAAE,KAAM,KAAM,CACzB,EACA,CACI,YAAa,cACb,MAAO,CAAC,QAAS,UAAW,QAAQ,CACxC,CACJ,CACJ,CACJ,CACJ,CACJ,EAEOE,EAAQD","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nconst extendedPlugins: string[] = [];\n\nif (\n hasAnyDep([\"prettier\"], {\n peerDeps: false,\n })\n) {\n extendedPlugins.push(\"plugin:jsonc/prettier\");\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n files: [\"*.json\", \"*.json5\", \"*.jsonc\"],\n extends: extendedPlugins,\n parser: \"jsonc-eslint-parser\",\n },\n {\n files: [\"*.json5\"],\n extends: [\"plugin:jsonc/recommended-with-json5\"],\n },\n {\n files: [\"*.jsonc\"],\n extends: [\"plugin:jsonc/recommended-with-jsonc\"],\n },\n {\n files: [\"*.json\"],\n extends: [\"plugin:jsonc/recommended-with-json\"],\n rules: {\n \"jsonc/sort-keys\": [\n \"error\",\n {\n pathPattern: \"^$\",\n order: [\n \"publisher\",\n \"name\",\n \"displayName\",\n \"type\",\n \"version\",\n \"private\",\n \"packageManager\",\n \"description\",\n \"author\",\n \"license\",\n \"funding\",\n \"homepage\",\n \"repository\",\n \"bugs\",\n \"keywords\",\n \"categories\",\n \"sideEffects\",\n \"exports\",\n \"main\",\n \"module\",\n \"unpkg\",\n \"jsdelivr\",\n \"types\",\n \"typesVersions\",\n \"bin\",\n \"icon\",\n \"files\",\n \"engines\",\n \"activationEvents\",\n \"contributes\",\n \"scripts\",\n \"peerDependencies\",\n \"peerDependenciesMeta\",\n \"dependencies\",\n \"optionalDependencies\",\n \"devDependencies\",\n \"pnpm\",\n \"overrides\",\n \"resolutions\",\n \"husky\",\n \"simple-git-hooks\",\n \"lint-staged\",\n \"eslintConfig\",\n ],\n },\n {\n pathPattern: \"^(?:dev|peer|optional|bundled)?[Dd]ependencies$\",\n order: { type: \"asc\" },\n },\n {\n pathPattern: \"^exports.*$\",\n order: [\"types\", \"require\", \"import\"],\n },\n ],\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { b } from '../../chunk-G7JIJH44.mjs';
|
|
2
1
|
import { hasAnyDep } from '@anolilab/package-json-utils';
|
|
3
2
|
|
|
4
|
-
var
|
|
5
|
-
Found prettier as dependency, disabling the jsonc prettier rules.`)),n.push("plugin:jsonc/prettier"));var i={overrides:[{files:["*.json","*.json5","*.jsonc"],extends:n,parser:"jsonc-eslint-parser"},{files:["*.json5"],extends:["plugin:jsonc/recommended-with-json5"]},{files:["*.jsonc"],extends:["plugin:jsonc/recommended-with-jsonc"]},{files:["*.json"],extends:["plugin:jsonc/recommended-with-json"],rules:{"jsonc/sort-keys":["error",{pathPattern:"^$",order:["publisher","name","displayName","type","version","private","packageManager","description","author","license","funding","homepage","repository","bugs","keywords","categories","sideEffects","exports","main","module","unpkg","jsdelivr","types","typesVersions","bin","icon","files","engines","activationEvents","contributes","scripts","peerDependencies","peerDependenciesMeta","dependencies","optionalDependencies","devDependencies","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"]},{pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies$",order:{type:"asc"}},{pathPattern:"^exports.*$",order:["types","require","import"]}]}}]},r=i;
|
|
3
|
+
var e=[];hasAnyDep(["prettier"],{peerDeps:!1})&&e.push("plugin:jsonc/prettier");var n={overrides:[{files:["*.json","*.json5","*.jsonc"],extends:e,parser:"jsonc-eslint-parser"},{files:["*.json5"],extends:["plugin:jsonc/recommended-with-json5"]},{files:["*.jsonc"],extends:["plugin:jsonc/recommended-with-jsonc"]},{files:["*.json"],extends:["plugin:jsonc/recommended-with-json"],rules:{"jsonc/sort-keys":["error",{pathPattern:"^$",order:["publisher","name","displayName","type","version","private","packageManager","description","author","license","funding","homepage","repository","bugs","keywords","categories","sideEffects","exports","main","module","unpkg","jsdelivr","types","typesVersions","bin","icon","files","engines","activationEvents","contributes","scripts","peerDependencies","peerDependenciesMeta","dependencies","optionalDependencies","devDependencies","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"]},{pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies$",order:{type:"asc"}},{pathPattern:"^exports.*$",order:["types","require","import"]}]}}]},t=n;
|
|
6
4
|
|
|
7
|
-
export {
|
|
5
|
+
export { t as default };
|
|
8
6
|
//# sourceMappingURL=out.js.map
|
|
9
7
|
//# sourceMappingURL=jsonc.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/jsonc.ts"],"names":["hasAnyDep","extendedPlugins","
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/jsonc.ts"],"names":["hasAnyDep","extendedPlugins","config","jsonc_default"],"mappings":"AAAA,OAAS,aAAAA,MAAiB,+BAG1B,IAAMC,EAA4B,CAAC,EAG/BD,EAAU,CAAC,UAAU,EAAG,CACpB,SAAU,EACd,CAAC,GAEDC,EAAgB,KAAK,uBAAuB,EAGhD,IAAMC,EAAwB,CAC1B,UAAW,CACP,CACI,MAAO,CAAC,SAAU,UAAW,SAAS,EACtC,QAASD,EACT,OAAQ,qBACZ,EACA,CACI,MAAO,CAAC,SAAS,EACjB,QAAS,CAAC,qCAAqC,CACnD,EACA,CACI,MAAO,CAAC,SAAS,EACjB,QAAS,CAAC,qCAAqC,CACnD,EACA,CACI,MAAO,CAAC,QAAQ,EAChB,QAAS,CAAC,oCAAoC,EAC9C,MAAO,CACH,kBAAmB,CACf,QACA,CACI,YAAa,KACb,MAAO,CACH,YACA,OACA,cACA,OACA,UACA,UACA,iBACA,cACA,SACA,UACA,UACA,WACA,aACA,OACA,WACA,aACA,cACA,UACA,OACA,SACA,QACA,WACA,QACA,gBACA,MACA,OACA,QACA,UACA,mBACA,cACA,UACA,mBACA,uBACA,eACA,uBACA,kBACA,OACA,YACA,cACA,QACA,mBACA,cACA,cACJ,CACJ,EACA,CACI,YAAa,kDACb,MAAO,CAAE,KAAM,KAAM,CACzB,EACA,CACI,YAAa,cACb,MAAO,CAAC,QAAS,UAAW,QAAQ,CACxC,CACJ,CACJ,CACJ,CACJ,CACJ,EAEOE,EAAQD","sourcesContent":["import { hasAnyDep } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nconst extendedPlugins: string[] = [];\n\nif (\n hasAnyDep([\"prettier\"], {\n peerDeps: false,\n })\n) {\n extendedPlugins.push(\"plugin:jsonc/prettier\");\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n files: [\"*.json\", \"*.json5\", \"*.jsonc\"],\n extends: extendedPlugins,\n parser: \"jsonc-eslint-parser\",\n },\n {\n files: [\"*.json5\"],\n extends: [\"plugin:jsonc/recommended-with-json5\"],\n },\n {\n files: [\"*.jsonc\"],\n extends: [\"plugin:jsonc/recommended-with-jsonc\"],\n },\n {\n files: [\"*.json\"],\n extends: [\"plugin:jsonc/recommended-with-json\"],\n rules: {\n \"jsonc/sort-keys\": [\n \"error\",\n {\n pathPattern: \"^$\",\n order: [\n \"publisher\",\n \"name\",\n \"displayName\",\n \"type\",\n \"version\",\n \"private\",\n \"packageManager\",\n \"description\",\n \"author\",\n \"license\",\n \"funding\",\n \"homepage\",\n \"repository\",\n \"bugs\",\n \"keywords\",\n \"categories\",\n \"sideEffects\",\n \"exports\",\n \"main\",\n \"module\",\n \"unpkg\",\n \"jsdelivr\",\n \"types\",\n \"typesVersions\",\n \"bin\",\n \"icon\",\n \"files\",\n \"engines\",\n \"activationEvents\",\n \"contributes\",\n \"scripts\",\n \"peerDependencies\",\n \"peerDependenciesMeta\",\n \"dependencies\",\n \"optionalDependencies\",\n \"devDependencies\",\n \"pnpm\",\n \"overrides\",\n \"resolutions\",\n \"husky\",\n \"simple-git-hooks\",\n \"lint-staged\",\n \"eslintConfig\",\n ],\n },\n {\n pathPattern: \"^(?:dev|peer|optional|bundled)?[Dd]ependencies$\",\n order: { type: \"asc\" },\n },\n {\n pathPattern: \"^exports.*$\",\n order: [\"types\", \"require\", \"import\"],\n },\n ],\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/node.ts"],"names":["pkg","configRules","nodeVersion","config","node_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAGpB,IAAMC,EAAkC,CAAC,EAErCC,EAEAF,GAAK,SAAU,OACfE,EAAcF,EAAI,QAAQ,MAG1BE,IACAD,EAAY,uCAAuC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,EACzFD,EAAY,qCAAqC,EAAI,CAAC,QAAS,CAAE,QAASC,EAAa,QAAS,CAAC,SAAS,CAAE,CAAC,EAC7GD,EAAY,yCAAyC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,GAI/F,IAAMC,EAAwB,CAC1B,QAAS,CAAC,sBAAsB,EAChC,QAAS,CAAC,GAAG,EACb,IAAK,CACD,KAAM,EACV,EACA,cAAe,CACX,YAAa,IACjB,EACA,MAAO,CAEH,yBAA0B,MAC1B,0BAA2B,MAG3B,sBAAuB,MACvB,uBAAwB,MAExB,uBAAwB,QAGxB,oBAAqB,MAIrB,iBAAkB,QAGlB,wBAAyB,MAIzB,wBAAyB,QAGzB,sBAAuB,CACnB,QACA,CACI,SAAU,GACV,UAAW,EACf,CACJ,EAGA,mBAAoB,QAIpB,iBAAkB,QAGlB,mBAAoB,MAIpB,oBAAqB,MAGrB,0BAA2B,MAG3B,YAAa,MAEb,0BAA2B,QAE3B,6BAA8B,MAE9B,GAAGF,CACP,EACA,UAAW,CACP,CACI,MAAO,CAAC,OAAQ,QAAS,OAAO,EAChC,MAAO,CAEH,6BAA8B,
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/node.ts"],"names":["pkg","configRules","nodeVersion","config","node_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAGpB,IAAMC,EAAkC,CAAC,EAErCC,EAEAF,GAAK,SAAU,OACfE,EAAcF,EAAI,QAAQ,MAG1BE,IACAD,EAAY,uCAAuC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,EACzFD,EAAY,qCAAqC,EAAI,CAAC,QAAS,CAAE,QAASC,EAAa,QAAS,CAAC,SAAS,CAAE,CAAC,EAC7GD,EAAY,yCAAyC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,GAI/F,IAAMC,EAAwB,CAC1B,QAAS,CAAC,sBAAsB,EAChC,QAAS,CAAC,GAAG,EACb,IAAK,CACD,KAAM,EACV,EACA,cAAe,CACX,YAAa,IACjB,EACA,MAAO,CAEH,yBAA0B,MAC1B,0BAA2B,MAG3B,sBAAuB,MACvB,uBAAwB,MAExB,uBAAwB,QAGxB,oBAAqB,MAIrB,iBAAkB,QAGlB,wBAAyB,MAIzB,wBAAyB,QAGzB,sBAAuB,CACnB,QACA,CACI,SAAU,GACV,UAAW,EACf,CACJ,EAGA,mBAAoB,QAIpB,iBAAkB,QAGlB,mBAAoB,MAIpB,oBAAqB,MAGrB,0BAA2B,MAG3B,YAAa,MAEb,0BAA2B,QAE3B,6BAA8B,MAE9B,GAAGF,CACP,EACA,UAAW,CACP,CACI,MAAO,CAAC,OAAQ,QAAS,OAAO,EAChC,MAAO,CAEH,6BAA8B,CAAC,QAAS,QAAQ,CACpD,CACJ,CACJ,CACJ,EAEOG,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nconst configRules: Linter.RulesRecord = {};\n\nlet nodeVersion: string | undefined;\n\nif (pkg?.engines?.[\"node\"]) {\n nodeVersion = pkg.engines[\"node\"];\n}\n\nif (nodeVersion) {\n configRules[\"n/no-unsupported-features/es-builtins\"] = [\"error\", { version: nodeVersion }];\n configRules[\"n/no-unsupported-features/es-syntax\"] = [\"error\", { version: nodeVersion, ignores: [\"modules\"] }];\n configRules[\"n/no-unsupported-features/node-builtins\"] = [\"error\", { version: nodeVersion }];\n}\n\n// @see https://github.com/eslint-community/eslint-plugin-n\nconst config: Linter.Config = {\n extends: [\"plugin:n/recommended\"],\n plugins: [\"n\"],\n env: {\n node: true,\n },\n parserOptions: {\n ecmaVersion: 2021,\n },\n rules: {\n // Redundant with `import/no-extraneous-dependencies`.\n \"n/no-extraneous-import\": \"off\",\n \"n/no-extraneous-require\": \"off\",\n\n // Redundant with `import/no-unresolved`.\n \"n/no-missing-import\": \"off\", // This rule is also buggy and doesn't support `node:`.\n \"n/no-missing-require\": \"off\",\n\n \"n/no-unpublished-bin\": \"error\",\n\n // enforce return after a callback\n \"n/callback-return\": \"off\",\n\n // require all requires be top-level\n // https://eslint.org/docs/rules/global-require\n \"global-require\": \"error\",\n\n // enforces error handling in callbacks (node environment)\n \"n/handle-callback-err\": \"off\",\n\n // disallow use of the Buffer() constructor\n // https://eslint.org/docs/rules/no-buffer-constructor\n \"no-buffer-constructor\": \"error\",\n\n // disallow mixing regular variable and require declarations\n \"n/no-mixed-requires\": [\n \"error\",\n {\n grouping: true,\n allowCall: true,\n },\n ],\n\n // disallow use of new operator with the require function\n \"n/no-new-require\": \"error\",\n\n // disallow string concatenation with __dirname and __filename\n // https://eslint.org/docs/rules/no-path-concat\n \"no-path-concat\": \"error\",\n\n // disallow use of process.env\n \"n/no-process-env\": \"off\",\n\n // disallow process.exit()\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 use of synchronous methods (off by default)\n \"n/no-sync\": \"off\",\n\n \"n/process-exit-as-throw\": \"error\",\n\n \"n/file-extension-in-import\": \"off\",\n\n ...configRules,\n },\n overrides: [\n {\n files: [\"*.js\", \"*.mjs\", \"*.cjs\"],\n rules: {\n // We have this enabled in addition to `import/extensions` as this one has an auto-fix.\n \"n/file-extension-in-import\": [\"error\", \"always\"],\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/node.ts"],"names":["pkg","configRules","nodeVersion","config","node_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAGpB,IAAMC,EAAkC,CAAC,EAErCC,EAEAF,GAAK,SAAU,OACfE,EAAcF,EAAI,QAAQ,MAG1BE,IACAD,EAAY,uCAAuC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,EACzFD,EAAY,qCAAqC,EAAI,CAAC,QAAS,CAAE,QAASC,EAAa,QAAS,CAAC,SAAS,CAAE,CAAC,EAC7GD,EAAY,yCAAyC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,GAI/F,IAAMC,EAAwB,CAC1B,QAAS,CAAC,sBAAsB,EAChC,QAAS,CAAC,GAAG,EACb,IAAK,CACD,KAAM,EACV,EACA,cAAe,CACX,YAAa,IACjB,EACA,MAAO,CAEH,yBAA0B,MAC1B,0BAA2B,MAG3B,sBAAuB,MACvB,uBAAwB,MAExB,uBAAwB,QAGxB,oBAAqB,MAIrB,iBAAkB,QAGlB,wBAAyB,MAIzB,wBAAyB,QAGzB,sBAAuB,CACnB,QACA,CACI,SAAU,GACV,UAAW,EACf,CACJ,EAGA,mBAAoB,QAIpB,iBAAkB,QAGlB,mBAAoB,MAIpB,oBAAqB,MAGrB,0BAA2B,MAG3B,YAAa,MAEb,0BAA2B,QAE3B,6BAA8B,MAE9B,GAAGF,CACP,EACA,UAAW,CACP,CACI,MAAO,CAAC,OAAQ,QAAS,OAAO,EAChC,MAAO,CAEH,6BAA8B,
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/node.ts"],"names":["pkg","configRules","nodeVersion","config","node_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAGpB,IAAMC,EAAkC,CAAC,EAErCC,EAEAF,GAAK,SAAU,OACfE,EAAcF,EAAI,QAAQ,MAG1BE,IACAD,EAAY,uCAAuC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,EACzFD,EAAY,qCAAqC,EAAI,CAAC,QAAS,CAAE,QAASC,EAAa,QAAS,CAAC,SAAS,CAAE,CAAC,EAC7GD,EAAY,yCAAyC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,GAI/F,IAAMC,EAAwB,CAC1B,QAAS,CAAC,sBAAsB,EAChC,QAAS,CAAC,GAAG,EACb,IAAK,CACD,KAAM,EACV,EACA,cAAe,CACX,YAAa,IACjB,EACA,MAAO,CAEH,yBAA0B,MAC1B,0BAA2B,MAG3B,sBAAuB,MACvB,uBAAwB,MAExB,uBAAwB,QAGxB,oBAAqB,MAIrB,iBAAkB,QAGlB,wBAAyB,MAIzB,wBAAyB,QAGzB,sBAAuB,CACnB,QACA,CACI,SAAU,GACV,UAAW,EACf,CACJ,EAGA,mBAAoB,QAIpB,iBAAkB,QAGlB,mBAAoB,MAIpB,oBAAqB,MAGrB,0BAA2B,MAG3B,YAAa,MAEb,0BAA2B,QAE3B,6BAA8B,MAE9B,GAAGF,CACP,EACA,UAAW,CACP,CACI,MAAO,CAAC,OAAQ,QAAS,OAAO,EAChC,MAAO,CAEH,6BAA8B,CAAC,QAAS,QAAQ,CACpD,CACJ,CACJ,CACJ,EAEOG,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nconst configRules: Linter.RulesRecord = {};\n\nlet nodeVersion: string | undefined;\n\nif (pkg?.engines?.[\"node\"]) {\n nodeVersion = pkg.engines[\"node\"];\n}\n\nif (nodeVersion) {\n configRules[\"n/no-unsupported-features/es-builtins\"] = [\"error\", { version: nodeVersion }];\n configRules[\"n/no-unsupported-features/es-syntax\"] = [\"error\", { version: nodeVersion, ignores: [\"modules\"] }];\n configRules[\"n/no-unsupported-features/node-builtins\"] = [\"error\", { version: nodeVersion }];\n}\n\n// @see https://github.com/eslint-community/eslint-plugin-n\nconst config: Linter.Config = {\n extends: [\"plugin:n/recommended\"],\n plugins: [\"n\"],\n env: {\n node: true,\n },\n parserOptions: {\n ecmaVersion: 2021,\n },\n rules: {\n // Redundant with `import/no-extraneous-dependencies`.\n \"n/no-extraneous-import\": \"off\",\n \"n/no-extraneous-require\": \"off\",\n\n // Redundant with `import/no-unresolved`.\n \"n/no-missing-import\": \"off\", // This rule is also buggy and doesn't support `node:`.\n \"n/no-missing-require\": \"off\",\n\n \"n/no-unpublished-bin\": \"error\",\n\n // enforce return after a callback\n \"n/callback-return\": \"off\",\n\n // require all requires be top-level\n // https://eslint.org/docs/rules/global-require\n \"global-require\": \"error\",\n\n // enforces error handling in callbacks (node environment)\n \"n/handle-callback-err\": \"off\",\n\n // disallow use of the Buffer() constructor\n // https://eslint.org/docs/rules/no-buffer-constructor\n \"no-buffer-constructor\": \"error\",\n\n // disallow mixing regular variable and require declarations\n \"n/no-mixed-requires\": [\n \"error\",\n {\n grouping: true,\n allowCall: true,\n },\n ],\n\n // disallow use of new operator with the require function\n \"n/no-new-require\": \"error\",\n\n // disallow string concatenation with __dirname and __filename\n // https://eslint.org/docs/rules/no-path-concat\n \"no-path-concat\": \"error\",\n\n // disallow use of process.env\n \"n/no-process-env\": \"off\",\n\n // disallow process.exit()\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 use of synchronous methods (off by default)\n \"n/no-sync\": \"off\",\n\n \"n/process-exit-as-throw\": \"error\",\n\n \"n/file-extension-in-import\": \"off\",\n\n ...configRules,\n },\n overrides: [\n {\n files: [\"*.js\", \"*.mjs\", \"*.cjs\"],\n rules: {\n // We have this enabled in addition to `import/extensions` as this one has an auto-fix.\n \"n/file-extension-in-import\": [\"error\", \"always\"],\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -9,7 +9,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
9
9
|
|
|
10
10
|
var p__default = /*#__PURE__*/_interopDefault(p);
|
|
11
11
|
|
|
12
|
-
var t=chunkROX6JHFJ_js.a.rules,e=t["no-underscore-dangle"],c={};packageJsonUtils.hasAnyDep(["
|
|
12
|
+
var t=chunkROX6JHFJ_js.a.rules,e=t["no-underscore-dangle"],c={};packageJsonUtils.hasAnyDep(["prettier"],{peerDeps:!1})&&(c={"react/jsx-child-element-spacing":"off","react/jsx-closing-bracket-location":"off","react/jsx-closing-tag-location":"off","react/jsx-curly-newline":"off","react/jsx-curly-spacing":"off","react/jsx-equals-spacing":"off","react/jsx-first-prop-new-line":"off","react/jsx-indent":"off","react/jsx-indent-props":"off","react/jsx-max-props-per-line":"off","react/jsx-newline":"off","react/jsx-one-expression-per-line":"off","react/jsx-props-no-multi-spaces":"off","react/jsx-tag-spacing":"off","react/jsx-wrap-multilines":"off"});var a=(()=>{if(!global.hasAnolilabEsLintConfigReactRuntimePath){let o=p__default.default.sync("node_modules/react/jsx-runtime.js");typeof o=="string"&&chunkYMWD4DNM_js.b(`
|
|
13
13
|
@anolilab/eslint-config found react jsx-runtime.
|
|
14
14
|
|
|
15
15
|
Following rules are disabled: "react/jsx-uses-react" and "react/react-in-jsx-scope".
|