@anolilab/eslint-config 7.3.2 → 8.0.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 +47 -0
- package/README.md +35 -23
- package/dist/chunk-3NVDJZNH.js +7 -0
- package/dist/chunk-3NVDJZNH.js.map +1 -0
- package/dist/{chunk-SV64EPVP.js → chunk-6COSQA7M.js} +2 -2
- package/dist/chunk-6COSQA7M.js.map +1 -0
- package/dist/chunk-BH4PQLFK.js +10 -0
- package/dist/chunk-BH4PQLFK.js.map +1 -0
- package/dist/chunk-KKHL2OSJ.js +7 -0
- package/dist/chunk-KKHL2OSJ.js.map +1 -0
- package/dist/chunk-MQFZFF2T.js +7 -0
- package/dist/chunk-MQFZFF2T.js.map +1 -0
- package/dist/chunk-PW4WCSOE.js +9 -0
- package/dist/chunk-PW4WCSOE.js.map +1 -0
- package/dist/{chunk-UYUXBUWX.js → chunk-SEYYGHPU.js} +1 -1
- package/dist/chunk-SEYYGHPU.js.map +1 -0
- package/dist/chunk-TWVXPNWB.js +9 -0
- package/dist/chunk-TWVXPNWB.js.map +1 -0
- package/dist/{chunk-U5H7JNHH.js → chunk-VW5ZVT2B.js} +2 -2
- package/dist/{chunk-U5H7JNHH.js.map → chunk-VW5ZVT2B.js.map} +1 -1
- package/dist/{chunk-UJAIXHCQ.js → chunk-ZFO6DTP4.js} +2 -2
- package/dist/{chunk-UJAIXHCQ.js.map → chunk-ZFO6DTP4.js.map} +1 -1
- package/dist/config/best-practices.js +3 -2
- package/dist/config/errors.js +3 -2
- package/dist/config/es6.js +3 -2
- package/dist/config/plugins/antfu.js +3 -2
- package/dist/config/plugins/antfu.js.map +1 -1
- package/dist/config/plugins/array-func.js +3 -2
- package/dist/config/plugins/array-func.js.map +1 -1
- package/dist/config/plugins/ava.js +3 -1
- package/dist/config/plugins/ava.js.map +1 -1
- package/dist/config/plugins/babel.js +7 -5
- package/dist/config/plugins/babel.js.map +1 -1
- package/dist/config/plugins/compat.js +2 -0
- package/dist/config/plugins/compat.js.map +1 -1
- package/dist/config/plugins/cypress.js +2 -0
- package/dist/config/plugins/cypress.js.map +1 -1
- package/dist/config/plugins/es.js +3 -2
- package/dist/config/plugins/es.js.map +1 -1
- package/dist/config/plugins/eslint-comments.js +3 -1
- package/dist/config/plugins/eslint-comments.js.map +1 -1
- package/dist/config/plugins/etc.js +3 -2
- package/dist/config/plugins/etc.js.map +1 -1
- package/dist/config/plugins/html.js +4 -3
- package/dist/config/plugins/html.js.map +1 -1
- package/dist/config/plugins/import.js +3 -2
- package/dist/config/plugins/jest-async.js +2 -0
- package/dist/config/plugins/jest-async.js.map +1 -1
- package/dist/config/plugins/jest-dom.js +2 -0
- package/dist/config/plugins/jest-dom.js.map +1 -1
- package/dist/config/plugins/jest-formatting.js +2 -0
- package/dist/config/plugins/jest-formatting.js.map +1 -1
- package/dist/config/plugins/jest.js +3 -1
- package/dist/config/plugins/jest.js.map +1 -1
- package/dist/config/plugins/jsdoc.js +4 -3
- package/dist/config/plugins/jsdoc.js.map +1 -1
- package/dist/config/plugins/jsonc.js +4 -3
- package/dist/config/plugins/jsonc.js.map +1 -1
- package/dist/config/plugins/jsx-a11y.js +2 -1
- package/dist/config/plugins/jsx-a11y.js.map +1 -1
- package/dist/config/plugins/lodash-fp.js +2 -0
- package/dist/config/plugins/lodash-fp.js.map +1 -1
- package/dist/config/plugins/lodash.js +3 -1
- package/dist/config/plugins/lodash.js.map +1 -1
- package/dist/config/plugins/markdown.js +3 -1
- package/dist/config/plugins/markdown.js.map +1 -1
- package/dist/config/plugins/mdx.js +3 -1
- package/dist/config/plugins/mdx.js.map +1 -1
- package/dist/config/plugins/no-extend-native.js +2 -0
- package/dist/config/plugins/no-extend-native.js.map +1 -1
- package/dist/config/plugins/no-loops.js +2 -0
- package/dist/config/plugins/no-loops.js.map +1 -1
- package/dist/config/plugins/no-secrets.js +3 -1
- package/dist/config/plugins/no-secrets.js.map +1 -1
- package/dist/config/plugins/no-unsanitized.js +2 -0
- package/dist/config/plugins/no-unsanitized.js.map +1 -1
- package/dist/config/plugins/node.js +2 -1
- package/dist/config/plugins/node.js.map +1 -1
- package/dist/config/plugins/playwright.js +2 -1
- package/dist/config/plugins/playwright.js.map +1 -1
- package/dist/config/plugins/promise.js +2 -0
- package/dist/config/plugins/promise.js.map +1 -1
- package/dist/config/plugins/react-hooks.js +3 -1
- package/dist/config/plugins/react-hooks.js.map +1 -1
- package/dist/config/plugins/react-redux.js +3 -1
- package/dist/config/plugins/react-redux.js.map +1 -1
- package/dist/config/plugins/react.js +10 -7
- package/dist/config/plugins/react.js.map +1 -1
- package/dist/config/plugins/regexp.js +3 -2
- package/dist/config/plugins/regexp.js.map +1 -1
- package/dist/config/plugins/security.js +4 -2
- package/dist/config/plugins/security.js.map +1 -1
- package/dist/config/plugins/simple-import-sort.js +3 -1
- package/dist/config/plugins/simple-import-sort.js.map +1 -1
- package/dist/config/plugins/sonarjs.js +3 -2
- package/dist/config/plugins/sonarjs.js.map +1 -1
- package/dist/config/plugins/sort-keys-fix.js +2 -0
- package/dist/config/plugins/sort-keys-fix.js.map +1 -1
- package/dist/config/plugins/storybook.js +3 -1
- package/dist/config/plugins/storybook.js.map +1 -1
- package/dist/config/plugins/tailwindcss.js +3 -2
- package/dist/config/plugins/tailwindcss.js.map +1 -1
- package/dist/config/plugins/tanstack-query.js +3 -2
- package/dist/config/plugins/tanstack-query.js.map +1 -1
- package/dist/config/plugins/testing-library.js +4 -3
- package/dist/config/plugins/testing-library.js.map +1 -1
- package/dist/config/plugins/toml.js +3 -1
- package/dist/config/plugins/toml.js.map +1 -1
- package/dist/config/plugins/tsdoc.js +3 -2
- package/dist/config/plugins/tsdoc.js.map +1 -1
- package/dist/config/plugins/typescript-sort-keys.js +2 -0
- package/dist/config/plugins/typescript-sort-keys.js.map +1 -1
- package/dist/config/plugins/typescript.js +9 -7
- package/dist/config/plugins/typescript.js.map +1 -1
- package/dist/config/plugins/unicorn.js +4 -3
- package/dist/config/plugins/unicorn.js.map +1 -1
- package/dist/config/plugins/vitest.js +3 -1
- package/dist/config/plugins/vitest.js.map +1 -1
- package/dist/config/plugins/yml.js +4 -3
- package/dist/config/plugins/yml.js.map +1 -1
- package/dist/config/plugins/you-dont-need-lodash-underscore.js +2 -0
- package/dist/config/plugins/you-dont-need-lodash-underscore.js.map +1 -1
- package/dist/config/plugins/you-dont-need-momentjs.js +2 -0
- package/dist/config/plugins/you-dont-need-momentjs.js.map +1 -1
- package/dist/config/plugins/zod.js +2 -0
- package/dist/config/plugins/zod.js.map +1 -1
- package/dist/config/style.js +4 -2
- package/dist/config/variables.js +3 -2
- package/dist/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +6 -3
- package/dist/postinstall.js.map +1 -1
- package/dist/typescript-type-checking.js +4 -3
- package/dist/typescript-type-checking.js.map +1 -1
- package/package.json +13 -11
- package/dist/chunk-5S3UQ6WJ.js +0 -7
- package/dist/chunk-5S3UQ6WJ.js.map +0 -1
- package/dist/chunk-GGJONTGP.js +0 -7
- package/dist/chunk-GGJONTGP.js.map +0 -1
- package/dist/chunk-NE6XHV4I.js +0 -9
- package/dist/chunk-NE6XHV4I.js.map +0 -1
- package/dist/chunk-SV64EPVP.js.map +0 -1
- package/dist/chunk-UYUXBUWX.js.map +0 -1
- package/dist/chunk-XJPLKY3T.js +0 -9
- package/dist/chunk-XJPLKY3T.js.map +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVW5ZVT2B_js = require('../../chunk-VW5ZVT2B.js');
|
|
4
|
+
require('../../chunk-3NVDJZNH.js');
|
|
4
5
|
|
|
5
|
-
var r=
|
|
6
|
+
var r=chunkVW5ZVT2B_js.a("typescript",{plugins:["eslint-plugin-tsdoc"],rules:{"tsdoc/syntax":"error"}}),i=r;
|
|
6
7
|
|
|
7
8
|
module.exports = i;
|
|
8
9
|
//# sourceMappingURL=out.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/tsdoc.ts"],"names":["config","createConfig","tsdoc_default"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/tsdoc.ts"],"names":["config","createConfig","tsdoc_default"],"mappings":"4EAIA,IAAMA,EAAwBC,EAAa,aAAc,CACrD,QAAS,CAAC,qBAAqB,EAC/B,MAAO,CACH,eAAgB,OACpB,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\nconst config: Linter.Config = createConfig(\"typescript\", {\n plugins: [\"eslint-plugin-tsdoc\"],\n rules: {\n \"tsdoc/syntax\": \"error\",\n },\n});\n\nexport default config;\n"]}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
require('../../chunk-3NVDJZNH.js');
|
|
4
|
+
|
|
3
5
|
var s={overrides:[{files:["*.ts","*.tsx","*.mts","*.cts"],plugins:["typescript-sort-keys"],rules:{"typescript-sort-keys/interface":"error","typescript-sort-keys/string-enum":"error"}},{files:["*.js","*.cjs","*.mjs"],rules:{"typescript-sort-keys/interface":"off","typescript-sort-keys/string-enum":"off"}}]},t=s;
|
|
4
6
|
|
|
5
7
|
module.exports = t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/typescript-sort-keys.ts"],"names":["config","typescript_sort_keys_default"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/typescript-sort-keys.ts"],"names":["config","typescript_sort_keys_default"],"mappings":"gCAEA,IAAMA,EAAwB,CAC1B,UAAW,CACP,CACI,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,QAAS,CAAC,sBAAsB,EAChC,MAAO,CACH,iCAAkC,QAClC,mCAAoC,OACxC,CACJ,EACA,CACI,MAAO,CAAC,OAAQ,QAAS,OAAO,EAChC,MAAO,CACH,iCAAkC,MAClC,mCAAoC,KACxC,CACJ,CACJ,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n overrides: [\n {\n files: [\"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\"],\n plugins: [\"typescript-sort-keys\"],\n rules: {\n \"typescript-sort-keys/interface\": \"error\",\n \"typescript-sort-keys/string-enum\": \"error\",\n },\n },\n {\n files: [\"*.js\", \"*.cjs\", \"*.mjs\"],\n rules: {\n \"typescript-sort-keys/interface\": \"off\",\n \"typescript-sort-keys/string-enum\": \"off\",\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkZFO6DTP4_js = require('../../chunk-ZFO6DTP4.js');
|
|
4
|
+
var chunkTWVXPNWB_js = require('../../chunk-TWVXPNWB.js');
|
|
5
|
+
var chunkKKHL2OSJ_js = require('../../chunk-KKHL2OSJ.js');
|
|
6
|
+
var chunkBH4PQLFK_js = require('../../chunk-BH4PQLFK.js');
|
|
7
|
+
require('../../chunk-PW4WCSOE.js');
|
|
7
8
|
var chunkPTQ3FFI5_js = require('../../chunk-PTQ3FFI5.js');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
9
|
+
var chunkMQFZFF2T_js = require('../../chunk-MQFZFF2T.js');
|
|
10
|
+
var chunk6COSQA7M_js = require('../../chunk-6COSQA7M.js');
|
|
11
|
+
require('../../chunk-3NVDJZNH.js');
|
|
10
12
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
11
13
|
var process = require('process');
|
|
12
14
|
|
|
13
|
-
var t=
|
|
15
|
+
var t=chunkMQFZFF2T_js.a.rules,y=chunk6COSQA7M_js.a.rules,e=chunkBH4PQLFK_js.a.rules,m=chunkKKHL2OSJ_js.a.rules,d=chunkTWVXPNWB_js.a.overrides[0].rules,n=chunkZFO6DTP4_js.a.rules,{indent:h,quotes:w,semi:C}=e;global.anolilabEslintConfigTypescriptPrettierRules===void 0&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.anolilabEslintConfigTypescriptPrettierRules={"@typescript-eslint/block-spacing":"off","@typescript-eslint/brace-style":"off","@typescript-eslint/comma-dangle":"off","@typescript-eslint/comma-spacing":"off","@typescript-eslint/func-call-spacing":"off","@typescript-eslint/indent":"off","@typescript-eslint/key-spacing":"off","@typescript-eslint/keyword-spacing":"off","@typescript-eslint/lines-around-comment":0,"@typescript-eslint/member-delimiter-style":"off","@typescript-eslint/no-extra-parens":"off","@typescript-eslint/no-extra-semi":"off","@typescript-eslint/object-curly-spacing":"off","@typescript-eslint/quotes":0,"@typescript-eslint/semi":"off","@typescript-eslint/space-before-blocks":"off","@typescript-eslint/space-before-function-paren":"off","@typescript-eslint/space-infix-ops":"off","@typescript-eslint/type-annotation-spacing":"off"});var i=d["import/extensions"],o=d["import/no-extraneous-dependencies"],s=e["comma-dangle"],g=process.env.DISABLE_ESLINT_WARN_UNSUPPORTED_TYPESCRIPT_VERSION!=="true";chunkPTQ3FFI5_js.a?.warn_on_unsupported_typescript_version!==void 0&&(g=chunkPTQ3FFI5_js.a.warn_on_unsupported_typescript_version);var _={overrides:[{extends:["plugin:import/typescript"],files:["*.ts","*.mts","*.cts","*.tsx"],parser:"@typescript-eslint/parser",parserOptions:{ecmaFeatures:{jsx:!0},sourceType:"module",warnOnUnsupportedTypeScriptVersion:g},plugins:["@typescript-eslint"],rules:{"@typescript-eslint/adjacent-overload-signatures":"error","@typescript-eslint/array-type":["error",{default:"array",readonly:"generic"}],"@typescript-eslint/ban-types":["error",{types:{Array:{message:"Provide a more specific type"},Boolean:{fixWith:"boolean",message:"Use boolean instead"},Number:{fixWith:"number",message:"Use number instead"},Object:{fixWith:"object",message:"Use object instead"},String:{fixWith:"string",message:"Use string instead"}}}],"@typescript-eslint/brace-style":e["brace-style"],"@typescript-eslint/comma-dangle":[s[0],{...s[1],enums:s[1].arrays,generics:s[1].arrays,tuples:s[1].arrays}],"@typescript-eslint/comma-spacing":e["comma-spacing"],"@typescript-eslint/consistent-generic-constructors":"error","@typescript-eslint/consistent-type-imports":"error","@typescript-eslint/explicit-member-accessibility":"error","@typescript-eslint/explicit-module-boundary-types":"error","@typescript-eslint/func-call-spacing":e["func-call-spacing"],"@typescript-eslint/indent":h,"@typescript-eslint/keyword-spacing":e["keyword-spacing"],"@typescript-eslint/lines-between-class-members":e["lines-between-class-members"],"@typescript-eslint/member-ordering":["error",{default:["public-static-field","protected-static-field","private-static-field","public-static-method","protected-static-method","private-static-method","public-instance-field","protected-instance-field","private-instance-field","constructor","public-instance-method","protected-instance-method","private-instance-method"]}],"@typescript-eslint/method-signature-style":"error","@typescript-eslint/naming-convention":["error",{format:["camelCase","PascalCase","UPPER_CASE"],selector:"variable"},{format:["camelCase","PascalCase"],selector:"function"},{format:["PascalCase"],selector:"typeLike"}],"@typescript-eslint/no-array-constructor":e["no-array-constructor"],"@typescript-eslint/no-confusing-non-null-assertion":"error","@typescript-eslint/no-dupe-class-members":m["no-dupe-class-members"],"@typescript-eslint/no-duplicate-enum-values":"error","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-empty-function":t["no-empty-function"],"@typescript-eslint/no-extra-non-null-assertion":"error","@typescript-eslint/no-extra-parens":y["no-extra-parens"],"@typescript-eslint/no-extra-semi":y["no-extra-semi"],"@typescript-eslint/no-import-type-side-effects":"error","@typescript-eslint/no-invalid-void-type":"warn","@typescript-eslint/no-loop-func":t["no-loop-func"],"@typescript-eslint/no-magic-numbers":t["no-magic-numbers"],"@typescript-eslint/no-misused-new":"error","@typescript-eslint/no-namespace":"error","@typescript-eslint/no-non-null-asserted-nullish-coalescing":"warn","@typescript-eslint/no-non-null-asserted-optional-chain":"error","@typescript-eslint/no-non-null-assertion":"error","@typescript-eslint/no-redeclare":t["no-redeclare"],"@typescript-eslint/no-require-imports":"error","@typescript-eslint/no-shadow":n["no-shadow"],"@typescript-eslint/no-this-alias":"error","@typescript-eslint/no-unnecessary-type-assertion":"error","@typescript-eslint/no-unnecessary-type-constraint":"error","@typescript-eslint/no-unsafe-argument":"error","@typescript-eslint/no-unsafe-assignment":"error","@typescript-eslint/no-unsafe-call":"error","@typescript-eslint/no-unsafe-declaration-merging":"error","@typescript-eslint/no-unsafe-member-access":"error","@typescript-eslint/no-unsafe-return":"error","@typescript-eslint/no-unused-expressions":t["no-unused-expressions"],"@typescript-eslint/no-unused-vars":n["no-unused-vars"],"@typescript-eslint/no-use-before-define":n["no-use-before-define"],"@typescript-eslint/no-useless-constructor":m["no-useless-constructor"],"@typescript-eslint/no-useless-empty-export":"error","@typescript-eslint/non-nullable-type-assertion-style":"off","@typescript-eslint/prefer-enum-initializers":"error","@typescript-eslint/prefer-function-type":"error","@typescript-eslint/prefer-nullish-coalescing":"error","@typescript-eslint/prefer-optional-chain":"error","@typescript-eslint/prefer-ts-expect-error":"error","@typescript-eslint/quotes":w,"@typescript-eslint/return-await":t["no-return-await"],"@typescript-eslint/semi":C,"@typescript-eslint/sort-type-constituents":"error","@typescript-eslint/space-before-function-paren":e["space-before-function-paren"],"@typescript-eslint/space-infix-ops":e["space-infix-ops"],"brace-style":"off",camelcase:"off","comma-dangle":"off","comma-spacing":"off","constructor-super":"off","dot-notation":"off","func-call-spacing":"off","getter-return":"off","import/extensions":[i[0],i[1],{...i[2],ts:"never",tsx:"never"}],"import/named":"off","import/no-extraneous-dependencies":[o[0],{...o[1],devDependencies:o[1].devDependencies.map(b=>b.replaceAll(/\bjs(x?)\b/g,"ts$1"))}],"import/no-unresolved":"off",indent:"off","keyword-spacing":"off","lines-between-class-members":"off","no-array-constructor":"off","no-const-assign":"off","no-dupe-args":"off","no-dupe-class-members":"off","no-dupe-keys":"off","no-empty-function":"off","no-extra-parens":"off","no-extra-semi":"off","no-func-assign":"off","no-implied-eval":"off","no-loop-func":"off","no-magic-numbers":"off","no-new-func":"off","no-new-symbol":"off","no-obj-calls":"off","no-redeclare":"off","no-return-await":"off","no-shadow":"off","no-this-before-super":"off","no-throw-literal":"off","no-undef":"off","no-unreachable":"off","no-unsafe-negation":"off","no-unused-expressions":"off","no-unused-vars":"off","no-use-before-define":"off","no-useless-constructor":"off",quotes:"off","react/require-default-props":"off",semi:"off","space-before-function-paren":"off","space-infix-ops":"off",strict:"off","valid-typeof":"off",...global.anolilabEslintConfigTypescriptPrettierRules},settings:{"import/extensions":[".js",".mjs",".jsx",".ts",".tsx",".d.ts"],"import/external-module-folders":["node_modules","node_modules/@types"],"import/parsers":{"@typescript-eslint/parser":[".ts",".tsx",".d.ts"]},"import/resolver":{node:{extensions:[".mjs",".cjs",".js",".json",".ts",".d.ts"]}}}},{files:["*.d.ts"],rules:{"import/no-duplicates":"off"}}]},O=_;
|
|
14
16
|
|
|
15
17
|
module.exports = O;
|
|
16
18
|
//# sourceMappingURL=out.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/typescript.ts"],"names":["hasDependency","hasDevDependency","env","bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","eS6Rules","es6_default","importsRules","import_default","variablesRules","variables_default","quotes","semi","indent","importExtensions","importNoExtraneousDependencies","commaDangle","showUnsupportedTypeScriptVersionWarning","eslint_config_default","config","glob","typescript_default"],"mappings":"+SAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAEhD,OAAS,OAAAC,MAAW,UAWpB,IAAMC,EAAqBC,EAAoB,MACzCC,EAAcC,EAAa,MAC3BC,EAAaC,EAAY,MAEzBC,EAAWC,EAAU,MACrBC,EAAiBC,EAAc,UAA0D,CAAC,EAC3F,MACCC,EAAiBC,EAAgB,MAEjC,CAAE,OAAAC,EAAQ,KAAAC,EAAM,OAAAC,CAAO,EAAIV,EAE7B,OAAO,8CAAgD,SAAcP,EAAc,UAAU,GAAKC,EAA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,6DAA8D,OAI9D,yDAA0D,QAI1D,2CAA4C,QAI5C,wCAAyC,QAIzC,mCAAoC,QAIpC,mDAAoD,QAIpD,oDAAqD,QAIrD,wCAAyC,QAIzC,0CAA2C,QAI3C,oCAAqC,QAIrC,mDAAoD,QAIpD,6CAA8C,QAI9C,sCAAuC,QAIvC,6CAA8C,QAI9C,uDAAwD,MAIxD,8CAA+C,QAI/C,0CAA2C,QAI3C,+CAAgD,QAIhD,2CAA4C,QAG5C,iDAAkD,QAGlD,GAAG,OAAO,2CACd,CACJ,EACA,CACI,MAAO,CAAC,QAAQ,EAChB,MAAO,CACH,uBAAwB,KAC5B,CACJ,CACJ,CACJ,EAEOC,EAAQF","sourcesContent":["import { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\nimport { env } from \"node:process\";\n\nimport anolilabEslintConfig from \"../../utils/eslint-config\";\nimport bestPracticesConfig from \"../best-practices\";\nimport errorsConfig from \"../errors\";\n// eslint-disable-next-line unicorn/prevent-abbreviations\nimport eS6Config from \"../es6\";\nimport styleConfig from \"../style\";\nimport variablesConfig from \"../variables\";\nimport importsConfig from \"./import\";\n\nconst bestPracticesRules = bestPracticesConfig.rules as Linter.RulesRecord;\nconst errorsRules = errorsConfig.rules as Linter.RulesRecord;\nconst styleRules = styleConfig.rules as Linter.RulesRecord;\n// eslint-disable-next-line unicorn/prevent-abbreviations\nconst eS6Rules = eS6Config.rules as Linter.RulesRecord;\nconst importsRules = ((importsConfig.overrides as Linter.ConfigOverride<Linter.RulesRecord>[])[0] as Linter.ConfigOverride<Linter.RulesRecord>)\n .rules as Linter.RulesRecord;\nconst variablesRules = variablesConfig.rules as Linter.RulesRecord;\n\nconst { quotes, semi, indent } = styleRules;\n\nif (global.anolilabEslintConfigTypescriptPrettierRules === undefined && (hasDependency(\"prettier\") || hasDevDependency(\"prettier\"))) {\n global.anolilabEslintConfigTypescriptPrettierRules = {\n \"@typescript-eslint/lines-around-comment\": 0,\n \"@typescript-eslint/quotes\": 0,\n \"@typescript-eslint/block-spacing\": \"off\",\n \"@typescript-eslint/brace-style\": \"off\",\n \"@typescript-eslint/comma-dangle\": \"off\",\n \"@typescript-eslint/comma-spacing\": \"off\",\n \"@typescript-eslint/func-call-spacing\": \"off\",\n \"@typescript-eslint/indent\": \"off\",\n \"@typescript-eslint/key-spacing\": \"off\",\n \"@typescript-eslint/keyword-spacing\": \"off\",\n \"@typescript-eslint/member-delimiter-style\": \"off\",\n \"@typescript-eslint/no-extra-parens\": \"off\",\n \"@typescript-eslint/no-extra-semi\": \"off\",\n \"@typescript-eslint/object-curly-spacing\": \"off\",\n \"@typescript-eslint/semi\": \"off\",\n \"@typescript-eslint/space-before-blocks\": \"off\",\n \"@typescript-eslint/space-before-function-paren\": \"off\",\n \"@typescript-eslint/space-infix-ops\": \"off\",\n \"@typescript-eslint/type-annotation-spacing\": \"off\",\n };\n}\n\nconst importExtensions = importsRules[\"import/extensions\"] as any[];\nconst importNoExtraneousDependencies = importsRules[\"import/no-extraneous-dependencies\"] as any[];\nconst commaDangle = styleRules[\"comma-dangle\"] as any[];\n\nlet showUnsupportedTypeScriptVersionWarning: boolean = env[\"DISABLE_ESLINT_WARN_UNSUPPORTED_TYPESCRIPT_VERSION\"] !== \"true\";\n\nif (anolilabEslintConfig?.[\"warn_on_unsupported_typescript_version\"] !== undefined) {\n showUnsupportedTypeScriptVersionWarning = anolilabEslintConfig[\"warn_on_unsupported_typescript_version\"];\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n files: [\"*.ts\", \"*.mts\", \"*.cts\", \"*.tsx\"],\n extends: [\"plugin:import/typescript\"],\n plugins: [\"@typescript-eslint\"],\n parser: \"@typescript-eslint/parser\",\n parserOptions: {\n sourceType: \"module\",\n ecmaFeatures: {\n jsx: true,\n },\n warnOnUnsupportedTypeScriptVersion: showUnsupportedTypeScriptVersionWarning,\n },\n settings: {\n // Apply special parsing for TypeScript files\n \"import/parsers\": {\n \"@typescript-eslint/parser\": [\".ts\", \".tsx\", \".d.ts\"],\n },\n\n // Append 'ts' extensions to 'import/resolver' setting\n \"import/resolver\": {\n node: {\n extensions: [\".mjs\", \".cjs\", \".js\", \".json\", \".ts\", \".d.ts\"],\n },\n },\n\n // Append 'ts' extensions to 'import/extensions' setting\n \"import/extensions\": [\".js\", \".mjs\", \".jsx\", \".ts\", \".tsx\", \".d.ts\"],\n\n // Resolve type definition packages\n \"import/external-module-folders\": [\"node_modules\", \"node_modules/@types\"],\n },\n rules: {\n // Breaks @typescript-eslint/parser\n strict: \"off\",\n\n // Replace 'brace-style' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/brace-style.md\n \"brace-style\": \"off\",\n \"@typescript-eslint/brace-style\": styleRules[\"brace-style\"],\n\n // Replace 'camelcase' rule with '@typescript-eslint/naming-convention'\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/naming-convention.md\n camelcase: \"off\",\n\n // eslint-disable-next-line max-len\n // The `@typescript-eslint/naming-convention` rule allows `leadingUnderscore` and `trailingUnderscore` settings. However, the existing `no-underscore-dangle` rule already takes care of this.\n \"@typescript-eslint/naming-convention\": [\n \"error\",\n // Allow camelCase variables (23.2), PascalCase variables (23.8), and UPPER_CASE variables (23.10)\n {\n selector: \"variable\",\n format: [\"camelCase\", \"PascalCase\", \"UPPER_CASE\"],\n },\n // Allow camelCase functions (23.2), and PascalCase functions (23.8)\n {\n selector: \"function\",\n format: [\"camelCase\", \"PascalCase\"],\n },\n // eslint-disable-next-line max-len\n // recommends PascalCase for classes (23.3), and although it does not make TypeScript recommendations, we are assuming this rule would similarly apply to anything \"type like\", including interfaces, type aliases, and enums\n {\n selector: \"typeLike\",\n format: [\"PascalCase\"],\n },\n ],\n\n // Replace 'comma-dangle' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/comma-dangle.md\n // The TypeScript version also adds 3 new options, all of which should be set to the same value as the base config\n \"comma-dangle\": \"off\",\n \"@typescript-eslint/comma-dangle\": [\n commaDangle[0],\n {\n ...commaDangle[1],\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n enums: commaDangle[1].arrays,\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n generics: commaDangle[1].arrays,\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n tuples: commaDangle[1].arrays,\n },\n ],\n\n // Replace 'comma-spacing' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/comma-spacing.md\n \"comma-spacing\": \"off\",\n \"@typescript-eslint/comma-spacing\": styleRules[\"comma-spacing\"],\n\n // Disable the \"dot-notation\" rule, as it can report incorrect errors on TypeScript code\n \"dot-notation\": \"off\",\n\n // Replace 'func-call-spacing' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/func-call-spacing.md\n \"func-call-spacing\": \"off\",\n \"@typescript-eslint/func-call-spacing\": styleRules[\"func-call-spacing\"],\n\n // Replace 'indent' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/indent.md\n indent: \"off\",\n \"@typescript-eslint/indent\": indent,\n\n // Replace 'keyword-spacing' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/keyword-spacing.md\n \"keyword-spacing\": \"off\",\n \"@typescript-eslint/keyword-spacing\": styleRules[\"keyword-spacing\"],\n\n // Replace 'lines-between-class-members' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/lines-between-class-members.md\n \"lines-between-class-members\": \"off\",\n \"@typescript-eslint/lines-between-class-members\": styleRules[\"lines-between-class-members\"],\n\n // Replace 'no-array-constructor' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-array-constructor.md\n \"no-array-constructor\": \"off\",\n \"@typescript-eslint/no-array-constructor\": styleRules[\"no-array-constructor\"],\n\n // Replace 'no-dupe-class-members' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-dupe-class-members.md\n \"no-dupe-class-members\": \"off\",\n \"@typescript-eslint/no-dupe-class-members\": eS6Rules[\"no-dupe-class-members\"],\n\n // Replace 'no-empty-function' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-empty-function.md\n \"no-empty-function\": \"off\",\n \"@typescript-eslint/no-empty-function\": bestPracticesRules[\"no-empty-function\"],\n\n // Replace 'no-extra-parens' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-parens.md\n \"no-extra-parens\": \"off\",\n \"@typescript-eslint/no-extra-parens\": errorsRules[\"no-extra-parens\"],\n\n // Replace 'no-extra-semi' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-semi.md\n \"no-extra-semi\": \"off\",\n \"@typescript-eslint/no-extra-semi\": errorsRules[\"no-extra-semi\"],\n\n // Disable the \"no-implied-eval\" and \"no-new-func\" rule, as it can report incorrect errors on TypeScript code\n \"no-implied-eval\": \"off\",\n \"no-new-func\": \"off\",\n\n // Replace 'no-loop-func' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-loop-func.md\n \"no-loop-func\": \"off\",\n \"@typescript-eslint/no-loop-func\": bestPracticesRules[\"no-loop-func\"],\n\n // Replace 'no-magic-numbers' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-magic-numbers.md\n \"no-magic-numbers\": \"off\",\n \"@typescript-eslint/no-magic-numbers\": bestPracticesRules[\"no-magic-numbers\"],\n\n // Replace 'no-redeclare' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-redeclare.md\n \"no-redeclare\": \"off\",\n \"@typescript-eslint/no-redeclare\": bestPracticesRules[\"no-redeclare\"],\n\n // Replace 'no-shadow' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-shadow.md\n \"no-shadow\": \"off\",\n \"@typescript-eslint/no-shadow\": variablesRules[\"no-shadow\"],\n\n // Disable the \"no-throw-literal\" rule, as it can report incorrect errors on TypeScript code\n \"no-throw-literal\": \"off\",\n\n // Replace 'no-unused-expressions' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-expressions.md\n \"no-unused-expressions\": \"off\",\n \"@typescript-eslint/no-unused-expressions\": bestPracticesRules[\"no-unused-expressions\"],\n\n // Replace 'no-unused-vars' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md\n \"no-unused-vars\": \"off\",\n \"@typescript-eslint/no-unused-vars\": variablesRules[\"no-unused-vars\"],\n\n // Replace 'no-use-before-define' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-use-before-define.md\n \"no-use-before-define\": \"off\",\n \"@typescript-eslint/no-use-before-define\": variablesRules[\"no-use-before-define\"],\n\n // Replace 'no-useless-constructor' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-useless-constructor.md\n \"no-useless-constructor\": \"off\",\n \"@typescript-eslint/no-useless-constructor\": eS6Rules[\"no-useless-constructor\"],\n\n // Replace 'quotes' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/quotes.md\n quotes: \"off\",\n \"@typescript-eslint/quotes\": quotes,\n\n // Replace 'semi' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md\n semi: \"off\",\n \"@typescript-eslint/semi\": semi,\n\n // Replace 'space-before-function-paren' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-before-function-paren.md\n \"space-before-function-paren\": \"off\",\n \"@typescript-eslint/space-before-function-paren\": styleRules[\"space-before-function-paren\"],\n\n // Replace 'no-return-await' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/return-await.md\n \"no-return-await\": \"off\",\n \"@typescript-eslint/return-await\": bestPracticesRules[\"no-return-await\"],\n\n // Replace 'space-infix-ops' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-infix-ops.md\n \"space-infix-ops\": \"off\",\n \"@typescript-eslint/space-infix-ops\": styleRules[\"space-infix-ops\"],\n\n // Append 'ts' and 'tsx' to 'import/extensions' rule\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md\n \"import/extensions\": [\n importExtensions[0],\n importExtensions[1],\n {\n ...importExtensions[2],\n ts: \"never\",\n tsx: \"never\",\n },\n ],\n\n // Append 'ts' and 'tsx' extensions to 'import/no-extraneous-dependencies' rule\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md\n \"import/no-extraneous-dependencies\": [\n importNoExtraneousDependencies[0],\n {\n ...importNoExtraneousDependencies[1],\n // eslint-disable-next-line max-len\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call\n devDependencies: importNoExtraneousDependencies[1].devDependencies.map((glob: string) => glob.replaceAll(/\\bjs(x?)\\b/g, \"ts$1\")),\n },\n ],\n\n // The following rules are enabled in config, but are already checked (more thoroughly) by the TypeScript compiler\n // Some rules also fail in TypeScript files, for example: https://github.com/typescript-eslint/typescript-eslint/issues/662#issuecomment-507081586\n \"constructor-super\": \"off\",\n \"getter-return\": \"off\",\n \"no-const-assign\": \"off\",\n \"no-dupe-args\": \"off\",\n \"no-dupe-keys\": \"off\",\n \"no-func-assign\": \"off\",\n \"no-new-symbol\": \"off\",\n \"no-obj-calls\": \"off\",\n \"no-this-before-super\": \"off\",\n \"no-undef\": \"off\",\n \"no-unreachable\": \"off\",\n \"no-unsafe-negation\": \"off\",\n \"valid-typeof\": \"off\",\n \"import/named\": \"off\",\n \"import/no-unresolved\": \"off\",\n \"react/require-default-props\": \"off\",\n\n // Enforce consistent usage of type imports.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/consistent-type-imports.md\n \"@typescript-eslint/consistent-type-imports\": \"error\",\n\n // Require that function overload signatures be consecutive.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/adjacent-overload-signatures.md\n \"@typescript-eslint/adjacent-overload-signatures\": \"error\",\n\n // Enforce a standard member declaration order. (member-ordering from TSLint)\n \"@typescript-eslint/member-ordering\": [\n \"error\",\n {\n default: [\n \"public-static-field\",\n \"protected-static-field\",\n \"private-static-field\",\n \"public-static-method\",\n \"protected-static-method\",\n \"private-static-method\",\n \"public-instance-field\",\n \"protected-instance-field\",\n \"private-instance-field\",\n \"constructor\",\n \"public-instance-method\",\n \"protected-instance-method\",\n \"private-instance-method\",\n ],\n },\n ],\n\n // Requires using either T[] for arrays (array-type)\n \"@typescript-eslint/array-type\": [\n \"error\",\n {\n default: \"array\",\n readonly: \"generic\",\n },\n ],\n\n // Some built-in types have aliases, while some types are considered dangerous or harmful.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/ban-types.md\n // Enforces that types will not to be used\n \"@typescript-eslint/ban-types\": [\n \"error\",\n {\n types: {\n String: { message: \"Use string instead\", fixWith: \"string\" },\n Boolean: { message: \"Use boolean instead\", fixWith: \"boolean\" },\n Number: { message: \"Use number instead\", fixWith: \"number\" },\n Object: { message: \"Use object instead\", fixWith: \"object\" },\n Array: { message: \"Provide a more specific type\" },\n },\n },\n ],\n\n // Enforce constituents of a type union/intersection to be sorted alphabetically.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/sort-type-constituents.md\n \"@typescript-eslint/sort-type-constituents\": \"error\",\n\n // Enforce using @ts-expect-error over @ts-ignore.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/prefer-ts-expect-error.md\n \"@typescript-eslint/prefer-ts-expect-error\": \"error\",\n\n // Enforce specifying generic type arguments on constructor name of a constructor call.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/consistent-generic-constructors.md\n \"@typescript-eslint/consistent-generic-constructors\": \"error\",\n\n // Require explicit accessibility modifiers on class properties and methods.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/explicit-member-accessibility.md\n \"@typescript-eslint/explicit-member-accessibility\": \"error\",\n\n // Require explicit return and argument types on exported functions' and classes' public class methods.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md\n \"@typescript-eslint/explicit-module-boundary-types\": \"error\",\n\n // Enforce using a particular method signature syntax.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/method-signature-style.md\n \"@typescript-eslint/method-signature-style\": \"error\",\n\n // Disallow non-null assertion in locations that may be confusing.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md\n \"@typescript-eslint/no-confusing-non-null-assertion\": \"error\",\n\n // Disallow duplicate enum member values.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-duplicate-enum-values.md\n \"@typescript-eslint/no-duplicate-enum-values\": \"error\",\n\n // Disallow using to delete operator on computed key expressions.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-dynamic-delete.md\n \"@typescript-eslint/no-dynamic-delete\": \"warn\",\n\n // Disallow extra non-null assertions.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-extra-non-null-assertion.md\n \"@typescript-eslint/no-extra-non-null-assertion\": \"error\",\n\n // Disallow void type outside of generic or return types.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-invalid-void-type.md\n \"@typescript-eslint/no-invalid-void-type\": \"warn\",\n\n // Enforce valid definition of new and constructor.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-misused-new.md\n \"@typescript-eslint/no-misused-new\": \"error\",\n\n // Disallow TypeScript namespaces.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-namespace.md\n \"@typescript-eslint/no-namespace\": \"error\",\n\n // Disallow non-null assertions in the left operand of a nullish coalescing operator.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.md\n \"@typescript-eslint/no-non-null-asserted-nullish-coalescing\": \"warn\",\n\n // Disallow non-null assertions after an optional chain expression.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md\n \"@typescript-eslint/no-non-null-asserted-optional-chain\": \"error\",\n\n // Disallow non-null assertions using the ! postfix operator.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-non-null-assertion.md\n \"@typescript-eslint/no-non-null-assertion\": \"error\",\n\n // Disallow invocation of require().\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-require-imports.md\n \"@typescript-eslint/no-require-imports\": \"error\",\n\n // Disallow aliasing this.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-this-alias.md\n \"@typescript-eslint/no-this-alias\": \"error\",\n\n // Disallow type assertions that do not change the type of expression.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md\n \"@typescript-eslint/no-unnecessary-type-assertion\": \"error\",\n\n // Disallow unnecessary constraints on generic types.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unnecessary-type-constraint.md\n \"@typescript-eslint/no-unnecessary-type-constraint\": \"error\",\n\n // Disallow calling a function with a value with type any.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unsafe-argument.md\n \"@typescript-eslint/no-unsafe-argument\": \"error\",\n\n // Disallow assigning a value with type any to variables and properties.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unsafe-assignment.md\n \"@typescript-eslint/no-unsafe-assignment\": \"error\",\n\n // Disallow calling a value with type any.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unsafe-call.md\n \"@typescript-eslint/no-unsafe-call\": \"error\",\n\n // Disallow unsafe declaration merging.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unsafe-declaration-merging.md\n \"@typescript-eslint/no-unsafe-declaration-merging\": \"error\",\n\n // Disallow member access on a value with type any.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unsafe-member-access.md\n \"@typescript-eslint/no-unsafe-member-access\": \"error\",\n\n // Disallow returning a value with type any from a function.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unsafe-return.md\n \"@typescript-eslint/no-unsafe-return\": \"error\",\n\n // Disallow empty exports that don't change anything in a module file.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-useless-empty-export.md\n \"@typescript-eslint/no-useless-empty-export\": \"error\",\n\n // Enforce non-null assertions over explicit type casts. This rule is disabled by @typescript-eslint/no-non-null-assertion.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/non-nullable-type-assertion-style.md\n \"@typescript-eslint/non-nullable-type-assertion-style\": \"off\",\n\n // Require each enum member value to be explicitly initialized.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/prefer-enum-initializers.md\n \"@typescript-eslint/prefer-enum-initializers\": \"error\",\n\n // Enforce using function types instead of interfaces with call signatures.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/prefer-function-type.md\n \"@typescript-eslint/prefer-function-type\": \"error\",\n\n // Enforce using the nullish coalescing operator instead of logical chaining.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/prefer-nullish-coalescing.md\n \"@typescript-eslint/prefer-nullish-coalescing\": \"error\",\n\n // Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/prefer-optional-chain.md\n \"@typescript-eslint/prefer-optional-chain\": \"error\",\n\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-import-type-side-effects.md\n \"@typescript-eslint/no-import-type-side-effects\": \"error\",\n\n // Disable rules that are handled by prettier\n ...global.anolilabEslintConfigTypescriptPrettierRules,\n },\n },\n {\n files: [\"*.d.ts\"],\n rules: {\n \"import/no-duplicates\": \"off\",\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/typescript.ts"],"names":["hasDependency","hasDevDependency","env","bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","eS6Rules","es6_default","importsRules","import_default","variablesRules","variables_default","indent","quotes","semi","importExtensions","importNoExtraneousDependencies","commaDangle","showUnsupportedTypeScriptVersionWarning","eslint_config_default","config","glob","typescript_default"],"mappings":"+WAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAEhD,OAAS,OAAAC,MAAW,UAWpB,IAAMC,EAAqBC,EAAoB,MACzCC,EAAcC,EAAa,MAC3BC,EAAaC,EAAY,MAEzBC,EAAWC,EAAU,MACrBC,EAAiBC,EAAc,UAA0D,CAAC,EAC3F,MACCC,EAAiBC,EAAgB,MAEjC,CAAE,OAAAC,EAAQ,OAAAC,EAAQ,KAAAC,CAAK,EAAIV,EAE7B,OAAO,8CAAgD,SAAcP,EAAc,UAAU,GAAKC,EAAiB,UAAU,KAC7H,OAAO,4CAA8C,CACjD,mCAAoC,MACpC,iCAAkC,MAClC,kCAAmC,MACnC,mCAAoC,MACpC,uCAAwC,MACxC,4BAA6B,MAC7B,iCAAkC,MAClC,qCAAsC,MACtC,0CAA2C,EAC3C,4CAA6C,MAC7C,qCAAsC,MACtC,mCAAoC,MACpC,0CAA2C,MAC3C,4BAA6B,EAC7B,0BAA2B,MAC3B,yCAA0C,MAC1C,iDAAkD,MAClD,qCAAsC,MACtC,6CAA8C,KAClD,GAGJ,IAAMiB,EAAmBP,EAAa,mBAAmB,EACnDQ,EAAiCR,EAAa,mCAAmC,EACjFS,EAAcb,EAAW,cAAc,EAEzCc,EAAmDnB,EAAI,qDAA0D,OAEjHoB,GAAuB,yCAA8C,SACrED,EAA0CC,EAAqB,wCAGnE,IAAMC,EAAwB,CAC1B,UAAW,CACP,CACI,QAAS,CACL,0BAKJ,EACA,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,OAAQ,4BACR,cAAe,CACX,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GnC,gBAAiBA,EAA+B,CAAC,EAAE,gBAAgB,IAAKK,GAAiBA,EAAK,WAAW,cAAe,MAAM,CAAC,CACnI,CACJ,EAGA,uBAAwB,MAIxB,OAAQ,MAGR,kBAAmB,MAGnB,8BAA+B,MAK/B,uBAAwB,MAGxB,kBAAmB,MAGnB,eAAgB,MAIhB,wBAAyB,MAGzB,eAAgB,MAIhB,oBAAqB,MAIrB,kBAAmB,MAInB,gBAAiB,MAGjB,iBAAkB,MAIlB,kBAAmB,MAInB,eAAgB,MAIhB,mBAAoB,MAGpB,cAAe,MAGf,gBAAiB,MAGjB,eAAgB,MAIhB,eAAgB,MAIhB,kBAAmB,MAInB,YAAa,MAGb,uBAAwB,MAIxB,mBAAoB,MAGpB,WAAY,MAGZ,iBAAkB,MAGlB,qBAAsB,MAItB,wBAAyB,MAIzB,iBAAkB,MAIlB,uBAAwB,MAIxB,yBAA0B,MAI1B,OAAQ,MAGR,8BAA+B,MAI/B,KAAM,MAIN,8BAA+B,MAI/B,kBAAmB,MAInB,OAAQ,MAER,eAAgB,MAGhB,GAAG,OAAO,2CACd,EACA,SAAU,CAEN,oBAAqB,CAAC,MAAO,OAAQ,OAAQ,MAAO,OAAQ,OAAO,EAGnE,iCAAkC,CAAC,eAAgB,qBAAqB,EAGxE,iBAAkB,CACd,4BAA6B,CAAC,MAAO,OAAQ,OAAO,CACxD,EAGA,kBAAmB,CACf,KAAM,CACF,WAAY,CAAC,OAAQ,OAAQ,MAAO,QAAS,MAAO,OAAO,CAC/D,CACJ,CACJ,CACJ,EACA,CACI,MAAO,CAAC,QAAQ,EAChB,MAAO,CACH,uBAAwB,KAC5B,CACJ,CACJ,CACJ,EAEOC,EAAQF","sourcesContent":["import { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\nimport { env } from \"node:process\";\n\nimport anolilabEslintConfig from \"../../utils/eslint-config\";\nimport bestPracticesConfig from \"../best-practices\";\nimport errorsConfig from \"../errors\";\n// eslint-disable-next-line unicorn/prevent-abbreviations\nimport eS6Config from \"../es6\";\nimport styleConfig from \"../style\";\nimport variablesConfig from \"../variables\";\nimport importsConfig from \"./import\";\n\nconst bestPracticesRules = bestPracticesConfig.rules as Linter.RulesRecord;\nconst errorsRules = errorsConfig.rules as Linter.RulesRecord;\nconst styleRules = styleConfig.rules as Linter.RulesRecord;\n// eslint-disable-next-line unicorn/prevent-abbreviations\nconst eS6Rules = eS6Config.rules as Linter.RulesRecord;\nconst importsRules = ((importsConfig.overrides as Linter.ConfigOverride<Linter.RulesRecord>[])[0] as Linter.ConfigOverride<Linter.RulesRecord>)\n .rules as Linter.RulesRecord;\nconst variablesRules = variablesConfig.rules as Linter.RulesRecord;\n\nconst { indent, quotes, semi } = styleRules;\n\nif (global.anolilabEslintConfigTypescriptPrettierRules === undefined && (hasDependency(\"prettier\") || hasDevDependency(\"prettier\"))) {\n global.anolilabEslintConfigTypescriptPrettierRules = {\n \"@typescript-eslint/block-spacing\": \"off\",\n \"@typescript-eslint/brace-style\": \"off\",\n \"@typescript-eslint/comma-dangle\": \"off\",\n \"@typescript-eslint/comma-spacing\": \"off\",\n \"@typescript-eslint/func-call-spacing\": \"off\",\n \"@typescript-eslint/indent\": \"off\",\n \"@typescript-eslint/key-spacing\": \"off\",\n \"@typescript-eslint/keyword-spacing\": \"off\",\n \"@typescript-eslint/lines-around-comment\": 0,\n \"@typescript-eslint/member-delimiter-style\": \"off\",\n \"@typescript-eslint/no-extra-parens\": \"off\",\n \"@typescript-eslint/no-extra-semi\": \"off\",\n \"@typescript-eslint/object-curly-spacing\": \"off\",\n \"@typescript-eslint/quotes\": 0,\n \"@typescript-eslint/semi\": \"off\",\n \"@typescript-eslint/space-before-blocks\": \"off\",\n \"@typescript-eslint/space-before-function-paren\": \"off\",\n \"@typescript-eslint/space-infix-ops\": \"off\",\n \"@typescript-eslint/type-annotation-spacing\": \"off\",\n };\n}\n\nconst importExtensions = importsRules[\"import/extensions\"] as any[];\nconst importNoExtraneousDependencies = importsRules[\"import/no-extraneous-dependencies\"] as any[];\nconst commaDangle = styleRules[\"comma-dangle\"] as any[];\n\nlet showUnsupportedTypeScriptVersionWarning: boolean = env[\"DISABLE_ESLINT_WARN_UNSUPPORTED_TYPESCRIPT_VERSION\"] !== \"true\";\n\nif (anolilabEslintConfig?.[\"warn_on_unsupported_typescript_version\"] !== undefined) {\n showUnsupportedTypeScriptVersionWarning = anolilabEslintConfig[\"warn_on_unsupported_typescript_version\"];\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n extends: [\n \"plugin:import/typescript\",\n // TODO: enable the rule when typescript-eslint 6.0.0 is released\n // \"plugin:@typescript-eslint/recommended\",\n // \"plugin:@typescript-eslint/stylistic\",\n // \"plugin:@typescript-eslint/strict\",\n ],\n files: [\"*.ts\", \"*.mts\", \"*.cts\", \"*.tsx\"],\n parser: \"@typescript-eslint/parser\",\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n sourceType: \"module\",\n warnOnUnsupportedTypeScriptVersion: showUnsupportedTypeScriptVersionWarning,\n },\n plugins: [\"@typescript-eslint\"],\n rules: {\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/adjacent-overload-signatures.md\n \"@typescript-eslint/adjacent-overload-signatures\": \"error\",\n\n // Replace 'brace-style' rule with '@typescript-eslint' version\n // Requires using either T[] for arrays (array-type)\n \"@typescript-eslint/array-type\": [\n \"error\",\n {\n default: \"array\",\n readonly: \"generic\",\n },\n ],\n // Enforces that types will not to be used\n \"@typescript-eslint/ban-types\": [\n \"error\",\n {\n types: {\n Array: { message: \"Provide a more specific type\" },\n Boolean: { fixWith: \"boolean\", message: \"Use boolean instead\" },\n Number: { fixWith: \"number\", message: \"Use number instead\" },\n Object: { fixWith: \"object\", message: \"Use object instead\" },\n String: { fixWith: \"string\", message: \"Use string instead\" },\n },\n },\n ],\n\n // Replace 'camelcase' rule with '@typescript-eslint/naming-convention'\n \"@typescript-eslint/brace-style\": styleRules[\"brace-style\"],\n\n \"@typescript-eslint/comma-dangle\": [\n commaDangle[0],\n {\n ...commaDangle[1],\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n enums: commaDangle[1].arrays,\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n generics: commaDangle[1].arrays,\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n tuples: commaDangle[1].arrays,\n },\n ],\n\n // Replace 'comma-dangle' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/comma-dangle.md\n \"@typescript-eslint/comma-spacing\": styleRules[\"comma-spacing\"],\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/consistent-generic-constructors.md\n \"@typescript-eslint/consistent-generic-constructors\": \"error\",\n\n // Replace 'comma-spacing' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/consistent-type-imports.md\n \"@typescript-eslint/consistent-type-imports\": \"error\",\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/explicit-member-accessibility.md\n \"@typescript-eslint/explicit-member-accessibility\": \"error\",\n\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md\n \"@typescript-eslint/explicit-module-boundary-types\": \"error\",\n\n // Replace 'func-call-spacing' rule with '@typescript-eslint' version\n \"@typescript-eslint/func-call-spacing\": styleRules[\"func-call-spacing\"],\n \"@typescript-eslint/indent\": indent,\n\n // Replace 'indent' rule with '@typescript-eslint' version\n \"@typescript-eslint/keyword-spacing\": styleRules[\"keyword-spacing\"],\n \"@typescript-eslint/lines-between-class-members\": styleRules[\"lines-between-class-members\"],\n\n // Replace 'keyword-spacing' rule with '@typescript-eslint' version\n // Enforce a standard member declaration order. (member-ordering from TSLint)\n \"@typescript-eslint/member-ordering\": [\n \"error\",\n {\n default: [\n \"public-static-field\",\n \"protected-static-field\",\n \"private-static-field\",\n \"public-static-method\",\n \"protected-static-method\",\n \"private-static-method\",\n \"public-instance-field\",\n \"protected-instance-field\",\n \"private-instance-field\",\n \"constructor\",\n \"public-instance-method\",\n \"protected-instance-method\",\n \"private-instance-method\",\n ],\n },\n ],\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/method-signature-style.md\n \"@typescript-eslint/method-signature-style\": \"error\",\n\n // Replace 'lines-between-class-members' rule with '@typescript-eslint' version\n // The `@typescript-eslint/naming-convention` rule allows `leadingUnderscore` and `trailingUnderscore` settings. However, the existing `no-underscore-dangle` rule already takes care of this.\n \"@typescript-eslint/naming-convention\": [\n \"error\",\n // Allow camelCase variables (23.2), PascalCase variables (23.8), and UPPER_CASE variables (23.10)\n {\n format: [\"camelCase\", \"PascalCase\", \"UPPER_CASE\"],\n selector: \"variable\",\n },\n // Allow camelCase functions (23.2), and PascalCase functions (23.8)\n {\n format: [\"camelCase\", \"PascalCase\"],\n selector: \"function\",\n },\n\n // recommends PascalCase for classes (23.3), and although it does not make TypeScript recommendations, we are assuming this rule would similarly apply to anything \"type like\", including interfaces, type aliases, and enums\n {\n format: [\"PascalCase\"],\n selector: \"typeLike\",\n },\n ],\n \"@typescript-eslint/no-array-constructor\": styleRules[\"no-array-constructor\"],\n\n // Replace 'no-array-constructor' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md\n \"@typescript-eslint/no-confusing-non-null-assertion\": \"error\",\n \"@typescript-eslint/no-dupe-class-members\": eS6Rules[\"no-dupe-class-members\"],\n\n // Replace 'no-dupe-class-members' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-duplicate-enum-values.md\n \"@typescript-eslint/no-duplicate-enum-values\": \"error\",\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-dynamic-delete.md\n \"@typescript-eslint/no-dynamic-delete\": \"warn\",\n\n // Replace 'no-empty-function' rule with '@typescript-eslint' version\n \"@typescript-eslint/no-empty-function\": bestPracticesRules[\"no-empty-function\"],\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-extra-non-null-assertion.md\n \"@typescript-eslint/no-extra-non-null-assertion\": \"error\",\n\n // Replace 'no-extra-parens' rule with '@typescript-eslint' version\n \"@typescript-eslint/no-extra-parens\": errorsRules[\"no-extra-parens\"],\n \"@typescript-eslint/no-extra-semi\": errorsRules[\"no-extra-semi\"],\n\n // Replace 'no-extra-semi' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-import-type-side-effects.md\n \"@typescript-eslint/no-import-type-side-effects\": \"error\",\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-invalid-void-type.md\n \"@typescript-eslint/no-invalid-void-type\": \"warn\",\n\n \"@typescript-eslint/no-loop-func\": bestPracticesRules[\"no-loop-func\"],\n \"@typescript-eslint/no-magic-numbers\": bestPracticesRules[\"no-magic-numbers\"],\n\n // Replace 'no-loop-func' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-misused-new.md\n \"@typescript-eslint/no-misused-new\": \"error\",\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-namespace.md\n \"@typescript-eslint/no-namespace\": \"error\",\n\n // Replace 'no-magic-numbers' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.md\n \"@typescript-eslint/no-non-null-asserted-nullish-coalescing\": \"warn\",\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md\n \"@typescript-eslint/no-non-null-asserted-optional-chain\": \"error\",\n\n // Replace 'no-redeclare' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-non-null-assertion.md\n \"@typescript-eslint/no-non-null-assertion\": \"error\",\n \"@typescript-eslint/no-redeclare\": bestPracticesRules[\"no-redeclare\"],\n\n // Replace 'no-shadow' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-require-imports.md\n \"@typescript-eslint/no-require-imports\": \"error\",\n \"@typescript-eslint/no-shadow\": variablesRules[\"no-shadow\"],\n\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-this-alias.md\n \"@typescript-eslint/no-this-alias\": \"error\",\n\n // Replace 'no-unused-expressions' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md\n \"@typescript-eslint/no-unnecessary-type-assertion\": \"error\",\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unnecessary-type-constraint.md\n \"@typescript-eslint/no-unnecessary-type-constraint\": \"error\",\n\n // Replace 'no-unused-vars' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unsafe-argument.md\n \"@typescript-eslint/no-unsafe-argument\": \"error\",\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unsafe-assignment.md\n \"@typescript-eslint/no-unsafe-assignment\": \"error\",\n\n // Replace 'no-use-before-define' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unsafe-call.md\n \"@typescript-eslint/no-unsafe-call\": \"error\",\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unsafe-declaration-merging.md\n \"@typescript-eslint/no-unsafe-declaration-merging\": \"error\",\n\n // Replace 'no-useless-constructor' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unsafe-member-access.md\n \"@typescript-eslint/no-unsafe-member-access\": \"error\",\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-unsafe-return.md\n \"@typescript-eslint/no-unsafe-return\": \"error\",\n\n // Replace 'quotes' rule with '@typescript-eslint' version\n \"@typescript-eslint/no-unused-expressions\": bestPracticesRules[\"no-unused-expressions\"],\n \"@typescript-eslint/no-unused-vars\": variablesRules[\"no-unused-vars\"],\n\n // Replace 'semi' rule with '@typescript-eslint' version\n \"@typescript-eslint/no-use-before-define\": variablesRules[\"no-use-before-define\"],\n \"@typescript-eslint/no-useless-constructor\": eS6Rules[\"no-useless-constructor\"],\n\n // Replace 'space-before-function-paren' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/no-useless-empty-export.md\n \"@typescript-eslint/no-useless-empty-export\": \"error\",\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/non-nullable-type-assertion-style.md\n \"@typescript-eslint/non-nullable-type-assertion-style\": \"off\",\n\n // Replace 'no-return-await' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/prefer-enum-initializers.md\n \"@typescript-eslint/prefer-enum-initializers\": \"error\",\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/prefer-function-type.md\n \"@typescript-eslint/prefer-function-type\": \"error\",\n\n // Replace 'space-infix-ops' rule with '@typescript-eslint' version\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/prefer-nullish-coalescing.md\n \"@typescript-eslint/prefer-nullish-coalescing\": \"error\",\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/prefer-optional-chain.md\n \"@typescript-eslint/prefer-optional-chain\": \"error\",\n\n // Append 'ts' and 'tsx' to 'import/extensions' rule\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/prefer-ts-expect-error.md\n \"@typescript-eslint/prefer-ts-expect-error\": \"error\",\n\n // Append 'ts' and 'tsx' extensions to 'import/no-extraneous-dependencies' rule\n \"@typescript-eslint/quotes\": quotes,\n\n // The following rules are enabled in config, but are already checked (more thoroughly) by the TypeScript compiler\n \"@typescript-eslint/return-await\": bestPracticesRules[\"no-return-await\"],\n \"@typescript-eslint/semi\": semi,\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/sort-type-constituents.md\n \"@typescript-eslint/sort-type-constituents\": \"error\",\n \"@typescript-eslint/space-before-function-paren\": styleRules[\"space-before-function-paren\"],\n \"@typescript-eslint/space-infix-ops\": styleRules[\"space-infix-ops\"],\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/brace-style.md\n \"brace-style\": \"off\",\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/naming-convention.md\n camelcase: \"off\",\n // The TypeScript version also adds 3 new options, all of which should be set to the same value as the base config\n \"comma-dangle\": \"off\",\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/comma-spacing.md\n \"comma-spacing\": \"off\",\n // Some rules also fail in TypeScript files, for example: https://github.com/typescript-eslint/typescript-eslint/issues/662#issuecomment-507081586\n \"constructor-super\": \"off\",\n // Disable the \"dot-notation\" rule, as it can report incorrect errors on TypeScript code\n \"dot-notation\": \"off\",\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/func-call-spacing.md\n \"func-call-spacing\": \"off\",\n \"getter-return\": \"off\",\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md\n \"import/extensions\": [\n importExtensions[0],\n importExtensions[1],\n {\n ...importExtensions[2],\n ts: \"never\",\n tsx: \"never\",\n },\n ],\n \"import/named\": \"off\",\n // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md\n \"import/no-extraneous-dependencies\": [\n importNoExtraneousDependencies[0],\n {\n ...importNoExtraneousDependencies[1],\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call\n devDependencies: importNoExtraneousDependencies[1].devDependencies.map((glob: string) => glob.replaceAll(/\\bjs(x?)\\b/g, \"ts$1\")),\n },\n ],\n\n // Enforce consistent usage of type imports.\n \"import/no-unresolved\": \"off\",\n\n // Require that function overload signatures be consecutive.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/indent.md\n indent: \"off\",\n\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/keyword-spacing.md\n \"keyword-spacing\": \"off\",\n\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/lines-between-class-members.md\n \"lines-between-class-members\": \"off\",\n\n // Some built-in types have aliases, while some types are considered dangerous or harmful.\n // https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/ban-types.md\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-array-constructor.md\n \"no-array-constructor\": \"off\",\n\n // Enforce constituents of a type union/intersection to be sorted alphabetically.\n \"no-const-assign\": \"off\",\n\n // Enforce using @ts-expect-error over @ts-ignore.\n \"no-dupe-args\": \"off\",\n\n // Enforce specifying generic type arguments on constructor name of a constructor call.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-dupe-class-members.md\n \"no-dupe-class-members\": \"off\",\n\n // Require explicit accessibility modifiers on class properties and methods.\n \"no-dupe-keys\": \"off\",\n\n // Require explicit return and argument types on exported functions' and classes' public class methods.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-empty-function.md\n \"no-empty-function\": \"off\",\n\n // Enforce using a particular method signature syntax.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-parens.md\n \"no-extra-parens\": \"off\",\n\n // Disallow non-null assertion in locations that may be confusing.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-semi.md\n \"no-extra-semi\": \"off\",\n\n // Disallow duplicate enum member values.\n \"no-func-assign\": \"off\",\n\n // Disallow using to delete operator on computed key expressions.\n // Disable the \"no-implied-eval\" and \"no-new-func\" rule, as it can report incorrect errors on TypeScript code\n \"no-implied-eval\": \"off\",\n\n // Disallow extra non-null assertions.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-loop-func.md\n \"no-loop-func\": \"off\",\n\n // Disallow void type outside of generic or return types.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-magic-numbers.md\n \"no-magic-numbers\": \"off\",\n\n // Enforce valid definition of new and constructor.\n \"no-new-func\": \"off\",\n\n // Disallow TypeScript namespaces.\n \"no-new-symbol\": \"off\",\n\n // Disallow non-null assertions in the left operand of a nullish coalescing operator.\n \"no-obj-calls\": \"off\",\n\n // Disallow non-null assertions after an optional chain expression.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-redeclare.md\n \"no-redeclare\": \"off\",\n\n // Disallow non-null assertions using the ! postfix operator.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/return-await.md\n \"no-return-await\": \"off\",\n\n // Disallow invocation of require().\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-shadow.md\n \"no-shadow\": \"off\",\n\n // Disallow aliasing this.\n \"no-this-before-super\": \"off\",\n\n // Disallow type assertions that do not change the type of expression.\n // Disable the \"no-throw-literal\" rule, as it can report incorrect errors on TypeScript code\n \"no-throw-literal\": \"off\",\n\n // Disallow unnecessary constraints on generic types.\n \"no-undef\": \"off\",\n\n // Disallow calling a function with a value with type any.\n \"no-unreachable\": \"off\",\n\n // Disallow assigning a value with type any to variables and properties.\n \"no-unsafe-negation\": \"off\",\n\n // Disallow calling a value with type any.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-expressions.md\n \"no-unused-expressions\": \"off\",\n\n // Disallow unsafe declaration merging.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md\n \"no-unused-vars\": \"off\",\n\n // Disallow member access on a value with type any.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-use-before-define.md\n \"no-use-before-define\": \"off\",\n\n // Disallow returning a value with type any from a function.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-useless-constructor.md\n \"no-useless-constructor\": \"off\",\n\n // Disallow empty exports that don't change anything in a module file.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/quotes.md\n quotes: \"off\",\n\n // Enforce non-null assertions over explicit type casts. This rule is disabled by @typescript-eslint/no-non-null-assertion.\n \"react/require-default-props\": \"off\",\n\n // Require each enum member value to be explicitly initialized.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md\n semi: \"off\",\n\n // Enforce using function types instead of interfaces with call signatures.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-before-function-paren.md\n \"space-before-function-paren\": \"off\",\n\n // Enforce using the nullish coalescing operator instead of logical chaining.\n // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-infix-ops.md\n \"space-infix-ops\": \"off\",\n\n // Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects.\n // Breaks @typescript-eslint/parser\n strict: \"off\",\n\n \"valid-typeof\": \"off\",\n\n // Disable rules that are handled by prettier\n ...global.anolilabEslintConfigTypescriptPrettierRules,\n },\n settings: {\n // Append 'ts' extensions to 'import/extensions' setting\n \"import/extensions\": [\".js\", \".mjs\", \".jsx\", \".ts\", \".tsx\", \".d.ts\"],\n\n // Resolve type definition packages\n \"import/external-module-folders\": [\"node_modules\", \"node_modules/@types\"],\n\n // Apply special parsing for TypeScript files\n \"import/parsers\": {\n \"@typescript-eslint/parser\": [\".ts\", \".tsx\", \".d.ts\"],\n },\n\n // Append 'ts' extensions to 'import/resolver' setting\n \"import/resolver\": {\n node: {\n extensions: [\".mjs\", \".cjs\", \".js\", \".json\", \".ts\", \".d.ts\"],\n },\n },\n },\n },\n {\n files: [\"*.d.ts\"],\n rules: {\n \"import/no-duplicates\": \"off\",\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPW4WCSOE_js = require('../../chunk-PW4WCSOE.js');
|
|
4
4
|
require('../../chunk-PTQ3FFI5.js');
|
|
5
|
+
require('../../chunk-3NVDJZNH.js');
|
|
5
6
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
6
7
|
var i = require('semver');
|
|
7
8
|
|
|
@@ -9,8 +10,8 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
9
10
|
|
|
10
11
|
var i__default = /*#__PURE__*/_interopDefault(i);
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
global.anolilabEslintConfigUnicornPrettierRules===void 0&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.anolilabEslintConfigUnicornPrettierRules={"unicorn/empty-brace-spaces":"off","unicorn/no-nested-ternary":"off","unicorn/number-literal-case":"off","unicorn/template-indent":"off"});var t={extends:["plugin:unicorn/recommended"],overrides:[{files:["tsconfig.dev.json","tsconfig.prod.json"],rules:{"unicorn/prevent-abbreviations":"off"}},{files:["*.ts","*.tsx","*.mts","*.cts"],rules:{"unicorn/import-style":"off"}}],plugins:["unicorn"],rules:{"function-call-argument-newline":"off","unicorn/better-regex":["error",{sortCharacterClasses:!1}],"unicorn/consistent-destructuring":"off","unicorn/consistent-function-scoping":"off","unicorn/filename-case":["error",{case:"kebabCase",ignore:[/(FUNDING\.yml|README\.md|CHANGELOG\.md|CONTRIBUTING\.md|CODE_OF_CONDUCT\.md|SECURITY\.md|LICENSE)/]}],"unicorn/no-array-for-each":"off","unicorn/no-null":"off","unicorn/no-useless-undefined":"off","unicorn/prefer-json-parse-buffer":"off","unicorn/prefer-module":packageJsonUtils.packageIsTypeModule?"error":"off","unicorn/prefer-node-protocol":i__default.default.gte(process.version,"v16.0.0")?"error":"off","unicorn/prefer-ternary":["error","only-single-line"],"unicorn/template-indent":["error",{indent:chunkPW4WCSOE_js.a}],...global.anolilabEslintConfigUnicornPrettierRules}},l=t;
|
|
13
14
|
|
|
14
|
-
module.exports =
|
|
15
|
+
module.exports = l;
|
|
15
16
|
//# sourceMappingURL=out.js.map
|
|
16
17
|
//# sourceMappingURL=unicorn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/unicorn.ts"],"names":["hasDependency","hasDevDependency","packageIsTypeModule","semver","
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/unicorn.ts"],"names":["hasDependency","hasDevDependency","packageIsTypeModule","semver","config","indent_default","unicorn_default"],"mappings":"4GAAA,OAAS,iBAAAA,EAAe,oBAAAC,EAAkB,uBAAAC,MAA2B,+BAErE,OAAOC,MAAY,SAIf,OAAO,2CAA6C,SAAcH,EAAc,UAAU,GAAKC,EAAiB,UAAU,KAC1H,OAAO,yCAA2C,CAC9C,6BAA8B,MAC9B,4BAA6B,MAC7B,8BAA+B,MAC/B,0BAA2B,KAC/B,GAIJ,IAAMG,EAAwB,CAC1B,QAAS,CAAC,4BAA4B,EACtC,UAAW,CACP,CACI,MAAO,CAAC,oBAAqB,oBAAoB,EACjD,MAAO,CACH,gCAAiC,KACrC,CACJ,EACA,CACI,MAAO,CAAC,OAAQ,QAAS,QAAS,OAAO,EACzC,MAAO,CACH,uBAAwB,KAC5B,CACJ,CACJ,EACA,QAAS,CAAC,SAAS,EACnB,MAAO,CAEH,iCAAkC,MAElC,uBAAwB,CACpB,QACA,CACI,qBAAsB,EAC1B,CACJ,EAEA,mCAAoC,MAEpC,sCAAuC,MAEvC,wBAAyB,CACrB,QACA,CACI,KAAM,YACN,OAAQ,CAAC,mGAAmG,CAChH,CACJ,EAEA,4BAA6B,MAG7B,kBAAmB,MAGnB,+BAAgC,MAGhC,mCAAoC,MAEpC,wBAAyBF,EAAsB,QAAU,MAEzD,+BAAgCC,EAAO,IAAI,QAAQ,QAAS,SAAS,EAAI,QAAU,MAGnF,yBAA0B,CAAC,QAAS,kBAAkB,EAEtD,0BAA2B,CAAC,QAAS,CAAE,OAAAE,CAAO,CAAC,EAE/C,GAAG,OAAO,wCACd,CACJ,EAEOC,EAAQF","sourcesContent":["import { hasDependency, hasDevDependency, packageIsTypeModule } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\nimport semver from \"semver\";\n\nimport indent from \"../../utils/indent\";\n\nif (global.anolilabEslintConfigUnicornPrettierRules === undefined && (hasDependency(\"prettier\") || hasDevDependency(\"prettier\"))) {\n global.anolilabEslintConfigUnicornPrettierRules = {\n \"unicorn/empty-brace-spaces\": \"off\",\n \"unicorn/no-nested-ternary\": \"off\",\n \"unicorn/number-literal-case\": \"off\",\n \"unicorn/template-indent\": \"off\",\n };\n}\n\n// @see https://github.com/sindresorhus/eslint-plugin-unicorn\nconst config: Linter.Config = {\n extends: [\"plugin:unicorn/recommended\"],\n overrides: [\n {\n files: [\"tsconfig.dev.json\", \"tsconfig.prod.json\"],\n rules: {\n \"unicorn/prevent-abbreviations\": \"off\",\n },\n },\n {\n files: [\"*.ts\", \"*.tsx\", \"*.mts\", \"*.cts\"],\n rules: {\n \"unicorn/import-style\": \"off\",\n },\n },\n ],\n plugins: [\"unicorn\"],\n rules: {\n // TODO: Temporarily disabled as the rule is buggy.\n \"function-call-argument-newline\": \"off\",\n // The character class sorting is a bit buggy at the moment.\n \"unicorn/better-regex\": [\n \"error\",\n {\n sortCharacterClasses: false,\n },\n ],\n // TODO: Disabled for now until it becomes more stable: https://github.com/sindresorhus/eslint-plugin-unicorn/search?q=consistent-destructuring+is:issue&state=open&type=issues\n \"unicorn/consistent-destructuring\": \"off\",\n // TODO: Remove this override when the rule is more stable.\n \"unicorn/consistent-function-scoping\": \"off\",\n\n \"unicorn/filename-case\": [\n \"error\",\n {\n case: \"kebabCase\",\n ignore: [/(FUNDING\\.yml|README\\.md|CHANGELOG\\.md|CONTRIBUTING\\.md|CODE_OF_CONDUCT\\.md|SECURITY\\.md|LICENSE)/],\n },\n ],\n\n \"unicorn/no-array-for-each\": \"off\",\n\n // TODO: Disabled for now as I don't have time to deal with the backslash that might come from this. Try to enable this rule in 2021.\n \"unicorn/no-null\": \"off\",\n\n // TODO: Temporarily disabled until it becomes more mature.\n \"unicorn/no-useless-undefined\": \"off\",\n\n // It will be disabled in the next version of eslint-plugin-unicorn.\n \"unicorn/prefer-json-parse-buffer\": \"off\",\n\n \"unicorn/prefer-module\": packageIsTypeModule ? \"error\" : \"off\",\n\n \"unicorn/prefer-node-protocol\": semver.gte(process.version, \"v16.0.0\") ? \"error\" : \"off\",\n\n // We only enforce it for single-line statements to not be too opinionated.\n \"unicorn/prefer-ternary\": [\"error\", \"only-single-line\"],\n\n \"unicorn/template-indent\": [\"error\", { indent }],\n\n ...global.anolilabEslintConfigUnicornPrettierRules,\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require('../../chunk-3NVDJZNH.js');
|
|
4
|
+
|
|
5
|
+
var e={overrides:[{extends:["plugin:vitest/recommended","plugin:vitest/all"],files:["**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"],plugins:["vitest"],rules:{"vitest/max-expects":"off"}}]},t=e;
|
|
4
6
|
|
|
5
7
|
module.exports = t;
|
|
6
8
|
//# sourceMappingURL=out.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/vitest.ts"],"names":["config","vitest_default"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/vitest.ts"],"names":["config","vitest_default"],"mappings":"gCAEA,IAAMA,EAAwB,CAC1B,UAAW,CACP,CACI,QAAS,CAAC,4BAA6B,mBAAmB,EAC1D,MAAO,CAAC,oCAAqC,qCAAqC,EAClF,QAAS,CAAC,QAAQ,EAClB,MAAO,CACH,qBAAsB,KAC1B,CACJ,CACJ,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n overrides: [\n {\n extends: [\"plugin:vitest/recommended\", \"plugin:vitest/all\"],\n files: [\"**/__tests__/**/*.?(c|m)[jt]s?(x)\", \"**/?(*.){test,spec}.?(c|m)[jt]s?(x)\"],\n plugins: [\"vitest\"],\n rules: {\n \"vitest/max-expects\": \"off\",\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPW4WCSOE_js = require('../../chunk-PW4WCSOE.js');
|
|
4
4
|
require('../../chunk-PTQ3FFI5.js');
|
|
5
|
+
require('../../chunk-3NVDJZNH.js');
|
|
5
6
|
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
!global.hasAnolilabEsLintConfigPrettier&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.hasAnolilabEsLintConfigPrettier=!0);var t={overrides:[{extends:["plugin:yml/recommended",...global.hasAnolilabEsLintConfigPrettier?["plugin:yml/prettier"]:[]],files:["*.yaml","*.yml"],parser:"yaml-eslint-parser",rules:{indent:[global.hasAnolilabEsLintConfigPrettier?"off":"error",chunkPW4WCSOE_js.a],"spaced-comment":"off"}}]},o=t;
|
|
8
9
|
|
|
9
|
-
module.exports =
|
|
10
|
+
module.exports = o;
|
|
10
11
|
//# sourceMappingURL=out.js.map
|
|
11
12
|
//# sourceMappingURL=yml.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/yml.ts"],"names":["hasDependency","hasDevDependency","
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/yml.ts"],"names":["hasDependency","hasDevDependency","config","indent_default","yml_default"],"mappings":"4GAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAK5C,CAAC,OAAO,kCAAoCD,EAAc,UAAU,GAAKC,EAAiB,UAAU,KACpG,OAAO,gCAAkC,IAG7C,IAAMC,EAAwB,CAC1B,UAAW,CACP,CACI,QAAS,CAAC,yBAA0B,GAAI,OAAO,gCAAkC,CAAC,qBAAqB,EAAI,CAAC,CAAE,EAC9G,MAAO,CAAC,SAAU,OAAO,EACzB,OAAQ,qBACR,MAAO,CACH,OAAQ,CAAC,OAAO,gCAAkC,MAAQ,QAASC,CAAM,EACzE,iBAAkB,KACtB,CACJ,CACJ,CACJ,EAEOC,EAAQF","sourcesContent":["import { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport indent from \"../../utils/indent\";\n\nif (!global.hasAnolilabEsLintConfigPrettier && (hasDependency(\"prettier\") || hasDevDependency(\"prettier\"))) {\n global.hasAnolilabEsLintConfigPrettier = true;\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n extends: [\"plugin:yml/recommended\", ...(global.hasAnolilabEsLintConfigPrettier ? [\"plugin:yml/prettier\"] : [])],\n files: [\"*.yaml\", \"*.yml\"],\n parser: \"yaml-eslint-parser\",\n rules: {\n indent: [global.hasAnolilabEsLintConfigPrettier ? \"off\" : \"error\", indent],\n \"spaced-comment\": \"off\",\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/you-dont-need-lodash-underscore.ts"],"names":["config","you_dont_need_lodash_underscore_default"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/you-dont-need-lodash-underscore.ts"],"names":["config","you_dont_need_lodash_underscore_default"],"mappings":"gCAEA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,mDAAmD,CACjE,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n extends: [\"plugin:you-dont-need-lodash-underscore/compatible\"],\n};\n\nexport default config;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/you-dont-need-momentjs.ts"],"names":["config","you_dont_need_momentjs_default"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/you-dont-need-momentjs.ts"],"names":["config","you_dont_need_momentjs_default"],"mappings":"gCAEA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,2CAA2C,CACzD,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n extends: [\"plugin:you-dont-need-momentjs/recommended\"],\n};\n\nexport default config;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/zod.ts"],"names":["config","zod_default"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/zod.ts"],"names":["config","zod_default"],"mappings":"gCAEA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,KAAK,EACf,MAAO,CACH,kBAAmB,QACnB,qBAAsB,OAC1B,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n plugins: [\"zod\"],\n rules: {\n \"zod/prefer-enum\": \"error\",\n \"zod/require-strict\": \"error\",\n },\n};\n\nexport default config;\n"]}
|
package/dist/config/style.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBH4PQLFK_js = require('../chunk-BH4PQLFK.js');
|
|
4
|
+
require('../chunk-PW4WCSOE.js');
|
|
4
5
|
require('../chunk-PTQ3FFI5.js');
|
|
6
|
+
require('../chunk-3NVDJZNH.js');
|
|
5
7
|
|
|
6
8
|
|
|
7
9
|
|
|
8
|
-
module.exports =
|
|
10
|
+
module.exports = chunkBH4PQLFK_js.a;
|
|
9
11
|
//# sourceMappingURL=out.js.map
|
|
10
12
|
//# sourceMappingURL=style.js.map
|
package/dist/config/variables.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZFO6DTP4_js = require('../chunk-ZFO6DTP4.js');
|
|
4
|
+
require('../chunk-3NVDJZNH.js');
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
7
|
-
module.exports =
|
|
8
|
+
module.exports = chunkZFO6DTP4_js.a;
|
|
8
9
|
//# sourceMappingURL=out.js.map
|
|
9
10
|
//# sourceMappingURL=variables.js.map
|