@anolilab/eslint-config 15.0.3 → 16.0.1
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 +32 -0
- package/README.md +386 -466
- package/dist/index.cjs +20 -0
- package/dist/index.d.cts +16370 -0
- package/dist/index.d.mts +16370 -0
- package/dist/index.d.ts +16367 -2
- package/dist/index.mjs +20 -0
- package/package.json +95 -271
- package/bin/generate-eslint-cofig.js +0 -3
- package/dist/chunk-5RAVHY5O.js +0 -8
- package/dist/chunk-5RAVHY5O.js.map +0 -1
- package/dist/chunk-A6LXZAWN.js +0 -9
- package/dist/chunk-A6LXZAWN.js.map +0 -1
- package/dist/chunk-MKL3NIXX.js +0 -9
- package/dist/chunk-MKL3NIXX.js.map +0 -1
- package/dist/chunk-R26SPKXH.js +0 -9
- package/dist/chunk-R26SPKXH.js.map +0 -1
- package/dist/chunk-RG6NJDJA.js +0 -9
- package/dist/chunk-RG6NJDJA.js.map +0 -1
- package/dist/chunk-SEYYGHPU.js +0 -8
- package/dist/chunk-SEYYGHPU.js.map +0 -1
- package/dist/chunk-SLM5UENV.js +0 -14
- package/dist/chunk-SLM5UENV.js.map +0 -1
- package/dist/chunk-UGG52B5H.js +0 -11
- package/dist/chunk-UGG52B5H.js.map +0 -1
- package/dist/chunk-WG6GTAIA.js +0 -8
- package/dist/chunk-WG6GTAIA.js.map +0 -1
- package/dist/chunk-WW4PDMXQ.js +0 -9
- package/dist/chunk-WW4PDMXQ.js.map +0 -1
- package/dist/config/best-practices.d.ts +0 -5
- package/dist/config/best-practices.js +0 -11
- package/dist/config/best-practices.js.map +0 -1
- package/dist/config/errors.d.ts +0 -5
- package/dist/config/errors.js +0 -11
- package/dist/config/errors.js.map +0 -1
- package/dist/config/es6.d.ts +0 -5
- package/dist/config/es6.js +0 -11
- package/dist/config/es6.js.map +0 -1
- package/dist/config/plugins/antfu.d.ts +0 -5
- package/dist/config/plugins/antfu.js +0 -11
- package/dist/config/plugins/antfu.js.map +0 -1
- package/dist/config/plugins/array-func.d.ts +0 -5
- package/dist/config/plugins/array-func.js +0 -10
- package/dist/config/plugins/array-func.js.map +0 -1
- package/dist/config/plugins/ava.d.ts +0 -5
- package/dist/config/plugins/ava.js +0 -9
- package/dist/config/plugins/ava.js.map +0 -1
- package/dist/config/plugins/babel.d.ts +0 -5
- package/dist/config/plugins/babel.js +0 -16
- package/dist/config/plugins/babel.js.map +0 -1
- package/dist/config/plugins/compat.d.ts +0 -5
- package/dist/config/plugins/compat.js +0 -9
- package/dist/config/plugins/compat.js.map +0 -1
- package/dist/config/plugins/cypress.d.ts +0 -5
- package/dist/config/plugins/cypress.js +0 -9
- package/dist/config/plugins/cypress.js.map +0 -1
- package/dist/config/plugins/deprecation.d.ts +0 -5
- package/dist/config/plugins/deprecation.js +0 -10
- package/dist/config/plugins/deprecation.js.map +0 -1
- package/dist/config/plugins/editorconfig.d.ts +0 -5
- package/dist/config/plugins/editorconfig.js +0 -10
- package/dist/config/plugins/editorconfig.js.map +0 -1
- package/dist/config/plugins/es.d.ts +0 -5
- package/dist/config/plugins/es.js +0 -10
- package/dist/config/plugins/es.js.map +0 -1
- package/dist/config/plugins/eslint-comments.d.ts +0 -5
- package/dist/config/plugins/eslint-comments.js +0 -10
- package/dist/config/plugins/eslint-comments.js.map +0 -1
- package/dist/config/plugins/etc.d.ts +0 -5
- package/dist/config/plugins/etc.js +0 -18
- package/dist/config/plugins/etc.js.map +0 -1
- package/dist/config/plugins/html.d.ts +0 -5
- package/dist/config/plugins/html.js +0 -12
- package/dist/config/plugins/html.js.map +0 -1
- package/dist/config/plugins/import.d.ts +0 -5
- package/dist/config/plugins/import.js +0 -12
- package/dist/config/plugins/import.js.map +0 -1
- package/dist/config/plugins/jest-async.d.ts +0 -5
- package/dist/config/plugins/jest-async.js +0 -9
- package/dist/config/plugins/jest-async.js.map +0 -1
- package/dist/config/plugins/jest-dom.d.ts +0 -5
- package/dist/config/plugins/jest-dom.js +0 -9
- package/dist/config/plugins/jest-dom.js.map +0 -1
- package/dist/config/plugins/jest-formatting.d.ts +0 -5
- package/dist/config/plugins/jest-formatting.js +0 -9
- package/dist/config/plugins/jest-formatting.js.map +0 -1
- package/dist/config/plugins/jest.d.ts +0 -5
- package/dist/config/plugins/jest.js +0 -14
- package/dist/config/plugins/jest.js.map +0 -1
- package/dist/config/plugins/jsdoc.d.ts +0 -5
- package/dist/config/plugins/jsdoc.js +0 -12
- package/dist/config/plugins/jsdoc.js.map +0 -1
- package/dist/config/plugins/jsonc.d.ts +0 -5
- package/dist/config/plugins/jsonc.js +0 -17
- package/dist/config/plugins/jsonc.js.map +0 -1
- package/dist/config/plugins/jsx-a11y.d.ts +0 -5
- package/dist/config/plugins/jsx-a11y.js +0 -10
- package/dist/config/plugins/jsx-a11y.js.map +0 -1
- package/dist/config/plugins/markdown.d.ts +0 -5
- package/dist/config/plugins/markdown.js +0 -10
- package/dist/config/plugins/markdown.js.map +0 -1
- package/dist/config/plugins/mdx.d.ts +0 -5
- package/dist/config/plugins/mdx.js +0 -10
- package/dist/config/plugins/mdx.js.map +0 -1
- package/dist/config/plugins/no-extend-native.d.ts +0 -5
- package/dist/config/plugins/no-extend-native.js +0 -9
- package/dist/config/plugins/no-extend-native.js.map +0 -1
- package/dist/config/plugins/no-loops.d.ts +0 -5
- package/dist/config/plugins/no-loops.js +0 -9
- package/dist/config/plugins/no-loops.js.map +0 -1
- package/dist/config/plugins/no-only-tests.d.ts +0 -5
- package/dist/config/plugins/no-only-tests.js +0 -10
- package/dist/config/plugins/no-only-tests.js.map +0 -1
- package/dist/config/plugins/no-secrets.d.ts +0 -5
- package/dist/config/plugins/no-secrets.js +0 -9
- package/dist/config/plugins/no-secrets.js.map +0 -1
- package/dist/config/plugins/no-unsanitized.d.ts +0 -5
- package/dist/config/plugins/no-unsanitized.js +0 -9
- package/dist/config/plugins/no-unsanitized.js.map +0 -1
- package/dist/config/plugins/node.d.ts +0 -5
- package/dist/config/plugins/node.js +0 -10
- package/dist/config/plugins/node.js.map +0 -1
- package/dist/config/plugins/perfectionist.d.ts +0 -5
- package/dist/config/plugins/perfectionist.js +0 -14
- package/dist/config/plugins/perfectionist.js.map +0 -1
- package/dist/config/plugins/playwright.d.ts +0 -5
- package/dist/config/plugins/playwright.js +0 -10
- package/dist/config/plugins/playwright.js.map +0 -1
- package/dist/config/plugins/promise.d.ts +0 -5
- package/dist/config/plugins/promise.js +0 -9
- package/dist/config/plugins/promise.js.map +0 -1
- package/dist/config/plugins/react-hooks.d.ts +0 -5
- package/dist/config/plugins/react-hooks.js +0 -10
- package/dist/config/plugins/react-hooks.js.map +0 -1
- package/dist/config/plugins/react-redux.d.ts +0 -5
- package/dist/config/plugins/react-redux.js +0 -10
- package/dist/config/plugins/react-redux.js.map +0 -1
- package/dist/config/plugins/react-usememo.d.ts +0 -5
- package/dist/config/plugins/react-usememo.js +0 -10
- package/dist/config/plugins/react-usememo.js.map +0 -1
- package/dist/config/plugins/react.d.ts +0 -5
- package/dist/config/plugins/react.js +0 -29
- package/dist/config/plugins/react.js.map +0 -1
- package/dist/config/plugins/regexp.d.ts +0 -5
- package/dist/config/plugins/regexp.js +0 -10
- package/dist/config/plugins/regexp.js.map +0 -1
- package/dist/config/plugins/security.d.ts +0 -5
- package/dist/config/plugins/security.js +0 -9
- package/dist/config/plugins/security.js.map +0 -1
- package/dist/config/plugins/simple-import-sort.d.ts +0 -5
- package/dist/config/plugins/simple-import-sort.js +0 -10
- package/dist/config/plugins/simple-import-sort.js.map +0 -1
- package/dist/config/plugins/sonarjs.d.ts +0 -5
- package/dist/config/plugins/sonarjs.js +0 -10
- package/dist/config/plugins/sonarjs.js.map +0 -1
- package/dist/config/plugins/ssr-friendly.d.ts +0 -5
- package/dist/config/plugins/ssr-friendly.js +0 -10
- package/dist/config/plugins/ssr-friendly.js.map +0 -1
- package/dist/config/plugins/storybook.d.ts +0 -5
- package/dist/config/plugins/storybook.js +0 -9
- package/dist/config/plugins/storybook.js.map +0 -1
- package/dist/config/plugins/tailwindcss.d.ts +0 -5
- package/dist/config/plugins/tailwindcss.js +0 -10
- package/dist/config/plugins/tailwindcss.js.map +0 -1
- package/dist/config/plugins/tanstack-query.d.ts +0 -5
- package/dist/config/plugins/tanstack-query.js +0 -10
- package/dist/config/plugins/tanstack-query.js.map +0 -1
- package/dist/config/plugins/testing-library-dom.d.ts +0 -5
- package/dist/config/plugins/testing-library-dom.js +0 -12
- package/dist/config/plugins/testing-library-dom.js.map +0 -1
- package/dist/config/plugins/testing-library-react.d.ts +0 -5
- package/dist/config/plugins/testing-library-react.js +0 -12
- package/dist/config/plugins/testing-library-react.js.map +0 -1
- package/dist/config/plugins/toml.d.ts +0 -5
- package/dist/config/plugins/toml.js +0 -9
- package/dist/config/plugins/toml.js.map +0 -1
- package/dist/config/plugins/tsdoc.d.ts +0 -5
- package/dist/config/plugins/tsdoc.js +0 -10
- package/dist/config/plugins/tsdoc.js.map +0 -1
- package/dist/config/plugins/typescript.d.ts +0 -5
- package/dist/config/plugins/typescript.js +0 -19
- package/dist/config/plugins/typescript.js.map +0 -1
- package/dist/config/plugins/unicorn.d.ts +0 -5
- package/dist/config/plugins/unicorn.js +0 -12
- package/dist/config/plugins/unicorn.js.map +0 -1
- package/dist/config/plugins/validate-jsx-nesting.d.ts +0 -5
- package/dist/config/plugins/validate-jsx-nesting.js +0 -10
- package/dist/config/plugins/validate-jsx-nesting.js.map +0 -1
- package/dist/config/plugins/vitest.d.ts +0 -5
- package/dist/config/plugins/vitest.js +0 -10
- package/dist/config/plugins/vitest.js.map +0 -1
- package/dist/config/plugins/yml.d.ts +0 -5
- package/dist/config/plugins/yml.js +0 -12
- package/dist/config/plugins/yml.js.map +0 -1
- package/dist/config/plugins/you-dont-need-lodash-underscore.d.ts +0 -5
- package/dist/config/plugins/you-dont-need-lodash-underscore.js +0 -10
- package/dist/config/plugins/you-dont-need-lodash-underscore.js.map +0 -1
- package/dist/config/plugins/you-dont-need-momentjs.d.ts +0 -5
- package/dist/config/plugins/you-dont-need-momentjs.js +0 -10
- package/dist/config/plugins/you-dont-need-momentjs.js.map +0 -1
- package/dist/config/plugins/zod.d.ts +0 -5
- package/dist/config/plugins/zod.js +0 -10
- package/dist/config/plugins/zod.js.map +0 -1
- package/dist/config/style.d.ts +0 -5
- package/dist/config/style.js +0 -13
- package/dist/config/style.js.map +0 -1
- package/dist/config/variables.d.ts +0 -5
- package/dist/config/variables.js +0 -11
- package/dist/config/variables.js.map +0 -1
- package/dist/define-config.d.ts +0 -1
- package/dist/define-config.js +0 -17
- package/dist/define-config.js.map +0 -1
- package/dist/globals.d.ts +0 -8
- package/dist/globals.js +0 -17
- package/dist/globals.js.map +0 -1
- package/dist/index.js +0 -26
- package/dist/index.js.map +0 -1
- package/dist/postinstall.d.ts +0 -1
- package/dist/postinstall.js +0 -79
- package/dist/postinstall.js.map +0 -1
- package/dist/typescript-type-checking.d.ts +0 -5
- package/dist/typescript-type-checking.js +0 -13
- package/dist/typescript-type-checking.js.map +0 -1
- package/skip.js +0 -7
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
|
|
4
|
-
require('../../chunk-5RAVHY5O.js');
|
|
5
|
-
|
|
6
|
-
var e=chunkWG6GTAIA_js.b([{config:{excludedFiles:["**/?(*.)+(test).{js,jsx,ts,tsx}","**/*.stories.{js,ts,jsx,tsx}"],extends:["plugin:sonarjs/recommended"],rules:{"sonarjs/no-nested-template-literals":"off"}},type:"all"},{config:{rules:{"sonarjs/cognitive-complexity":["error",15],"sonarjs/no-duplicate-string":"off"}},type:"js_and_ts"},{config:{parser:"espree",parserOptions:{ecmaVersion:2020},rules:{"sonarjs/no-all-duplicated-branches":"off","sonarjs/no-duplicate-string":"off"}},type:"javascript"}]),o=e;
|
|
7
|
-
|
|
8
|
-
module.exports = o;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=sonarjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/sonarjs.ts"],"names":["config","createConfigs","sonarjs_default"],"mappings":"4EAKA,IAAMA,EAAwBC,EAAc,CACxC,CACI,OAAQ,CACJ,cAAe,CAAC,kCAAmC,8BAA8B,EACjF,QAAS,CAAC,4BAA4B,EACtC,MAAO,CACH,sCAAuC,KAC3C,CACJ,EACA,KAAM,KACV,EACA,CACI,OAAQ,CACJ,MAAO,CAEH,+BAAgC,CAAC,QAAS,EAAE,EAE5C,8BAA+B,KACnC,CACJ,EACA,KAAM,WACV,EACA,CACI,OAAQ,CACJ,OAAQ,SACR,cAAe,CACX,YAAa,IACjB,EACA,MAAO,CACH,qCAAsC,MACtC,8BAA+B,KACnC,CACJ,EACA,KAAM,YACV,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfigs } from \"../../utils/create-config\";\n\n// @see https://github.com/SonarSource/eslint-plugin-sonarjs\nconst config: Linter.Config = createConfigs([\n {\n config: {\n excludedFiles: [\"**/?(*.)+(test).{js,jsx,ts,tsx}\", \"**/*.stories.{js,ts,jsx,tsx}\"],\n extends: [\"plugin:sonarjs/recommended\"],\n rules: {\n \"sonarjs/no-nested-template-literals\": \"off\",\n },\n },\n type: \"all\",\n },\n {\n config: {\n rules: {\n // relax complexity for react code\n \"sonarjs/cognitive-complexity\": [\"error\", 15],\n // relax duplicate strings\n \"sonarjs/no-duplicate-string\": \"off\",\n },\n },\n type: \"js_and_ts\",\n },\n {\n config: {\n parser: \"espree\",\n parserOptions: {\n ecmaVersion: 2020,\n },\n rules: {\n \"sonarjs/no-all-duplicated-branches\": \"off\",\n \"sonarjs/no-duplicate-string\": \"off\",\n },\n },\n type: \"javascript\",\n },\n]);\n\nexport default config;\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
|
|
4
|
-
require('../../chunk-5RAVHY5O.js');
|
|
5
|
-
|
|
6
|
-
var n=chunkWG6GTAIA_js.a("jsx_and_tsx",{plugins:["ssr-friendly"],extends:["plugin:ssr-friendly/recommended"]}),i=n;
|
|
7
|
-
|
|
8
|
-
module.exports = i;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=ssr-friendly.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/ssr-friendly.ts"],"names":["config","createConfig","ssr_friendly_default"],"mappings":"4EAKA,IAAMA,EAAwBC,EAAa,cAAe,CACtD,QAAS,CAAC,cAAc,EACxB,QAAS,CAAC,iCAAiC,CAC/C,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(\"jsx_and_tsx\", {\n plugins: [\"ssr-friendly\"],\n extends: [\"plugin:ssr-friendly/recommended\"],\n});\n\nexport default config;\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
require('../../chunk-5RAVHY5O.js');
|
|
4
|
-
|
|
5
|
-
var e={env:{browser:!0,es6:!0,node:!0},overrides:[{extends:["plugin:storybook/recommended"],files:["**/*.stories.{ts,tsx,mdx}",".storybook/**/*"]}]},o=e;
|
|
6
|
-
|
|
7
|
-
module.exports = o;
|
|
8
|
-
//# sourceMappingURL=out.js.map
|
|
9
|
-
//# sourceMappingURL=storybook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/storybook.ts"],"names":["config","storybook_default"],"mappings":"gCAGA,IAAMA,EAAwB,CAC1B,IAAK,CACD,QAAS,GACT,IAAK,GACL,KAAM,EACV,EACA,UAAW,CACP,CACI,QAAS,CAAC,8BAA8B,EAExC,MAAO,CAAC,4BAA6B,iBAAiB,CAC1D,CACJ,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\n// @see https://github.com/storybookjs/eslint-plugin-storybook\nconst config: Linter.Config = {\n env: {\n browser: true,\n es6: true,\n node: true,\n },\n overrides: [\n {\n extends: [\"plugin:storybook/recommended\"],\n // For performance run storybook/recommended on test files, not regular code\n files: [\"**/*.stories.{ts,tsx,mdx}\", \".storybook/**/*\"],\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
|
|
4
|
-
require('../../chunk-5RAVHY5O.js');
|
|
5
|
-
|
|
6
|
-
var t=chunkWG6GTAIA_js.a("jsx_and_tsx",{extends:["plugin:tailwindcss/recommended"],plugins:["tailwindcss"]},{browser:!0,es6:!0,node:!0}),i=t;
|
|
7
|
-
|
|
8
|
-
module.exports = i;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=tailwindcss.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/tailwindcss.ts"],"names":["config","createConfig","tailwindcss_default"],"mappings":"4EAKA,IAAMA,EAAwBC,EAC1B,cACA,CACI,QAAS,CAAC,gCAAgC,EAC1C,QAAS,CAAC,aAAa,CAC3B,EACA,CACI,QAAS,GACT,IAAK,GACL,KAAM,EACV,CACJ,EAEOC,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(\n \"jsx_and_tsx\",\n {\n extends: [\"plugin:tailwindcss/recommended\"],\n plugins: [\"tailwindcss\"],\n },\n {\n browser: true,\n es6: true,\n node: true,\n },\n);\n\nexport default config;\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
|
|
4
|
-
require('../../chunk-5RAVHY5O.js');
|
|
5
|
-
|
|
6
|
-
var t=chunkWG6GTAIA_js.a("all",{extends:["plugin:@tanstack/eslint-plugin-query/recommended"]}),i=t;
|
|
7
|
-
|
|
8
|
-
module.exports = i;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=tanstack-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/tanstack-query.ts"],"names":["config","createConfig","tanstack_query_default"],"mappings":"4EAKA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,kDAAkD,CAChE,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\n// @see https://tanstack.com/query/v4/docs/react/eslint/eslint-plugin-query\nconst config: Linter.Config = createConfig(\"all\", {\n extends: [\"plugin:@tanstack/eslint-plugin-query/recommended\"],\n});\n\nexport default config;\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkSEYYGHPU_js = require('../../chunk-SEYYGHPU.js');
|
|
4
|
-
var chunkWW4PDMXQ_js = require('../../chunk-WW4PDMXQ.js');
|
|
5
|
-
var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
|
|
6
|
-
require('../../chunk-5RAVHY5O.js');
|
|
7
|
-
|
|
8
|
-
global.hasAnolilabEsLintTestConfigLoaded||(chunkWW4PDMXQ_js.a.info_on_testing_library_framework!==!1&&chunkSEYYGHPU_js.a('testing-library: loading "dom" ruleset'),global.hasAnolilabEsLintTestConfigLoaded=!0);var e=chunkWG6GTAIA_js.a("tests",{extends:["plugin:testing-library/dom"]},{browser:!0,es6:!0,node:!0}),s=e;
|
|
9
|
-
|
|
10
|
-
module.exports = s;
|
|
11
|
-
//# sourceMappingURL=out.js.map
|
|
12
|
-
//# sourceMappingURL=testing-library-dom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/testing-library-dom.ts"],"names":["eslint_config_default","consolePlugin","config","createConfig","testing_library_dom_default"],"mappings":"oKAOK,OAAO,oCACJA,EAAqB,oCAAyC,IAC9DC,EAAc,wCAAwC,EAG1D,OAAO,kCAAoC,IAI/C,IAAMC,EAAwBC,EAC1B,QACA,CACI,QAAS,CAAC,4BAA4B,CAC1C,EACA,CACI,QAAS,GACT,IAAK,GACL,KAAM,EACV,CACJ,EAEOC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\nimport anolilabEslintConfig from \"../../utils/eslint-config\";\nimport { consolePlugin } from \"../../utils/loggers\";\n\n// Workaround VS Code trying to run this file twice!\nif (!global.hasAnolilabEsLintTestConfigLoaded) {\n if (anolilabEslintConfig[\"info_on_testing_library_framework\"] !== false) {\n consolePlugin(`testing-library: loading \"dom\" ruleset`);\n }\n\n global.hasAnolilabEsLintTestConfigLoaded = true;\n}\n\n// For performance enable react-testing-library only on test files\nconst config: Linter.Config = createConfig(\n \"tests\",\n {\n extends: [`plugin:testing-library/dom`],\n },\n {\n browser: true,\n es6: true,\n node: true,\n },\n);\n\nexport default config;\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkSEYYGHPU_js = require('../../chunk-SEYYGHPU.js');
|
|
4
|
-
var chunkWW4PDMXQ_js = require('../../chunk-WW4PDMXQ.js');
|
|
5
|
-
var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
|
|
6
|
-
require('../../chunk-5RAVHY5O.js');
|
|
7
|
-
|
|
8
|
-
global.hasAnolilabEsLintTestConfigLoaded||(chunkWW4PDMXQ_js.a.info_on_testing_library_framework!==!1&&chunkSEYYGHPU_js.a('testing-library: loading "react" ruleset'),global.hasAnolilabEsLintTestConfigLoaded=!0);var o=chunkWG6GTAIA_js.a("tests",{extends:["plugin:testing-library/react"]},{browser:!0,es6:!0,node:!0}),a=o;
|
|
9
|
-
|
|
10
|
-
module.exports = a;
|
|
11
|
-
//# sourceMappingURL=out.js.map
|
|
12
|
-
//# sourceMappingURL=testing-library-react.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/testing-library-react.ts"],"names":["eslint_config_default","consolePlugin","config","createConfig","testing_library_react_default"],"mappings":"oKAOK,OAAO,oCACJA,EAAqB,oCAAyC,IAC9DC,EAAc,0CAA0C,EAG5D,OAAO,kCAAoC,IAI/C,IAAMC,EAAwBC,EAC1B,QACA,CACI,QAAS,CAAC,8BAA8B,CAC5C,EACA,CACI,QAAS,GACT,IAAK,GACL,KAAM,EACV,CACJ,EAEOC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\nimport anolilabEslintConfig from \"../../utils/eslint-config\";\nimport { consolePlugin } from \"../../utils/loggers\";\n\n// Workaround VS Code trying to run this file twice!\nif (!global.hasAnolilabEsLintTestConfigLoaded) {\n if (anolilabEslintConfig[\"info_on_testing_library_framework\"] !== false) {\n consolePlugin(`testing-library: loading \"react\" ruleset`);\n }\n\n global.hasAnolilabEsLintTestConfigLoaded = true;\n}\n\n// For performance enable react-testing-library only on test files\nconst config: Linter.Config = createConfig(\n \"tests\",\n {\n extends: [`plugin:testing-library/react`],\n },\n {\n browser: true,\n es6: true,\n node: true,\n },\n);\n\nexport default config;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/toml.ts"],"names":["config","toml_default"],"mappings":"gCAEA,IAAMA,EAAwB,CAC1B,UAAW,CACP,CACI,QAAS,CAAC,sBAAsB,EAChC,MAAO,CAAC,WAAW,EACnB,OAAQ,oBACZ,CACJ,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n overrides: [\n {\n extends: [\"plugin:toml/standard\"],\n files: [\"**/*.toml\"],\n parser: \"toml-eslint-parser\",\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
|
|
4
|
-
require('../../chunk-5RAVHY5O.js');
|
|
5
|
-
|
|
6
|
-
var r=chunkWG6GTAIA_js.a("typescript",{plugins:["eslint-plugin-tsdoc"],rules:{"tsdoc/syntax":"error"}}),i=r;
|
|
7
|
-
|
|
8
|
-
module.exports = i;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=tsdoc.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkSLM5UENV_js = require('../../chunk-SLM5UENV.js');
|
|
4
|
-
var chunkMKL3NIXX_js = require('../../chunk-MKL3NIXX.js');
|
|
5
|
-
var chunkUGG52B5H_js = require('../../chunk-UGG52B5H.js');
|
|
6
|
-
require('../../chunk-R26SPKXH.js');
|
|
7
|
-
var chunkWW4PDMXQ_js = require('../../chunk-WW4PDMXQ.js');
|
|
8
|
-
var chunkA6LXZAWN_js = require('../../chunk-A6LXZAWN.js');
|
|
9
|
-
var chunkRG6NJDJA_js = require('../../chunk-RG6NJDJA.js');
|
|
10
|
-
var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
|
|
11
|
-
require('../../chunk-5RAVHY5O.js');
|
|
12
|
-
var process = require('process');
|
|
13
|
-
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
14
|
-
|
|
15
|
-
var t=chunkA6LXZAWN_js.a.overrides[0].rules,y=chunkRG6NJDJA_js.a.overrides[0].rules,e=chunkUGG52B5H_js.a.overrides[0].rules,u=chunkMKL3NIXX_js.a.overrides[0].rules,i=chunkSLM5UENV_js.a.overrides[0].rules,{indent:b,quotes:v,semi:x}=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 s=e["comma-dangle"],f=process.env.DISABLE_ESLINT_WARN_UNSUPPORTED_TYPESCRIPT_VERSION!=="true";chunkWW4PDMXQ_js.a.warn_on_unsupported_typescript_version!==void 0&&(f=chunkWW4PDMXQ_js.a.warn_on_unsupported_typescript_version);var R=chunkWG6GTAIA_js.b([{config:{extends:["plugin:@typescript-eslint/recommended","plugin:@typescript-eslint/stylistic","plugin:@typescript-eslint/strict"],parser:"@typescript-eslint/parser",parserOptions:{ecmaFeatures:{jsx:!0},sourceType:"module",warnOnUnsupportedTypeScriptVersion:f},plugins:["@typescript-eslint"],rules:{"@typescript-eslint/brace-style":e["brace-style"],"@typescript-eslint/naming-convention":["error",{selector:"variable",format:["camelCase","PascalCase","UPPER_CASE"]},{selector:"function",format:["camelCase","PascalCase"]},{selector:"typeLike",format:["PascalCase"]}],"@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/func-call-spacing":e["func-call-spacing"],"@typescript-eslint/indent":b,"@typescript-eslint/keyword-spacing":e["keyword-spacing"],"@typescript-eslint/lines-between-class-members":["error","always",{exceptAfterSingleLine:!1}],"@typescript-eslint/no-array-constructor":e["no-array-constructor"],"@typescript-eslint/no-dupe-class-members":u["no-dupe-class-members"],"@typescript-eslint/no-empty-function":t["no-empty-function"],"@typescript-eslint/no-extra-parens":y["no-extra-parens"],"@typescript-eslint/no-extra-semi":y["no-extra-semi"],"@typescript-eslint/no-loop-func":t["no-loop-func"],"@typescript-eslint/no-magic-numbers":t["no-magic-numbers"],"@typescript-eslint/no-redeclare":t["no-redeclare"],"@typescript-eslint/no-shadow":i["no-shadow"],"@typescript-eslint/no-unused-expressions":t["no-unused-expressions"],"@typescript-eslint/no-unused-vars":i["no-unused-vars"],"@typescript-eslint/no-use-before-define":i["no-use-before-define"],"@typescript-eslint/no-useless-constructor":u["no-useless-constructor"],"@typescript-eslint/quotes":v,"@typescript-eslint/semi":x,"@typescript-eslint/space-before-function-paren":e["space-before-function-paren"],"@typescript-eslint/return-await":t["no-return-await"],"@typescript-eslint/space-infix-ops":e["space-infix-ops"],"@typescript-eslint/consistent-type-imports":"error","@typescript-eslint/adjacent-overload-signatures":"error","@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/array-type":["error",{default:"array",readonly:"generic"}],"@typescript-eslint/ban-types":["error",{types:{String:{message:"Use string instead",fixWith:"string"},Boolean:{message:"Use boolean instead",fixWith:"boolean"},Number:{message:"Use number instead",fixWith:"number"},Object:{message:"Use object instead",fixWith:"object"},Array:{message:"Provide a more specific type"}}}],"@typescript-eslint/sort-type-constituents":"error","@typescript-eslint/prefer-ts-expect-error":"error","@typescript-eslint/consistent-generic-constructors":"error","@typescript-eslint/explicit-member-accessibility":"error","@typescript-eslint/explicit-module-boundary-types":"error","@typescript-eslint/method-signature-style":"error","@typescript-eslint/no-confusing-non-null-assertion":"error","@typescript-eslint/no-duplicate-enum-values":"error","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-extra-non-null-assertion":"error","@typescript-eslint/no-invalid-void-type":"warn","@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-require-imports":"error","@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-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/no-import-type-side-effects":"error",...global.anolilabEslintConfigTypescriptPrettierRules}},type:"typescript"}]),U=R;
|
|
16
|
-
|
|
17
|
-
module.exports = U;
|
|
18
|
-
//# sourceMappingURL=out.js.map
|
|
19
|
-
//# sourceMappingURL=typescript.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/typescript.ts"],"names":["env","hasDependency","hasDevDependency","bestPracticesRules","best_practices_default","errorsRules","errors_default","styleRules","style_default","eS6Rules","es6_default","variablesRules","variables_default","indent","quotes","semi","commaDangle","showUnsupportedTypeScriptVersionWarning","eslint_config_default","config","createConfigs","typescript_default"],"mappings":"+WAAA,OAAS,OAAAA,MAAW,UAEpB,OAAS,iBAAAC,EAAe,oBAAAC,MAAwB,+BAahD,IAAMC,EAAqBC,EAAoB,UAAU,CAAC,EAAE,MAEtDC,EAAcC,EAAa,UAAU,CAAC,EAAE,MAExCC,EAAaC,EAAY,UAAU,CAAC,EAAE,MAGtCC,EAAWC,EAAU,UAAU,CAAC,EAAE,MAElCC,EAAiBC,EAAgB,UAAU,CAAC,EAAE,MAE9C,CAAE,OAAAC,EAAQ,OAAAC,EAAQ,KAAAC,CAAK,EAAIR,EAE7B,OAAO,8CAAgD,SAAcN,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,GAIJ,IAAMc,EAAcT,EAAW,cAAc,EAEzCU,EAAmDjB,EAAI,qDAA0D,OAEjHkB,EAAqB,yCAA8C,SACnED,EAA0CC,EAAqB,wCAGnE,IAAMC,EAAwBC,EAAc,CACxC,CACI,OAAQ,CACJ,QAAS,CAAC,wCAAyC,sCAAuC,kCAAkC,EAC5H,OAAQ,4BACR,cAAe,CACX,aAAc,CACV,IAAK,EACT,EACA,WAAY,SACZ,mCAAoCH,CACxC,EACA,QAAS,CAAC,oBAAoB,EAC9B,MAAO,CAGH,iCAAkCV,EAAW,aAAa,EAG1D,uCAAwC,CACpC,QAEA,CACI,SAAU,WACV,OAAQ,CAAC,YAAa,aAAc,YAAY,CACpD,EAEA,CACI,SAAU,WACV,OAAQ,CAAC,YAAa,YAAY,CACtC,EAGA,CACI,SAAU,WACV,OAAQ,CAAC,YAAY,CACzB,CACJ,EAKA,kCAAmC,CAC/BS,EAAY,CAAC,EACb,CACI,GAAGA,EAAY,CAAC,EAEhB,MAAOA,EAAY,CAAC,EAAE,OAEtB,SAAUA,EAAY,CAAC,EAAE,OAEzB,OAAQA,EAAY,CAAC,EAAE,MAC3B,CACJ,EAIA,mCAAoCT,EAAW,eAAe,EAI9D,uCAAwCA,EAAW,mBAAmB,EAItE,4BAA6BM,EAI7B,qCAAsCN,EAAW,iBAAiB,EAIlE,iDAAkD,CAAC,QAAS,SAAU,CAAE,sBAAuB,EAAM,CAAC,EAItG,0CAA2CA,EAAW,sBAAsB,EAI5E,2CAA4CE,EAAS,uBAAuB,EAI5E,uCAAwCN,EAAmB,mBAAmB,EAI9E,qCAAsCE,EAAY,iBAAiB,EAInE,mCAAoCA,EAAY,eAAe,EAI/D,kCAAmCF,EAAmB,cAAc,EAIpE,sCAAuCA,EAAmB,kBAAkB,EAI5E,kCAAmCA,EAAmB,cAAc,EAIpE,+BAAgCQ,EAAe,WAAW,EAI1D,2CAA4CR,EAAmB,uBAAuB,EAItF,oCAAqCQ,EAAe,gBAAgB,EAIpE,0CAA2CA,EAAe,sBAAsB,EAIhF,4CAA6CF,EAAS,wBAAwB,EAI9E,4BAA6BK,EAI7B,0BAA2BC,EAI3B,iDAAkDR,EAAW,6BAA6B,EAI1F,kCAAmCJ,EAAmB,iBAAiB,EAIvE,qCAAsCI,EAAW,iBAAiB,EAIlE,6CAA8C,QAI9C,kDAAmD,QAGnD,qCAAsC,CAClC,QACA,CACI,QAAS,CACL,sBACA,yBACA,uBACA,uBACA,0BACA,wBACA,wBACA,2BACA,yBACA,cACA,yBACA,4BACA,yBACJ,CACJ,CACJ,EAGA,gCAAiC,CAC7B,QACA,CACI,QAAS,QACT,SAAU,SACd,CACJ,EAKA,+BAAgC,CAC5B,QACA,CACI,MAAO,CACH,OAAQ,CAAE,QAAS,qBAAsB,QAAS,QAAS,EAC3D,QAAS,CAAE,QAAS,sBAAuB,QAAS,SAAU,EAC9D,OAAQ,CAAE,QAAS,qBAAsB,QAAS,QAAS,EAC3D,OAAQ,CAAE,QAAS,qBAAsB,QAAS,QAAS,EAC3D,MAAO,CAAE,QAAS,8BAA+B,CACrD,CACJ,CACJ,EAIA,4CAA6C,QAI7C,4CAA6C,QAI7C,qDAAsD,QAItD,mDAAoD,QAIpD,oDAAqD,QAIrD,4CAA6C,QAI7C,qDAAsD,QAItD,8CAA+C,QAI/C,uCAAwC,OAIxC,iDAAkD,QAIlD,0CAA2C,OAI3C,oCAAqC,QAIrC,kCAAmC,QAInC,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,KAAM,YACV,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 { createConfigs } from \"../../utils/create-config\";\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\";\n\n// @ts-expect-error TODO: find the correct type\nconst bestPracticesRules = bestPracticesConfig.overrides[0].rules as Linter.RulesRecord;\n// @ts-expect-error TODO: find the correct type\nconst errorsRules = errorsConfig.overrides[0].rules as Linter.RulesRecord;\n// @ts-expect-error TODO: find the correct type\nconst styleRules = styleConfig.overrides[0].rules as Linter.RulesRecord;\n// @ts-expect-error TODO: find the correct type\n// eslint-disable-next-line unicorn/prevent-abbreviations\nconst eS6Rules = eS6Config.overrides[0].rules as Linter.RulesRecord;\n// @ts-expect-error TODO: find the correct type\nconst variablesRules = variablesConfig.overrides[0].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\n// eslint-disable-next-line @typescript-eslint/no-explicit-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\"] as boolean;\n}\n\nconst config: Linter.Config = createConfigs([\n {\n config: {\n extends: [\"plugin:@typescript-eslint/recommended\", \"plugin:@typescript-eslint/stylistic\", \"plugin:@typescript-eslint/strict\"],\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 // 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 \"@typescript-eslint/brace-style\": styleRules[\"brace-style\"],\n\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 // recommends PascalCase for classes (23.3), and although it does not make TypeScript recommendations,\n // 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 \"@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 \"@typescript-eslint/comma-spacing\": styleRules[\"comma-spacing\"],\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 \"@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 \"@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 \"@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 \"@typescript-eslint/lines-between-class-members\": [\"error\", \"always\", { exceptAfterSingleLine: false }],\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 \"@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 \"@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 \"@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 \"@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 \"@typescript-eslint/no-extra-semi\": errorsRules[\"no-extra-semi\"],\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 \"@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 \"@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 \"@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 \"@typescript-eslint/no-shadow\": variablesRules[\"no-shadow\"],\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 \"@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 \"@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 \"@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 \"@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 \"@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 \"@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 \"@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 \"@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 \"@typescript-eslint/space-infix-ops\": styleRules[\"space-infix-ops\"],\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 type: \"typescript\",\n },\n]);\n\nexport default config;\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkR26SPKXH_js = require('../../chunk-R26SPKXH.js');
|
|
4
|
-
require('../../chunk-WW4PDMXQ.js');
|
|
5
|
-
require('../../chunk-5RAVHY5O.js');
|
|
6
|
-
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
7
|
-
|
|
8
|
-
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 i={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":"off","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)/u]}],"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":"error","unicorn/prefer-ternary":["error","only-single-line"],"unicorn/template-indent":["error",{indent:chunkR26SPKXH_js.a}],...global.anolilabEslintConfigUnicornPrettierRules}},s=i;
|
|
9
|
-
|
|
10
|
-
module.exports = s;
|
|
11
|
-
//# sourceMappingURL=out.js.map
|
|
12
|
-
//# sourceMappingURL=unicorn.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/unicorn.ts"],"names":["hasDependency","hasDevDependency","packageIsTypeModule","config","indent_default","unicorn_default"],"mappings":"4GAAA,OAAS,iBAAAA,EAAe,oBAAAC,EAAkB,uBAAAC,MAA2B,+BAKjE,OAAO,2CAA6C,SAAcF,EAAc,UAAU,GAAKC,EAAiB,UAAU,KAC1H,OAAO,yCAA2C,CAC9C,6BAA8B,MAC9B,4BAA6B,MAC7B,8BAA+B,MAC/B,0BAA2B,KAC/B,GAIJ,IAAME,EAAwB,CAC1B,QAAS,CAAC,4BAA4B,EACtC,UAAW,CACP,CACI,MAAO,CAAC,oBAAqB,oBAAoB,EACjD,MAAO,CACH,gCAAiC,KACrC,CACJ,EACA,CACI,MAAO,CAAC,UAAW,WAAY,WAAY,UAAU,EACrD,MAAO,CACH,uBAAwB,KAC5B,CACJ,CACJ,EACA,QAAS,CAAC,SAAS,EACnB,MAAO,CAEH,iCAAkC,MAElC,uBAAwB,MAExB,mCAAoC,MAEpC,sCAAuC,MAEvC,wBAAyB,CACrB,QACA,CACI,KAAM,YACN,OAAQ,CAAC,oGAAoG,CACjH,CACJ,EAEA,4BAA6B,MAG7B,kBAAmB,MAGnB,+BAAgC,MAGhC,mCAAoC,MAEpC,wBAAyBD,EAAsB,QAAU,MAEzD,+BAAgC,QAGhC,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\";\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 // Disabled because of eslint-plugin-regexp\n \"unicorn/better-regex\": \"off\",\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)/u],\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 2024.\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\": \"error\",\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,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
|
|
4
|
-
require('../../chunk-5RAVHY5O.js');
|
|
5
|
-
|
|
6
|
-
var i=chunkWG6GTAIA_js.a("jsx_and_tsx",{plugins:["validate-jsx-nesting"],rules:{"validate-jsx-nesting/no-invalid-jsx-nesting":"error"}}),e=i;
|
|
7
|
-
|
|
8
|
-
module.exports = e;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=validate-jsx-nesting.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/validate-jsx-nesting.ts"],"names":["config","createConfig","validate_jsx_nesting_default"],"mappings":"4EAKA,IAAMA,EAAwBC,EAAa,cAAe,CACtD,QAAS,CAAC,sBAAsB,EAChC,MAAO,CACH,8CAA+C,OACnD,CACJ,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(\"jsx_and_tsx\", {\n plugins: [\"validate-jsx-nesting\"],\n rules: {\n \"validate-jsx-nesting/no-invalid-jsx-nesting\": \"error\",\n },\n});\n\nexport default config;\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
require('../../chunk-5RAVHY5O.js');
|
|
4
|
-
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
5
|
-
|
|
6
|
-
global.hasAnolilabEsLintVitestGlobalsPlugin||(global.hasAnolilabEsLintVitestGlobalsPlugin=packageJsonUtils.hasDependency("eslint-plugin-vitest-globals")||packageJsonUtils.hasDevDependency("eslint-plugin-vitest-globals"));var t=["plugin:vitest/recommended","plugin:vitest/all"];global.hasAnolilabEsLintVitestGlobalsPlugin&&t.push("plugin:vitest-globals/recommended");var i={overrides:[{extends:t,files:["**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"],plugins:["vitest"],rules:{"vitest/max-expects":"off","vitest/no-hooks":"off","vitest/no-mocks-import":"off","vitest/no-restricted-vi-methods":"off","vitest/no-standalone-expect":"error","vitest/valid-expect":["error",{alwaysAwait:!0,maxArgs:2,minArgs:1}]}}]},o=i;
|
|
7
|
-
|
|
8
|
-
module.exports = o;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=vitest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/vitest.ts"],"names":["hasDependency","hasDevDependency","plugins","config","vitest_default"],"mappings":"gCAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAG3C,OAAO,uCACR,OAAO,qCAAuCD,EAAc,8BAA8B,GAAKC,EAAiB,8BAA8B,GAGlJ,IAAMC,EAAU,CAAC,4BAA6B,mBAAmB,EAE7D,OAAO,sCACPA,EAAQ,KAAK,mCAAmC,EAGpD,IAAMC,EAAwB,CAC1B,UAAW,CACP,CACI,QAASD,EACT,MAAO,CAAC,oCAAqC,qCAAqC,EAClF,QAAS,CAAC,QAAQ,EAElB,MAAO,CAIH,qBAAsB,MAItB,kBAAmB,MAInB,yBAA0B,MAI1B,kCAAmC,MAInC,8BAA+B,QAI/B,sBAAuB,CAAC,QAAS,CAAE,YAAa,GAAM,QAAS,EAAG,QAAS,CAAE,CAAC,CAClF,CACJ,CACJ,CACJ,EAEOE,EAAQD","sourcesContent":["import { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nif (!global.hasAnolilabEsLintVitestGlobalsPlugin) {\n global.hasAnolilabEsLintVitestGlobalsPlugin = hasDependency(\"eslint-plugin-vitest-globals\") || hasDevDependency(\"eslint-plugin-vitest-globals\");\n}\n\nconst plugins = [\"plugin:vitest/recommended\", \"plugin:vitest/all\"];\n\nif (global.hasAnolilabEsLintVitestGlobalsPlugin) {\n plugins.push(\"plugin:vitest-globals/recommended\");\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n extends: plugins,\n files: [\"**/__tests__/**/*.?(c|m)[jt]s?(x)\", \"**/?(*.){test,spec}.?(c|m)[jt]s?(x)\"],\n plugins: [\"vitest\"],\n // TODO: transform all rules to error\n rules: {\n // Enforce a maximum number of expect per test\n // https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md\n // This rule should be set on the root config\n \"vitest/max-expects\": \"off\",\n\n // Enforce valid expect() usage\n // https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md\n \"vitest/no-hooks\": \"off\",\n\n // Disallow setup and teardown hooks\n // https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-mocks-import.md\n \"vitest/no-mocks-import\": \"off\",\n\n // Disallow importing from mocks directory\n // https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-vi-methods.md\n \"vitest/no-restricted-vi-methods\": \"off\",\n\n // Disallow specific vi. methods\n // https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-standalone-expect.md\n \"vitest/no-standalone-expect\": \"error\",\n\n // Disallow using expect outside of it or test blocks\n // https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-expect.md\n \"vitest/valid-expect\": [\"error\", { alwaysAwait: true, maxArgs: 2, minArgs: 1 }],\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkR26SPKXH_js = require('../../chunk-R26SPKXH.js');
|
|
4
|
-
require('../../chunk-WW4PDMXQ.js');
|
|
5
|
-
require('../../chunk-5RAVHY5O.js');
|
|
6
|
-
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
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",chunkR26SPKXH_js.a],"spaced-comment":"off"}}]},o=t;
|
|
9
|
-
|
|
10
|
-
module.exports = o;
|
|
11
|
-
//# sourceMappingURL=out.js.map
|
|
12
|
-
//# sourceMappingURL=yml.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,YAAa,UAAU,EAC/B,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,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
|
|
4
|
-
require('../../chunk-5RAVHY5O.js');
|
|
5
|
-
|
|
6
|
-
var o=chunkWG6GTAIA_js.a("all",{extends:["plugin:you-dont-need-lodash-underscore/compatible"]}),n=o;
|
|
7
|
-
|
|
8
|
-
module.exports = n;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=you-dont-need-lodash-underscore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/you-dont-need-lodash-underscore.ts"],"names":["config","createConfig","you_dont_need_lodash_underscore_default"],"mappings":"4EAIA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,mDAAmD,CACjE,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\nconst config: Linter.Config = createConfig(\"all\", {\n extends: [\"plugin:you-dont-need-lodash-underscore/compatible\"],\n});\n\nexport default config;\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
|
|
4
|
-
require('../../chunk-5RAVHY5O.js');
|
|
5
|
-
|
|
6
|
-
var n=chunkWG6GTAIA_js.a("all",{extends:["plugin:you-dont-need-momentjs/recommended"]}),t=n;
|
|
7
|
-
|
|
8
|
-
module.exports = t;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=you-dont-need-momentjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/you-dont-need-momentjs.ts"],"names":["config","createConfig","you_dont_need_momentjs_default"],"mappings":"4EAIA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,2CAA2C,CACzD,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\nconst config: Linter.Config = createConfig(\"all\", {\n extends: [\"plugin:you-dont-need-momentjs/recommended\"],\n});\n\nexport default config;\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
|
|
4
|
-
require('../../chunk-5RAVHY5O.js');
|
|
5
|
-
|
|
6
|
-
var e=chunkWG6GTAIA_js.a("all",{plugins:["zod"],rules:{"zod/prefer-enum":"error","zod/require-strict":"error"}}),t=e;
|
|
7
|
-
|
|
8
|
-
module.exports = t;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=zod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/zod.ts"],"names":["config","createConfig","zod_default"],"mappings":"4EAIA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,KAAK,EACf,MAAO,CACH,kBAAmB,QACnB,qBAAsB,OAC1B,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\nconst config: Linter.Config = createConfig(\"all\", {\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.d.ts
DELETED
package/dist/config/style.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkUGG52B5H_js = require('../chunk-UGG52B5H.js');
|
|
4
|
-
require('../chunk-R26SPKXH.js');
|
|
5
|
-
require('../chunk-WW4PDMXQ.js');
|
|
6
|
-
require('../chunk-WG6GTAIA.js');
|
|
7
|
-
require('../chunk-5RAVHY5O.js');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
module.exports = chunkUGG52B5H_js.a;
|
|
12
|
-
//# sourceMappingURL=out.js.map
|
|
13
|
-
//# sourceMappingURL=style.js.map
|
package/dist/config/style.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/dist/config/variables.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkSLM5UENV_js = require('../chunk-SLM5UENV.js');
|
|
4
|
-
require('../chunk-WG6GTAIA.js');
|
|
5
|
-
require('../chunk-5RAVHY5O.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
module.exports = chunkSLM5UENV_js.a;
|
|
10
|
-
//# sourceMappingURL=out.js.map
|
|
11
|
-
//# sourceMappingURL=variables.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/dist/define-config.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { defineConfig, defineFlatConfig } from 'eslint-define-config';
|