@anolilab/eslint-config
Version:
ESLint shareable config for the Anolilab JavaScript style guide.
17 lines (13 loc) • 2.26 kB
JavaScript
;
var chunkSEYYGHPU_js = require('../../chunk-SEYYGHPU.js');
var chunkWW4PDMXQ_js = require('../../chunk-WW4PDMXQ.js');
require('../../chunk-5RAVHY5O.js');
var process = require('process');
var packageJsonUtils = require('@anolilab/package-json-utils');
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(`
@anolilab/eslint-config found "sort-package-json" package.
Following rules are disabled: jsonc/sort-keys for all package.json files.
`);}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;
module.exports = g;
//# sourceMappingURL=out.js.map
//# sourceMappingURL=jsonc.js.map