@anolilab/eslint-config 14.0.22 → 14.0.24
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 +36 -0
- package/dist/config/plugins/deprecation.js +2 -2
- package/dist/config/plugins/deprecation.js.map +1 -1
- package/dist/config/plugins/etc.js +10 -2
- package/dist/config/plugins/etc.js.map +1 -1
- package/dist/config/plugins/jsonc.js +1 -1
- package/dist/config/plugins/jsonc.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## @anolilab/eslint-config [14.0.24](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@14.0.23...@anolilab/eslint-config@14.0.24) (2023-10-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update readme with new settings ([0e9fdff](https://github.com/anolilab/javascript-style-guide/commit/0e9fdffd3638fffb8d06755b05cea1c0777df98d))
|
|
7
|
+
|
|
8
|
+
## @anolilab/eslint-config [14.0.23](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@14.0.22...@anolilab/eslint-config@14.0.23) (2023-10-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* moved etc/no-deprecated into the etc config and extend the log messages ([4229224](https://github.com/anolilab/javascript-style-guide/commit/4229224079bf1a75eb554dd264f3c05b65b45cb7))
|
|
14
|
+
|
|
1
15
|
## @anolilab/eslint-config [14.0.22](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/eslint-config@14.0.21...@anolilab/eslint-config@14.0.22) (2023-10-10)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -320,6 +320,42 @@ To disable the info, set the value to `false`.
|
|
|
320
320
|
}
|
|
321
321
|
```
|
|
322
322
|
|
|
323
|
+
#### info_on_disabling_jsonc_sort_keys_rule
|
|
324
|
+
|
|
325
|
+
Type: `boolean`
|
|
326
|
+
|
|
327
|
+
Default: `undefined`
|
|
328
|
+
|
|
329
|
+
To disable the info, set the value to `false`.
|
|
330
|
+
|
|
331
|
+
```json
|
|
332
|
+
{
|
|
333
|
+
"anolilab": {
|
|
334
|
+
"eslint-config": {
|
|
335
|
+
"info_on_disabling_jsonc_sort_keys_rule": false
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
#### info_on_disabling_etc_no_deprecated
|
|
342
|
+
|
|
343
|
+
Type: `boolean`
|
|
344
|
+
|
|
345
|
+
Default: `undefined`
|
|
346
|
+
|
|
347
|
+
To disable the info, set the value to `false`.
|
|
348
|
+
|
|
349
|
+
```json
|
|
350
|
+
{
|
|
351
|
+
"anolilab": {
|
|
352
|
+
"eslint-config": {
|
|
353
|
+
"info_on_disabling_etc_no_deprecated": false
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
```
|
|
358
|
+
|
|
323
359
|
#### info_on_testing_library_framework
|
|
324
360
|
|
|
325
361
|
Type: `boolean`
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
|
|
4
4
|
require('../../chunk-MFE6DF6Y.js');
|
|
5
5
|
|
|
6
|
-
var t=chunkWG6GTAIA_js.a("typescript",{plugins:["deprecation"],extends:["plugin:deprecation/recommended"]
|
|
6
|
+
var t=chunkWG6GTAIA_js.a("typescript",{plugins:["deprecation"],extends:["plugin:deprecation/recommended"]}),n=t;
|
|
7
7
|
|
|
8
|
-
module.exports =
|
|
8
|
+
module.exports = n;
|
|
9
9
|
//# sourceMappingURL=out.js.map
|
|
10
10
|
//# sourceMappingURL=deprecation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/deprecation.ts"],"names":["config","createConfig","deprecation_default"],"mappings":"4EAKA,IAAMA,EAAwBC,EAAa,aAAc,CACrD,QAAS,CAAC,aAAa,EACvB,QAAS,CAAC,gCAAgC,
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/deprecation.ts"],"names":["config","createConfig","deprecation_default"],"mappings":"4EAKA,IAAMA,EAAwBC,EAAa,aAAc,CACrD,QAAS,CAAC,aAAa,EACvB,QAAS,CAAC,gCAAgC,CAC9C,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\n// @see https://github.com/francoismassart/eslint-plugin-tailwindcss,\nconst config: Linter.Config = createConfig(\"typescript\", {\n plugins: [\"deprecation\"],\n extends: [\"plugin:deprecation/recommended\"],\n});\n\nexport default config;\n"]}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunkSEYYGHPU_js = require('../../chunk-SEYYGHPU.js');
|
|
4
|
+
var chunkWW4PDMXQ_js = require('../../chunk-WW4PDMXQ.js');
|
|
3
5
|
var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
|
|
4
6
|
require('../../chunk-MFE6DF6Y.js');
|
|
7
|
+
var process = require('process');
|
|
8
|
+
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
5
9
|
|
|
6
|
-
|
|
10
|
+
if(!global.hasAnolilabEsLintConfigDeprecation&&(packageJsonUtils.hasDependency("eslint-plugin-deprecation")||packageJsonUtils.hasDevDependency("eslint-plugin-deprecation"))){global.hasAnolilabEsLintConfigDeprecation=!0;let e=process.env.DISABLE_INFO_ON_DISABLING_ETC_NO_DEPRECATED!=="true";e&&chunkWW4PDMXQ_js.a.info_on_disabling_etc_no_deprecated!==void 0&&(e=chunkWW4PDMXQ_js.a.info_on_disabling_etc_no_deprecated),e&&chunkSEYYGHPU_js.b(`
|
|
11
|
+
@anolilab/eslint-config found "eslint-plugin-deprecation" package.
|
|
7
12
|
|
|
8
|
-
|
|
13
|
+
Following rules are disabled: etc/no-deprecated.
|
|
14
|
+
`);}var r=chunkWG6GTAIA_js.a("typescript",{extends:["plugin:etc/recommended"],plugins:["etc"],rules:{"etc/no-deprecated":global.hasAnolilabEsLintConfigDeprecation?"off":"error"}}),g=r;
|
|
15
|
+
|
|
16
|
+
module.exports = g;
|
|
9
17
|
//# sourceMappingURL=out.js.map
|
|
10
18
|
//# sourceMappingURL=etc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/etc.ts"],"names":["config","createConfig","etc_default"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/etc.ts"],"names":["env","hasDependency","hasDevDependency","showLog","eslint_config_default","consoleLog","config","createConfig","etc_default"],"mappings":"oKAAA,OAAS,OAAAA,MAAW,UAEpB,OAAS,iBAAAC,EAAe,oBAAAC,MAAwB,+BAOhD,GAAI,CAAC,OAAO,qCAAuCD,EAAc,2BAA2B,GAAKC,EAAiB,2BAA2B,GAAI,CAC7I,OAAO,mCAAqC,GAC5C,IAAIC,EAAmBH,EAAI,8CAAmD,OAE1EG,GAAWC,EAAqB,sCAA2C,SAC3ED,EAAUC,EAAqB,qCAG/BD,GACAE,EAAW;AAAA;AAAA;AAAA;AAAA,CACqC,CAExD,CAEA,IAAMC,EAAwBC,EAAa,aAAc,CACrD,QAAS,CAAC,wBAAwB,EAClC,QAAS,CAAC,KAAK,EACf,MAAO,CACH,oBAAqB,OAAO,mCAAqC,MAAQ,OAC7E,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["import { env } from \"node:process\";\n\nimport { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\nimport anolilabEslintConfig from \"../../utils/eslint-config\";\nimport { consoleLog } from \"../../utils/loggers\";\n\nif (!global.hasAnolilabEsLintConfigDeprecation && (hasDependency(\"eslint-plugin-deprecation\") || hasDevDependency(\"eslint-plugin-deprecation\"))) {\n global.hasAnolilabEsLintConfigDeprecation = true;\n let showLog: boolean = env[\"DISABLE_INFO_ON_DISABLING_ETC_NO_DEPRECATED\"] !== \"true\";\n\n if (showLog && anolilabEslintConfig[\"info_on_disabling_etc_no_deprecated\"] !== undefined) {\n showLog = anolilabEslintConfig[\"info_on_disabling_etc_no_deprecated\"] as boolean;\n }\n\n if (showLog) {\n consoleLog(`\\n@anolilab/eslint-config found \"eslint-plugin-deprecation\" package. \\n\n Following rules are disabled: etc/no-deprecated. \\n`);\n }\n}\n\nconst config: Linter.Config = createConfig(\"typescript\", {\n extends: [\"plugin:etc/recommended\"],\n plugins: [\"etc\"],\n rules: {\n \"etc/no-deprecated\": global.hasAnolilabEsLintConfigDeprecation ? \"off\" : \"error\",\n },\n});\n\nexport default config;\n"]}
|
|
@@ -7,7 +7,7 @@ var process = require('process');
|
|
|
7
7
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
8
8
|
|
|
9
9
|
var t=[];(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&t.push("plugin:jsonc/prettier");if(!global.hasAnolilabEsLintConfigJsoncPackageJsonSort&&(packageJsonUtils.hasDependency("sort-package-json")||packageJsonUtils.hasDevDependency("sort-package-json"))){global.hasAnolilabEsLintConfigJsoncPackageJsonSort=!0;let e=process.env.DISABLE_INFO_ON_DISABLING_JSONC_SORT_KEYS_RULE!=="true";e&&chunkWW4PDMXQ_js.a.info_on_disabling_jsonc_sort_keys_rule!==void 0&&(e=chunkWW4PDMXQ_js.a.info_on_disabling_jsonc_sort_keys_rule),e&&chunkSEYYGHPU_js.b(`
|
|
10
|
-
@anolilab/eslint-config found sort-package-json.
|
|
10
|
+
@anolilab/eslint-config found "sort-package-json" package.
|
|
11
11
|
|
|
12
12
|
Following rules are disabled: jsonc/sort-keys for all package.json files.
|
|
13
13
|
`);}var a={overrides:[{extends:t,files:["**/*.json","**/*.json5","**/*.jsonc"],parser:"jsonc-eslint-parser"},{extends:["plugin:jsonc/recommended-with-json5"],files:["**/*.json5"]},{extends:["plugin:jsonc/recommended-with-jsonc"],files:["**/*.jsonc"]},{extends:["plugin:jsonc/recommended-with-json"],files:["**/*.json"]},{extends:["plugin:jsonc/recommended-with-json"],files:["package.json"],rules:{"jsonc/sort-keys":global.hasAnolilabEsLintConfigJsoncPackageJsonSort?"off":["error",{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:"^$"},{order:{type:"asc"},pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies$"},{order:["types","require","import"],pathPattern:"^exports.*$"}]}}]},g=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/jsonc.ts"],"names":["env","hasDependency","hasDevDependency","extendedPlugins","showLog","eslint_config_default","consoleLog","config","jsonc_default"],"mappings":"wHAAA,OAAS,OAAAA,MAAW,UAEpB,OAAS,iBAAAC,EAAe,oBAAAC,MAAwB,+BAMhD,IAAMC,EAA4B,CAAC,GAE/BF,EAAc,UAAU,GAAKC,EAAiB,UAAU,IACxDC,EAAgB,KAAK,uBAAuB,EAGhD,GAAI,CAAC,OAAO,8CAAgDF,EAAc,mBAAmB,GAAKC,EAAiB,mBAAmB,GAAI,CACtI,OAAO,4CAA8C,GAErD,IAAIE,EAAmBJ,EAAI,iDAAsD,OAE7EI,GAAWC,EAAqB,yCAA8C,SAC9ED,EAAUC,EAAqB,wCAG/BD,GACAE,EAAW;AAAA;AAAA;AAAA;AAAA,CAC8D,CAEjF,CAEA,IAAMC,EAAwB,CAC1B,UAAW,CACP,CACI,QAASJ,EACT,MAAO,CAAC,YAAa,aAAc,YAAY,EAC/C,OAAQ,qBACZ,EACA,CACI,QAAS,CAAC,qCAAqC,EAC/C,MAAO,CAAC,YAAY,CACxB,EACA,CACI,QAAS,CAAC,qCAAqC,EAC/C,MAAO,CAAC,YAAY,CACxB,EACA,CACI,QAAS,CAAC,oCAAoC,EAC9C,MAAO,CAAC,WAAW,CACvB,EACA,CACI,QAAS,CAAC,oCAAoC,EAC9C,MAAO,CAAC,cAAc,EACtB,MAAO,CAEH,kBAAmB,OAAO,4CACpB,MACA,CACE,QACA,CACI,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,EACA,YAAa,IACjB,EACA,CACI,MAAO,CAAE,KAAM,KAAM,EACrB,YAAa,iDACjB,EACA,CACI,MAAO,CAAC,QAAS,UAAW,QAAQ,EACpC,YAAa,aACjB,CACJ,CACR,CACJ,CACJ,CACJ,EAEOK,EAAQD","sourcesContent":["import { env } from \"node:process\";\n\nimport { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport anolilabEslintConfig from \"../../utils/eslint-config\";\nimport { consoleLog } from \"../../utils/loggers\";\n\nconst extendedPlugins: string[] = [];\n\nif (hasDependency(\"prettier\") || hasDevDependency(\"prettier\")) {\n extendedPlugins.push(\"plugin:jsonc/prettier\");\n}\n\nif (!global.hasAnolilabEsLintConfigJsoncPackageJsonSort && (hasDependency(\"sort-package-json\") || hasDevDependency(\"sort-package-json\"))) {\n global.hasAnolilabEsLintConfigJsoncPackageJsonSort = true;\n\n let showLog: boolean = env[\"DISABLE_INFO_ON_DISABLING_JSONC_SORT_KEYS_RULE\"] !== \"true\";\n\n if (showLog && anolilabEslintConfig[\"info_on_disabling_jsonc_sort_keys_rule\"] !== undefined) {\n showLog = anolilabEslintConfig[\"info_on_disabling_jsonc_sort_keys_rule\"] as boolean;\n }\n\n if (showLog) {\n consoleLog(`\\n@anolilab/eslint-config found sort-package-json. \\n\n Following rules are disabled: jsonc/sort-keys for all package.json files. \\n`);\n }\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n extends: extendedPlugins,\n files: [\"**/*.json\", \"**/*.json5\", \"**/*.jsonc\"],\n parser: \"jsonc-eslint-parser\",\n },\n {\n extends: [\"plugin:jsonc/recommended-with-json5\"],\n files: [\"**/*.json5\"],\n },\n {\n extends: [\"plugin:jsonc/recommended-with-jsonc\"],\n files: [\"**/*.jsonc\"],\n },\n {\n extends: [\"plugin:jsonc/recommended-with-json\"],\n files: [\"**/*.json\"],\n },\n {\n extends: [\"plugin:jsonc/recommended-with-json\"],\n files: [\"package.json\"],\n rules: {\n // When the package \"sort-package-json\" is installed, we disable the rule \"jsonc/sort-keys\" because, the package \"sort-package-json\" is responsible for sorting the keys.\n \"jsonc/sort-keys\": global.hasAnolilabEsLintConfigJsoncPackageJsonSort\n ? \"off\"\n : [\n \"error\",\n {\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 pathPattern: \"^$\",\n },\n {\n order: { type: \"asc\" },\n pathPattern: \"^(?:dev|peer|optional|bundled)?[Dd]ependencies$\",\n },\n {\n order: [\"types\", \"require\", \"import\"],\n pathPattern: \"^exports.*$\",\n },\n ],\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/jsonc.ts"],"names":["env","hasDependency","hasDevDependency","extendedPlugins","showLog","eslint_config_default","consoleLog","config","jsonc_default"],"mappings":"wHAAA,OAAS,OAAAA,MAAW,UAEpB,OAAS,iBAAAC,EAAe,oBAAAC,MAAwB,+BAMhD,IAAMC,EAA4B,CAAC,GAE/BF,EAAc,UAAU,GAAKC,EAAiB,UAAU,IACxDC,EAAgB,KAAK,uBAAuB,EAGhD,GAAI,CAAC,OAAO,8CAAgDF,EAAc,mBAAmB,GAAKC,EAAiB,mBAAmB,GAAI,CACtI,OAAO,4CAA8C,GAErD,IAAIE,EAAmBJ,EAAI,iDAAsD,OAE7EI,GAAWC,EAAqB,yCAA8C,SAC9ED,EAAUC,EAAqB,wCAG/BD,GACAE,EAAW;AAAA;AAAA;AAAA;AAAA,CAC8D,CAEjF,CAEA,IAAMC,EAAwB,CAC1B,UAAW,CACP,CACI,QAASJ,EACT,MAAO,CAAC,YAAa,aAAc,YAAY,EAC/C,OAAQ,qBACZ,EACA,CACI,QAAS,CAAC,qCAAqC,EAC/C,MAAO,CAAC,YAAY,CACxB,EACA,CACI,QAAS,CAAC,qCAAqC,EAC/C,MAAO,CAAC,YAAY,CACxB,EACA,CACI,QAAS,CAAC,oCAAoC,EAC9C,MAAO,CAAC,WAAW,CACvB,EACA,CACI,QAAS,CAAC,oCAAoC,EAC9C,MAAO,CAAC,cAAc,EACtB,MAAO,CAEH,kBAAmB,OAAO,4CACpB,MACA,CACE,QACA,CACI,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,EACA,YAAa,IACjB,EACA,CACI,MAAO,CAAE,KAAM,KAAM,EACrB,YAAa,iDACjB,EACA,CACI,MAAO,CAAC,QAAS,UAAW,QAAQ,EACpC,YAAa,aACjB,CACJ,CACR,CACJ,CACJ,CACJ,EAEOK,EAAQD","sourcesContent":["import { env } from \"node:process\";\n\nimport { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport anolilabEslintConfig from \"../../utils/eslint-config\";\nimport { consoleLog } from \"../../utils/loggers\";\n\nconst extendedPlugins: string[] = [];\n\nif (hasDependency(\"prettier\") || hasDevDependency(\"prettier\")) {\n extendedPlugins.push(\"plugin:jsonc/prettier\");\n}\n\nif (!global.hasAnolilabEsLintConfigJsoncPackageJsonSort && (hasDependency(\"sort-package-json\") || hasDevDependency(\"sort-package-json\"))) {\n global.hasAnolilabEsLintConfigJsoncPackageJsonSort = true;\n\n let showLog: boolean = env[\"DISABLE_INFO_ON_DISABLING_JSONC_SORT_KEYS_RULE\"] !== \"true\";\n\n if (showLog && anolilabEslintConfig[\"info_on_disabling_jsonc_sort_keys_rule\"] !== undefined) {\n showLog = anolilabEslintConfig[\"info_on_disabling_jsonc_sort_keys_rule\"] as boolean;\n }\n\n if (showLog) {\n consoleLog(`\\n@anolilab/eslint-config found \"sort-package-json\" package. \\n\n Following rules are disabled: jsonc/sort-keys for all package.json files. \\n`);\n }\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n extends: extendedPlugins,\n files: [\"**/*.json\", \"**/*.json5\", \"**/*.jsonc\"],\n parser: \"jsonc-eslint-parser\",\n },\n {\n extends: [\"plugin:jsonc/recommended-with-json5\"],\n files: [\"**/*.json5\"],\n },\n {\n extends: [\"plugin:jsonc/recommended-with-jsonc\"],\n files: [\"**/*.jsonc\"],\n },\n {\n extends: [\"plugin:jsonc/recommended-with-json\"],\n files: [\"**/*.json\"],\n },\n {\n extends: [\"plugin:jsonc/recommended-with-json\"],\n files: [\"package.json\"],\n rules: {\n // When the package \"sort-package-json\" is installed, we disable the rule \"jsonc/sort-keys\" because, the package \"sort-package-json\" is responsible for sorting the keys.\n \"jsonc/sort-keys\": global.hasAnolilabEsLintConfigJsoncPackageJsonSort\n ? \"off\"\n : [\n \"error\",\n {\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 pathPattern: \"^$\",\n },\n {\n order: { type: \"asc\" },\n pathPattern: \"^(?:dev|peer|optional|bundled)?[Dd]ependencies$\",\n },\n {\n order: [\"types\", \"require\", \"import\"],\n pathPattern: \"^exports.*$\",\n },\n ],\n },\n },\n ],\n};\n\nexport default config;\n"]}
|