@anolilab/eslint-config 15.0.3 → 16.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 +26 -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 +89 -265
- 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/mdx.ts"],"names":["config","createConfig","mdx_default"],"mappings":"4EAKA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,wBAAwB,EAClC,OAAQ,aACR,cAAe,CACX,YAAa,QACjB,EACA,UAAW,aACX,MAAO,CACH,kCAAmC,MACnC,kCAAmC,MACnC,oCAAqC,MACrC,0CAA2C,MAC3C,qCAAsC,MAEtC,iBAAkB,MAElB,mBAAoB,MAEpB,oCAAqC,MACrC,uBAAwB,MACxB,eAAgB,MAChB,WAAY,MAEZ,aAAc,MACd,wBAAyB,MACzB,WAAY,MACZ,wBAAyB,MACzB,iBAAkB,MAClB,iBAAkB,MAElB,qBAAsB,MACtB,6BAA8B,MAE9B,sBAAuB,KAC3B,EACA,SAAU,CACN,kBAAmB,EACvB,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\n// @see https://github.com/mdx-js/eslint-mdx/tree/master/packages/eslint-plugin-mdx\nconst config: Linter.Config = createConfig(\"mdx\", {\n extends: [\"plugin:mdx/recommended\"],\n parser: \"eslint-mdx\",\n parserOptions: {\n ecmaVersion: \"latest\",\n },\n processor: \"mdx/remark\",\n rules: {\n \"@typescript-eslint/comma-dangle\": \"off\",\n \"@typescript-eslint/no-redeclare\": \"off\",\n \"@typescript-eslint/no-unused-vars\": \"off\",\n \"@typescript-eslint/no-use-before-define\": \"off\",\n \"@typescript-eslint/no-var-requires\": \"off\",\n\n \"global-require\": \"off\",\n\n \"import/namespace\": \"off\",\n\n \"import/no-extraneous-dependencies\": \"off\",\n \"import/no-unresolved\": \"off\",\n \"import/order\": \"off\",\n \"no-alert\": \"off\",\n\n \"no-console\": \"off\",\n \"no-restricted-imports\": \"off\",\n \"no-undef\": \"off\",\n \"no-unused-expressions\": \"off\",\n \"no-unused-vars\": \"off\",\n \"prefer-reflect\": \"off\",\n\n \"react/jsx-no-undef\": \"off\",\n \"react-hooks/rules-of-hooks\": \"off\",\n\n \"sonar/no-dead-store\": \"off\",\n },\n settings: {\n \"mdx/code-blocks\": true,\n },\n});\n\nexport default config;\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
require('../../chunk-5RAVHY5O.js');
|
|
4
|
-
|
|
5
|
-
var e={plugins:["no-use-extend-native"],rules:{"no-use-extend-native/no-use-extend-native":"error"}},n=e;
|
|
6
|
-
|
|
7
|
-
module.exports = n;
|
|
8
|
-
//# sourceMappingURL=out.js.map
|
|
9
|
-
//# sourceMappingURL=no-extend-native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/no-extend-native.ts"],"names":["config","no_extend_native_default"],"mappings":"gCAGA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,sBAAsB,EAChC,MAAO,CACH,4CAA6C,OACjD,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\n// @see https://github.com/dustinspecker/eslint-plugin-no-use-extend-native\nconst config: Linter.Config = {\n plugins: [\"no-use-extend-native\"],\n rules: {\n \"no-use-extend-native/no-use-extend-native\": \"error\",\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/no-loops.ts"],"names":["config","no_loops_default"],"mappings":"gCAGA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,UAAU,EACpB,MAAO,CACH,oBAAqB,CACzB,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\n// @see https://github.com/buildo/eslint-plugin-no-loops\nconst config: Linter.Config = {\n plugins: [\"no-loops\"],\n rules: {\n \"no-loops/no-loops\": 2,\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 e=(process.env.VSCODE_PID||process.env.JETBRAINS_IDE)&&!process.env.CI,t=e;var s=chunkWG6GTAIA_js.a("tests",{plugins:["no-only-tests"],rules:{"no-only-tests/no-only-tests":t?"off":"error"}}),f=s;
|
|
7
|
-
|
|
8
|
-
module.exports = f;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=no-only-tests.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/is-in-editor.ts","../../../src/config/plugins/no-only-tests.ts"],"names":["isInEditor","is_in_editor_default","config","createConfig","no_only_tests_default"],"mappings":"4EAAA,IAAMA,GAAc,QAAQ,IAAI,YAAiB,QAAQ,IAAI,gBAAqB,CAAC,QAAQ,IAAI,GAExFC,EAAQD,ECIf,IAAME,EAAwBC,EAAa,QAAS,CAChD,QAAS,CAAC,eAAe,EACzB,MAAO,CACH,8BAA+BF,EAAa,MAAQ,OACxD,CACJ,CAAC,EAEMG,EAAQF","sourcesContent":["const isInEditor = (process.env[\"VSCODE_PID\"] || process.env[\"JETBRAINS_IDE\"]) && !process.env[\"CI\"];\n\nexport default isInEditor;\n","import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\nimport isInEditor from \"../../utils/is-in-editor\";\n\n// @see https://github.com/francoismassart/eslint-plugin-tailwindcss,\nconst config: Linter.Config = createConfig(\"tests\", {\n plugins: [\"no-only-tests\"],\n rules: {\n \"no-only-tests/no-only-tests\": isInEditor ? \"off\" : \"error\",\n },\n});\n\nexport default config;\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
require('../../chunk-5RAVHY5O.js');
|
|
4
|
-
|
|
5
|
-
var e={overrides:[{excludedFiles:["package.json","**/package.json","package-lock.json","**/package-lock.json","tsconfig.json","**/tsconfig.json"],files:["*","*/**"],plugins:["no-secrets"],rules:{"no-secrets/no-secrets":"error"}}]},o=e;
|
|
6
|
-
|
|
7
|
-
module.exports = o;
|
|
8
|
-
//# sourceMappingURL=out.js.map
|
|
9
|
-
//# sourceMappingURL=no-secrets.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/no-secrets.ts"],"names":["config","no_secrets_default"],"mappings":"gCAGA,IAAMA,EAAwB,CAC1B,UAAW,CACP,CACI,cAAe,CAAC,eAAgB,kBAAmB,oBAAqB,uBAAwB,gBAAiB,kBAAkB,EACnI,MAAO,CAAC,IAAK,MAAM,EACnB,QAAS,CAAC,YAAY,EACtB,MAAO,CACH,wBAAyB,OAC7B,CACJ,CACJ,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\n// @see https://github.com/nickdeis/eslint-plugin-no-secrets\nconst config: Linter.Config = {\n overrides: [\n {\n excludedFiles: [\"package.json\", \"**/package.json\", \"package-lock.json\", \"**/package-lock.json\", \"tsconfig.json\", \"**/tsconfig.json\"],\n files: [\"*\", \"*/**\"],\n plugins: [\"no-secrets\"],\n rules: {\n \"no-secrets/no-secrets\": \"error\",\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
require('../../chunk-5RAVHY5O.js');
|
|
4
|
-
|
|
5
|
-
var n={plugins:["no-unsanitized"],rules:{"no-unsanitized/method":"error","no-unsanitized/property":"error"}},e=n;
|
|
6
|
-
|
|
7
|
-
module.exports = e;
|
|
8
|
-
//# sourceMappingURL=out.js.map
|
|
9
|
-
//# sourceMappingURL=no-unsanitized.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/no-unsanitized.ts"],"names":["config","no_unsanitized_default"],"mappings":"gCAGA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,gBAAgB,EAC1B,MAAO,CACH,wBAAyB,QACzB,0BAA2B,OAC/B,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\n// @see https://github.com/mozilla/eslint-plugin-no-unsanitized\nconst config: Linter.Config = {\n plugins: [\"no-unsanitized\"],\n rules: {\n \"no-unsanitized/method\": \"error\",\n \"no-unsanitized/property\": \"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
|
-
if(global.anolilabEslintConfigNodeRules===void 0&&packageJsonUtils.pkg?.engines?.node){let n=packageJsonUtils.pkg.engines.node;global.anolilabEslintConfigNodeRules={"n/no-unsupported-features/es-builtins":["error",{version:n}],"n/no-unsupported-features/es-syntax":["error",{ignores:["modules"],version:n}],"n/no-unsupported-features/node-builtins":["error",{version:n}]};}var o={env:{node:!0},extends:["plugin:n/recommended"],parserOptions:{ecmaVersion:2021},plugins:["n"],rules:{"global-require":"error","n/callback-return":"off","n/file-extension-in-import":"off","n/handle-callback-err":"off","n/no-extraneous-import":"off","n/no-extraneous-require":"off","n/no-missing-import":"off","n/no-missing-require":"off","n/no-mixed-requires":["error",{allowCall:!0,grouping:!0}],"n/no-new-require":"error","n/no-process-env":"off","n/no-process-exit":"off","n/no-restricted-modules":"off","n/no-sync":"off","n/no-unpublished-bin":"error","n/process-exit-as-throw":"error","no-buffer-constructor":"error","no-path-concat":"error",...global.anolilabEslintConfigNodeRules}},i=o;
|
|
7
|
-
|
|
8
|
-
module.exports = i;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/node.ts"],"names":["pkg","version","config","node_default"],"mappings":"gCAAA,OAAS,OAAAA,MAAW,+BAGpB,GAAI,OAAO,gCAAkC,QAAaA,GAAK,SAAU,KAAS,CAC9E,IAAMC,EAAkBD,EAAI,QAAQ,KAEpC,OAAO,8BAAgC,CACnC,wCAAyC,CAAC,QAAS,CAAE,QAAAC,CAAQ,CAAC,EAC9D,sCAAuC,CAAC,QAAS,CAAE,QAAS,CAAC,SAAS,EAAG,QAAAA,CAAQ,CAAC,EAClF,0CAA2C,CAAC,QAAS,CAAE,QAAAA,CAAQ,CAAC,CACpE,CACJ,CAGA,IAAMC,EAAwB,CAC1B,IAAK,CACD,KAAM,EACV,EACA,QAAS,CAAC,sBAAsB,EAChC,cAAe,CACX,YAAa,IACjB,EACA,QAAS,CAAC,GAAG,EACb,MAAO,CAEH,iBAAkB,QAElB,oBAAqB,MAIrB,6BAA8B,MAG9B,wBAAyB,MAGzB,yBAA0B,MAG1B,0BAA2B,MAI3B,sBAAuB,MAGvB,uBAAwB,MAIxB,sBAAuB,CACnB,QACA,CACI,UAAW,GACX,SAAU,EACd,CACJ,EAGA,mBAAoB,QAGpB,mBAAoB,MAIpB,oBAAqB,MAGrB,0BAA2B,MAI3B,YAAa,MAGb,uBAAwB,QAGxB,0BAA2B,QAG3B,wBAAyB,QAGzB,iBAAkB,QAElB,GAAG,OAAO,6BACd,CACJ,EAEOC,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nif (global.anolilabEslintConfigNodeRules === undefined && pkg?.engines?.[\"node\"]) {\n const version: string = pkg.engines[\"node\"];\n\n global.anolilabEslintConfigNodeRules = {\n \"n/no-unsupported-features/es-builtins\": [\"error\", { version }],\n \"n/no-unsupported-features/es-syntax\": [\"error\", { ignores: [\"modules\"], version }],\n \"n/no-unsupported-features/node-builtins\": [\"error\", { version }],\n };\n}\n\n// @see https://github.com/eslint-community/eslint-plugin-n\nconst config: Linter.Config = {\n env: {\n node: true,\n },\n extends: [\"plugin:n/recommended\"],\n parserOptions: {\n ecmaVersion: 2021,\n },\n plugins: [\"n\"],\n rules: {\n // https://eslint.org/docs/rules/global-require\n \"global-require\": \"error\",\n // enforce return after a callback\n \"n/callback-return\": \"off\",\n\n // enforce the style of file extensions in import declarations\n // This rule is buggy @see https://github.com/eslint-community/eslint-plugin-n/issues/21\n \"n/file-extension-in-import\": \"off\",\n\n // enforces error handling in callbacks (node environment)\n \"n/handle-callback-err\": \"off\",\n\n // Redundant with `import/no-extraneous-dependencies`.\n \"n/no-extraneous-import\": \"off\",\n\n // disallow require() expressions which import extraneous modules\n \"n/no-extraneous-require\": \"off\",\n\n // require all requires be top-level\n // Redundant with `import/no-unresolved`.\n \"n/no-missing-import\": \"off\", // This rule is also buggy and doesn't support `node:`.\n\n // disallow require() expressions which import non-existence modules\n \"n/no-missing-require\": \"off\",\n\n // disallow use of the Buffer() constructor\n // disallow mixing regular variable and require declarations\n \"n/no-mixed-requires\": [\n \"error\",\n {\n allowCall: true,\n grouping: true,\n },\n ],\n\n // disallow use of new operator with the require function\n \"n/no-new-require\": \"error\",\n\n // disallow use of process.env\n \"n/no-process-env\": \"off\",\n\n // disallow string concatenation with __dirname and __filename\n // unicorn/no-process-exit is enabled instead.\n \"n/no-process-exit\": \"off\",\n\n // restrict usage of specified node modules\n \"n/no-restricted-modules\": \"off\",\n\n // disallow process.exit()\n // disallow use of synchronous methods (off by default)\n \"n/no-sync\": \"off\",\n\n // disallow bin files that npm ignores\n \"n/no-unpublished-bin\": \"error\",\n\n // require that process.exit() expressions use the same code path as throw\n \"n/process-exit-as-throw\": \"error\",\n\n // https://eslint.org/docs/rules/no-buffer-constructor\n \"no-buffer-constructor\": \"error\",\n\n // https://eslint.org/docs/rules/no-path-concat\n \"no-path-concat\": \"error\",\n\n ...global.anolilabEslintConfigNodeRules,\n },\n};\n\nexport default config;\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkSEYYGHPU_js = require('../../chunk-SEYYGHPU.js');
|
|
4
|
-
var chunkWG6GTAIA_js = require('../../chunk-WG6GTAIA.js');
|
|
5
|
-
require('../../chunk-5RAVHY5O.js');
|
|
6
|
-
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
7
|
-
|
|
8
|
-
!global.hasAnolilabEsLintConfigPerfectionistTypescriptSortKeys&&(packageJsonUtils.hasDependency("eslint-plugin-typescript-sort-keys")||packageJsonUtils.hasDevDependency("eslint-plugin-typescript-sort-keys"))&&(global.hasAnolilabEsLintConfigPerfectionistTypescriptSortKeys=!0,chunkSEYYGHPU_js.b(`
|
|
9
|
-
Please remove "eslint-plugin-typescript-sort-keys" from your package.json, it conflicts with "eslint-plugin-perfectionist".
|
|
10
|
-
`));var s=chunkWG6GTAIA_js.b([{config:{extends:["plugin:perfectionist/recommended-natural"],plugins:["perfectionist"],rules:{"perfectionist/sort-imports":"off","perfectionist/sort-union-types":"off","perfectionist/sort-named-imports":"off","perfectionist/sort-named-exports":"off"}},type:"all"},{config:{rules:{"perfectionist/sort-classes":"off"}},type:"typescript"},{config:{rules:{"perfectionist/sort-objects":"off"}},type:"postcss"}]),f=s;
|
|
11
|
-
|
|
12
|
-
module.exports = f;
|
|
13
|
-
//# sourceMappingURL=out.js.map
|
|
14
|
-
//# sourceMappingURL=perfectionist.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/perfectionist.ts"],"names":["hasDependency","hasDevDependency","consoleLog","config","createConfigs","perfectionist_default"],"mappings":"wHAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAO5C,CAAC,OAAO,yDACPD,EAAc,oCAAoC,GAAKC,EAAiB,oCAAoC,KAE7G,OAAO,uDAAyD,GAEhEC,EAAW;AAAA;AAAA,CAAiI,GAIhJ,IAAMC,EAAwBC,EAAc,CACxC,CACI,OAAQ,CACJ,QAAS,CAAC,0CAA0C,EACpD,QAAS,CAAC,eAAe,EACzB,MAAO,CAEH,6BAA8B,MAE9B,iCAAkC,MAGlC,mCAAoC,MAEpC,mCAAoC,KACxC,CACJ,EACA,KAAM,KACV,EACA,CACI,OAAQ,CACJ,MAAO,CAEH,6BAA8B,KAClC,CACJ,EACA,KAAM,YACV,EACA,CACI,OAAQ,CACJ,MAAO,CACH,6BAA8B,KAClC,CACJ,EACA,KAAM,SACV,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["import { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nimport { createConfigs } from \"../../utils/create-config\";\nimport { consoleLog } from \"../../utils/loggers\";\n\nif (\n !global.hasAnolilabEsLintConfigPerfectionistTypescriptSortKeys &&\n (hasDependency(\"eslint-plugin-typescript-sort-keys\") || hasDevDependency(\"eslint-plugin-typescript-sort-keys\"))\n) {\n global.hasAnolilabEsLintConfigPerfectionistTypescriptSortKeys = true;\n\n consoleLog('\\nPlease remove \"eslint-plugin-typescript-sort-keys\" from your package.json, it conflicts with \"eslint-plugin-perfectionist\".\\n');\n}\n\n// @see https://github.com/azat-io/eslint-plugin-perfectionist\nconst config: Linter.Config = createConfigs([\n {\n config: {\n extends: [\"plugin:perfectionist/recommended-natural\"],\n plugins: [\"perfectionist\"],\n rules: {\n // Disabled because of sort-imports\n \"perfectionist/sort-imports\": \"off\",\n // Disabled because of @typescript-eslint/sort-type-constituents\n \"perfectionist/sort-union-types\": \"off\",\n\n // Disabled because of simple-import-sort/imports\n \"perfectionist/sort-named-imports\": \"off\",\n // Disabled because of simple-import-sort/exports\n \"perfectionist/sort-named-exports\": \"off\",\n },\n },\n type: \"all\",\n },\n {\n config: {\n rules: {\n // Disabled because of @typescript-eslint/member-ordering\n \"perfectionist/sort-classes\": \"off\",\n },\n },\n type: \"typescript\",\n },\n {\n config: {\n rules: {\n \"perfectionist/sort-objects\": \"off\",\n },\n },\n type: \"postcss\",\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.hasAnolilabEsLintConfigPlaywrightJest&&(packageJsonUtils.hasDependency("jest")||packageJsonUtils.hasDevDependency("jest")||packageJsonUtils.hasDevDependency("eslint-plugin-jest")||packageJsonUtils.hasDevDependency("eslint-plugin-jest")||packageJsonUtils.hasDevDependency("@types/jest")||packageJsonUtils.hasDevDependency("@types/jest"))&&(global.hasAnolilabEsLintConfigPlaywrightJest=!0);var s={env:{browser:!0,es6:!0,node:!0},overrides:[{extends:[global.hasAnolilabEsLintConfigPlaywrightJest?"plugin:playwright/jest-playwright":"plugin:playwright/recommended"],files:["**/e2e/**/*.test.{js,ts}"],rules:{"@typescript-eslint/no-empty-function":"off","@typescript-eslint/no-non-null-assertion":"off","@typescript-eslint/no-object-literal-type-assertion":"off"}}]},i=s;
|
|
7
|
-
|
|
8
|
-
module.exports = i;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=playwright.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/playwright.ts"],"names":["hasDependency","hasDevDependency","config","playwright_default"],"mappings":"gCAAA,OAAS,iBAAAA,EAAe,oBAAAC,MAAwB,+BAI5C,CAAC,OAAO,wCACPD,EAAc,MAAM,GACjBC,EAAiB,MAAM,GACvBA,EAAiB,oBAAoB,GACrCA,EAAiB,oBAAoB,GACrCA,EAAiB,aAAa,GAC9BA,EAAiB,aAAa,KAElC,OAAO,sCAAwC,IAInD,IAAMC,EAAwB,CAC1B,IAAK,CACD,QAAS,GACT,IAAK,GACL,KAAM,EACV,EACA,UAAW,CACP,CACI,QAAS,CAAC,OAAO,sCAAwC,oCAAsC,+BAA+B,EAE9H,MAAO,CAAC,0BAA0B,EAClC,MAAO,CACH,uCAAwC,MACxC,2CAA4C,MAC5C,sDAAuD,KAC3D,CACJ,CACJ,CACJ,EAEOC,EAAQD","sourcesContent":["import { hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nif (\n !global.hasAnolilabEsLintConfigPlaywrightJest &&\n (hasDependency(\"jest\") ||\n hasDevDependency(\"jest\") ||\n hasDevDependency(\"eslint-plugin-jest\") ||\n hasDevDependency(\"eslint-plugin-jest\") ||\n hasDevDependency(\"@types/jest\") ||\n hasDevDependency(\"@types/jest\"))\n) {\n global.hasAnolilabEsLintConfigPlaywrightJest = true;\n}\n\n// @see https://github.com/playwright-community/eslint-plugin-playwright\nconst config: Linter.Config = {\n env: {\n browser: true,\n es6: true,\n node: true,\n },\n overrides: [\n {\n extends: [global.hasAnolilabEsLintConfigPlaywrightJest ? \"plugin:playwright/jest-playwright\" : \"plugin:playwright/recommended\"],\n // To ensure best performance enable only on e2e test files\n files: [\"**/e2e/**/*.test.{js,ts}\"],\n rules: {\n \"@typescript-eslint/no-empty-function\": \"off\",\n \"@typescript-eslint/no-non-null-assertion\": \"off\",\n \"@typescript-eslint/no-object-literal-type-assertion\": \"off\",\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
require('../../chunk-5RAVHY5O.js');
|
|
4
|
-
|
|
5
|
-
var e={extends:["plugin:promise/recommended"],plugins:["promise"],rules:{"promise/prefer-await-to-callbacks":"off","promise/prefer-await-to-then":"off"}},o=e;
|
|
6
|
-
|
|
7
|
-
module.exports = o;
|
|
8
|
-
//# sourceMappingURL=out.js.map
|
|
9
|
-
//# sourceMappingURL=promise.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/promise.ts"],"names":["config","promise_default"],"mappings":"gCAGA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,4BAA4B,EACtC,QAAS,CAAC,SAAS,EACnB,MAAO,CACH,oCAAqC,MACrC,+BAAgC,KACpC,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\n// @see https://github.com/xjamundx/eslint-plugin-promise#readme\nconst config: Linter.Config = {\n extends: [\"plugin:promise/recommended\"],\n plugins: [\"promise\"],\n rules: {\n \"promise/prefer-await-to-callbacks\": \"off\",\n \"promise/prefer-await-to-then\": \"off\",\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("jsx_and_tsx",{parserOptions:{ecmaFeatures:{jsx:!0}},plugins:["react-hooks"],rules:{"react-hooks/exhaustive-deps":"error","react-hooks/rules-of-hooks":"error"}}),t=r;
|
|
7
|
-
|
|
8
|
-
module.exports = t;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=react-hooks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/react-hooks.ts"],"names":["config","createConfig","react_hooks_default"],"mappings":"4EAKA,IAAMA,EAAwBC,EAAa,cAAe,CACtD,cAAe,CACX,aAAc,CACV,IAAK,EACT,CACJ,EACA,QAAS,CAAC,aAAa,EACvB,MAAO,CAGH,8BAA+B,QAI/B,6BAA8B,OAClC,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\n// @see https://github.com/yannickcr/eslint-plugin-react\nconst config: Linter.Config = createConfig(\"jsx_and_tsx\", {\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n plugins: [\"react-hooks\"],\n rules: {\n // Enforce Rules of Hooks\n // https://github.com/facebook/react/blob/1204c789776cb01fbaf3e9f032e7e2ba85a44137/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js\n \"react-hooks/exhaustive-deps\": \"error\",\n\n // Verify the list of the dependencies for Hooks like useEffect and similar\n // https://github.com/facebook/react/blob/c11015ff4f610ac2924d1fc6d569a17657a404fd/packages/eslint-plugin-react-hooks/src/RulesOfHooks.js\n \"react-hooks/rules-of-hooks\": \"error\",\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("jsx_and_tsx",{extends:["plugin:react-redux/recommended"],plugins:["react-redux"],rules:{"react-redux/mapStateToProps-prefer-selectors":"off","react-redux/prefer-separate-component-file":"off"}}),o=r;
|
|
7
|
-
|
|
8
|
-
module.exports = o;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=react-redux.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/react-redux.ts"],"names":["config","createConfig","react_redux_default"],"mappings":"4EAKA,IAAMA,EAAwBC,EAAa,cAAe,CACtD,QAAS,CAAC,gCAAgC,EAC1C,QAAS,CAAC,aAAa,EACvB,MAAO,CACH,+CAAgD,MAChD,6CAA8C,KAClD,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\n// @see https://github.com/DianaSuvorova/eslint-plugin-react-redux#readme\nconst config: Linter.Config = createConfig(\"jsx_and_tsx\", {\n extends: [\"plugin:react-redux/recommended\"],\n plugins: [\"react-redux\"],\n rules: {\n \"react-redux/mapStateToProps-prefer-selectors\": \"off\",\n \"react-redux/prefer-separate-component-file\": \"off\",\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("jsx_and_tsx",{parserOptions:{ecmaFeatures:{jsx:!0}},plugins:["@arthurgeron/react-usememo"],rules:{"@arthurgeron/react-usememo/require-usememo":"error"}}),o=r;
|
|
7
|
-
|
|
8
|
-
module.exports = o;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=react-usememo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/react-usememo.ts"],"names":["config","createConfig","react_usememo_default"],"mappings":"4EAKA,IAAMA,EAAwBC,EAAa,cAAe,CACtD,cAAe,CACX,aAAc,CACV,IAAK,EACT,CACJ,EACA,QAAS,CAAC,4BAA4B,EACtC,MAAO,CACH,6CAA8C,OAClD,CACJ,CAAC,EAEMC,EAAQF","sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { createConfig } from \"../../utils/create-config\";\n\n// @see https://www.npmjs.com/package/@arthurgeron/eslint-plugin-react-usememo\nconst config: Linter.Config = createConfig(\"jsx_and_tsx\", {\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n plugins: [\"@arthurgeron/react-usememo\"],\n rules: {\n \"@arthurgeron/react-usememo/require-usememo\": \"error\",\n },\n});\n\nexport default config;\n"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkSEYYGHPU_js = require('../../chunk-SEYYGHPU.js');
|
|
4
|
-
var chunkUGG52B5H_js = require('../../chunk-UGG52B5H.js');
|
|
5
|
-
var chunkR26SPKXH_js = require('../../chunk-R26SPKXH.js');
|
|
6
|
-
var chunkWW4PDMXQ_js = require('../../chunk-WW4PDMXQ.js');
|
|
7
|
-
require('../../chunk-WG6GTAIA.js');
|
|
8
|
-
require('../../chunk-5RAVHY5O.js');
|
|
9
|
-
var process = require('process');
|
|
10
|
-
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
11
|
-
var d = require('find-up');
|
|
12
|
-
var semver = require('semver');
|
|
13
|
-
|
|
14
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
|
|
16
|
-
var d__default = /*#__PURE__*/_interopDefault(d);
|
|
17
|
-
|
|
18
|
-
var g=chunkUGG52B5H_js.a.overrides[0].rules,s=g["no-underscore-dangle"];!global.hasAnolilabEsLintConfigPrettier&&(packageJsonUtils.hasDependency("prettier")||packageJsonUtils.hasDevDependency("prettier"))&&(global.hasAnolilabEsLintConfigPrettier=!0);global.anolilabEslintConfigReactPrettierRules===void 0&&global.hasAnolilabEsLintConfigPrettier&&(global.anolilabEslintConfigReactPrettierRules={"react/jsx-child-element-spacing":"off","react/jsx-closing-bracket-location":"off","react/jsx-closing-tag-location":"off","react/jsx-curly-newline":"off","react/jsx-curly-spacing":"off","react/jsx-equals-spacing":"off","react/jsx-first-prop-new-line":"off","react/jsx-indent":"off","react/jsx-indent-props":"off","react/jsx-max-props-per-line":"off","react/jsx-newline":"off","react/jsx-one-expression-per-line":"off","react/jsx-props-no-multi-spaces":"off","react/jsx-tag-spacing":"off","react/jsx-wrap-multilines":"off"});var c=(()=>{if(!global.hasAnolilabEsLintConfigReactRuntimePath){let e=typeof d__default.default.sync("node_modules/react/jsx-runtime.js")=="string",o=process.env.DISABLE_INFO_ON_DISABLING_JSX_REACT_RULE!=="true";o&&chunkWW4PDMXQ_js.a.info_on_disabling_jsx_react_rule!==void 0&&(o=chunkWW4PDMXQ_js.a.info_on_disabling_jsx_react_rule),o&&e&&chunkSEYYGHPU_js.b(`
|
|
19
|
-
@anolilab/eslint-config found react jsx-runtime.
|
|
20
|
-
|
|
21
|
-
Following rules are disabled: "react/jsx-uses-react" and "react/react-in-jsx-scope".
|
|
22
|
-
If you dont use the new react jsx-runtime in you project, please enable it manually.
|
|
23
|
-
`),global.hasAnolilabEsLintConfigReactRuntimePath=e;}return global.hasAnolilabEsLintConfigReactRuntimePath})();if(!global.anolilabEslintConfigReactVersion){let r=packageJsonUtils.getPackageSubProperty("dependencies")("react");if(r===void 0&&(r=packageJsonUtils.getPackageSubProperty("devDependencies")("react")),r!==void 0){let e=semver.parse(r);e!==null&&(global.anolilabEslintConfigReactVersion=`${e.major}.${e.minor}`);}}global.anolilabEslintConfigReactVersion!==void 0&&chunkWW4PDMXQ_js.a.info_on_found_react_version!==!1&&chunkSEYYGHPU_js.b(`
|
|
24
|
-
@anolilab/eslint-config found the version ${global.anolilabEslintConfigReactVersion} of react in your dependencies, this version ${global.anolilabEslintConfigReactVersion} will be used to setup the "eslint-plugin-react"
|
|
25
|
-
`);var x={overrides:[{env:{browser:!0},files:["**/*.jsx","**/*.tsx"],parserOptions:{ecmaFeatures:{jsx:!0}},plugins:["react"],rules:{"class-methods-use-this":["error",{exceptMethods:["render","getInitialState","getDefaultProps","getChildContext","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount","componentDidCatch","getSnapshotBeforeUpdate"]}],"jsx-quotes":["error","prefer-double"],"no-underscore-dangle":[s[0],{...s[1],allow:[...s[1].allow,"__REDUX_DEVTOOLS_EXTENSION_COMPOSE__"]}],"react/boolean-prop-naming":["off",{message:"",propTypeNames:["bool","mutuallyExclusiveTrueProps"],rule:"^(is|has)[A-Z]([A-Za-z0-9]?)+"}],"react/button-has-type":["error",{button:!0,reset:!1,submit:!0}],"react/default-props-match-prop-types":["error",{allowRequiredDefaults:!1}],"react/destructuring-assignment":["error","always"],"react/display-name":["off",{ignoreTranspilerName:!1}],"react/forbid-component-props":["off",{forbid:[]}],"react/forbid-dom-props":["off",{forbid:[]}],"react/forbid-elements":["off",{forbid:[]}],"react/forbid-foreign-prop-types":["warn",{allowInPropTypes:!0}],"react/forbid-prop-types":["error",{checkChildContextTypes:!0,checkContextTypes:!0,forbid:["any","array","object"]}],"react/function-component-definition":["error",{namedComponents:"arrow-function",unnamedComponents:"arrow-function"}],"react/jsx-boolean-value":["error","never",{always:[]}],"react/jsx-child-element-spacing":"off","react/jsx-closing-bracket-location":["error","line-aligned"],"react/jsx-curly-brace-presence":["error",{children:"never",props:"never"}],"react/jsx-curly-newline":["error",{multiline:"consistent",singleline:"consistent"}],"react/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"react/jsx-equals-spacing":["error","never"],"react/jsx-first-prop-new-line":["error","multiline-multiprop"],"react/jsx-fragments":["error","syntax"],"react/jsx-handler-names":["off",{eventHandlerPrefix:"handle",eventHandlerPropPrefix:"on"}],"react/jsx-indent":["error",chunkR26SPKXH_js.a,{checkAttributes:!0,indentLogicalExpressions:!0}],"react/jsx-indent-props":["error",chunkR26SPKXH_js.a],"react/jsx-key":"off","react/jsx-max-depth":"off","react/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"react/jsx-newline":"off","react/jsx-no-bind":["error",{allowArrowFunctions:!0,allowBind:!1,allowFunctions:!1,ignoreDOMComponents:!0,ignoreRefs:!0}],"react/jsx-no-comment-textnodes":"error","react/jsx-no-constructed-context-values":"error","react/jsx-no-duplicate-props":["error",{ignoreCase:!0}],"react/jsx-no-literals":["off",{noStrings:!0}],"react/jsx-no-script-url":["error",[{name:"Link",props:["to"]}]],"react/jsx-no-target-blank":["error",{enforceDynamicLinks:"always"}],"react/jsx-no-undef":"error","react/jsx-no-useless-fragment":"error","react/jsx-one-expression-per-line":["error",{allow:"single-child"}],"react/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],"react/jsx-props-no-multi-spaces":"error","react/jsx-props-no-spreading":["error",{custom:"enforce",exceptions:[],explicitSpread:"ignore",html:"enforce"}],"react/jsx-sort-props":"off","react/jsx-space-before-closing":["off","always"],"react/jsx-tag-spacing":["error",{afterOpening:"never",beforeClosing:"never",beforeSelfClosing:"always",closingSlash:"never"}],"react/jsx-uses-react":[c?"off":"error"],"react/jsx-uses-vars":"error","react/no-access-state-in-setstate":"error","react/no-adjacent-inline-elements":"error","react/no-array-index-key":"error","react/no-children-prop":"error","react/no-danger":"warn","react/no-danger-with-children":"error","react/no-deprecated":["error"],"react/no-did-mount-set-state":"off","react/no-did-update-set-state":"error","react/no-direct-mutation-state":"error","react/no-find-dom-node":"error","react/no-is-mounted":"error","react/no-multi-comp":"off","react/no-redundant-should-component-update":"error","react/no-render-return-value":"error","react/no-set-state":"off","react/no-string-refs":"error","react/no-this-in-sfc":"error","react/no-unescaped-entities":"error","react/no-unknown-property":"error","react/no-unsafe":"off","react/no-unused-prop-types":["error",{customValidators:[],skipShapeProps:!0}],"react/no-unused-state":"error","react/no-will-update-set-state":"error","react/prefer-es6-class":["error","always"],"react/prefer-read-only-props":"off","react/prefer-stateless-function":["error",{ignorePureComponents:!0}],"react/prop-types":["error",{customValidators:[],ignore:[],skipUndeclared:!1}],"react/react-in-jsx-scope":c?"off":"error","react/require-default-props":["error",{forbidDefaultForRequired:!0,functions:packageJsonUtils.hasDependency("typescript")||packageJsonUtils.hasDevDependency("typescript")?"defaultArguments":"defaultProps"}],"react/require-optimization":["off",{allowDecorators:[]}],"react/require-render-return":"error","react/self-closing-comp":"error","react/sort-comp":["error",{groups:{lifecycle:["displayName","propTypes","contextTypes","childContextTypes","mixins","statics","defaultProps","constructor","getDefaultProps","getInitialState","state","getChildContext","getDerivedStateFromProps","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","UNSAFE_componentWillUpdate","getSnapshotBeforeUpdate","componentDidUpdate","componentDidCatch","componentWillUnmount"],rendering:["/^render.+$/","render"]},order:["static-variables","static-methods","instance-variables","lifecycle","/^handle.+$/","/^on.+$/","getters","setters","/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/","instance-methods","everything-else","rendering"]}],"react/sort-default-props":["error",{ignoreCase:!0}],"react/sort-prop-types":["off",{callbacksLast:!1,ignoreCase:!0,requiredFirst:!1,sortShapeProp:!0}],"react/state-in-constructor":["error","always"],"react/static-property-placement":["error","property assignment"],"react/style-prop-object":"error","react/void-dom-elements-no-children":"error",...global.anolilabEslintConfigReactPrettierRules},settings:{propWrapperFunctions:["forbidExtraProps","exact","Object.freeze"],react:{version:global.anolilabEslintConfigReactVersion??"detect"}}},{files:["**/*.jsx"],parser:"@babel/eslint-parser",parserOptions:{ecmaFeatures:{jsx:!0}},settings:{extensions:[".jsx"]},rules:{"react/jsx-closing-tag-location":"error","react/jsx-filename-extension":"error","react/jsx-wrap-multilines":["error",{arrow:"parens-new-line",assignment:"parens-new-line",condition:"parens-new-line",declaration:"parens-new-line",logical:"parens-new-line",prop:"parens-new-line",return:"parens-new-line"}],"react/no-typos":"error"}},{files:["**/*.tsx"],rules:{"react/default-props-match-prop-types":"off","react/jsx-filename-extension":"off","react/prop-types":"off","react/require-default-props":"off"}},{files:["**/*.stories.{ts,tsx,mdx}"],rules:{"react/jsx-props-no-spreading":"off"}}]},E=x;
|
|
26
|
-
|
|
27
|
-
module.exports = E;
|
|
28
|
-
//# sourceMappingURL=out.js.map
|
|
29
|
-
//# sourceMappingURL=react.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/react.ts"],"names":["env","getPackageSubProperty","hasDependency","hasDevDependency","findUp","parse","styleRules","style_default","dangleRules","hasJsxRuntime","isFile","showLog","eslint_config_default","consoleLog","reactVersion","parsedVersion","config","indent_default","react_default"],"mappings":"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","sourcesContent":["// @see https://github.com/yannickcr/eslint-plugin-react\nimport { env } from \"node:process\";\n\nimport { getPackageSubProperty, hasDependency, hasDevDependency } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\nimport findUp from \"find-up\";\nimport { parse } from \"semver\";\n\nimport anolilabEslintConfig from \"../../utils/eslint-config\";\nimport indent from \"../../utils/indent\";\nimport { consoleLog } from \"../../utils/loggers\";\nimport styleConfig from \"../style\";\n\n// @ts-expect-error TODO: find the correct type\nconst styleRules = styleConfig.overrides[0].rules as Linter.RulesRecord;\nconst dangleRules = styleRules[\"no-underscore-dangle\"] as Linter.RuleEntry;\n\nif (!global.hasAnolilabEsLintConfigPrettier && (hasDependency(\"prettier\") || hasDevDependency(\"prettier\"))) {\n global.hasAnolilabEsLintConfigPrettier = true;\n}\n\nif (global.anolilabEslintConfigReactPrettierRules === undefined && global.hasAnolilabEsLintConfigPrettier) {\n global.anolilabEslintConfigReactPrettierRules = {\n \"react/jsx-child-element-spacing\": \"off\",\n \"react/jsx-closing-bracket-location\": \"off\",\n \"react/jsx-closing-tag-location\": \"off\",\n \"react/jsx-curly-newline\": \"off\",\n \"react/jsx-curly-spacing\": \"off\",\n \"react/jsx-equals-spacing\": \"off\",\n \"react/jsx-first-prop-new-line\": \"off\",\n \"react/jsx-indent\": \"off\",\n \"react/jsx-indent-props\": \"off\",\n \"react/jsx-max-props-per-line\": \"off\",\n \"react/jsx-newline\": \"off\",\n \"react/jsx-one-expression-per-line\": \"off\",\n \"react/jsx-props-no-multi-spaces\": \"off\",\n \"react/jsx-tag-spacing\": \"off\",\n \"react/jsx-wrap-multilines\": \"off\",\n };\n}\n\nconst hasJsxRuntime = (() => {\n // Workaround VS Code trying to run this file twice!\n if (!global.hasAnolilabEsLintConfigReactRuntimePath) {\n const reactPath = findUp.sync(\"node_modules/react/jsx-runtime.js\");\n const isFile = typeof reactPath === \"string\";\n\n let showLog: boolean = env[\"DISABLE_INFO_ON_DISABLING_JSX_REACT_RULE\"] !== \"true\";\n\n if (showLog && anolilabEslintConfig[\"info_on_disabling_jsx_react_rule\"] !== undefined) {\n showLog = anolilabEslintConfig[\"info_on_disabling_jsx_react_rule\"] as boolean;\n }\n\n if (showLog && isFile) {\n consoleLog(`\\n@anolilab/eslint-config found react jsx-runtime. \\n\n Following rules are disabled: \"react/jsx-uses-react\" and \"react/react-in-jsx-scope\".\n If you dont use the new react jsx-runtime in you project, please enable it manually.\\n`);\n }\n\n global.hasAnolilabEsLintConfigReactRuntimePath = isFile;\n }\n\n return global.hasAnolilabEsLintConfigReactRuntimePath;\n})();\n\nif (!global.anolilabEslintConfigReactVersion) {\n let reactVersion = getPackageSubProperty<string | undefined>(\"dependencies\")(\"react\");\n\n if (reactVersion === undefined) {\n reactVersion = getPackageSubProperty<string | undefined>(\"devDependencies\")(\"react\");\n }\n\n if (reactVersion !== undefined) {\n const parsedVersion = parse(reactVersion);\n\n if (parsedVersion !== null) {\n global.anolilabEslintConfigReactVersion = `${parsedVersion.major}.${parsedVersion.minor}`;\n }\n }\n}\n\nif (global.anolilabEslintConfigReactVersion !== undefined && anolilabEslintConfig[\"info_on_found_react_version\"] !== false) {\n consoleLog(\n `\\n@anolilab/eslint-config found the version ${global.anolilabEslintConfigReactVersion} of react in your dependencies, this version ${global.anolilabEslintConfigReactVersion} will be used to setup the \"eslint-plugin-react\"\\n`,\n );\n}\n\nconst config: Linter.Config = {\n overrides: [\n {\n env: {\n browser: true,\n },\n\n files: [\"**/*.jsx\", \"**/*.tsx\"],\n\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n\n plugins: [\"react\"],\n\n // https://github.com/yannickcr/eslint-plugin-react#list-of-supported-rules\n rules: {\n \"class-methods-use-this\": [\n \"error\",\n {\n exceptMethods: [\n \"render\",\n \"getInitialState\",\n \"getDefaultProps\",\n \"getChildContext\",\n \"componentWillMount\",\n \"UNSAFE_componentWillMount\",\n \"componentDidMount\",\n \"componentWillReceiveProps\",\n \"UNSAFE_componentWillReceiveProps\",\n \"shouldComponentUpdate\",\n \"componentWillUpdate\",\n \"UNSAFE_componentWillUpdate\",\n \"componentDidUpdate\",\n \"componentWillUnmount\",\n \"componentDidCatch\",\n \"getSnapshotBeforeUpdate\",\n ],\n },\n ],\n\n // Specify whether double or single quotes should be used in JSX attributes\n // https://eslint.org/docs/rules/jsx-quotes\n \"jsx-quotes\": [\"error\", \"prefer-double\"],\n\n \"no-underscore-dangle\": [\n (dangleRules as unknown[])[0] as Linter.RuleLevel,\n {\n ...((dangleRules as unknown[])[1] as Linter.RuleLevelAndOptions[]),\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-explicit-any\n allow: [...(dangleRules as any)[1].allow, \"__REDUX_DEVTOOLS_EXTENSION_COMPOSE__\"],\n },\n ],\n\n // Prevent missing displayName in a React component definition\n // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/boolean-prop-naming.md\n \"react/boolean-prop-naming\": [\n \"off\",\n {\n message: \"\",\n propTypeNames: [\"bool\", \"mutuallyExclusiveTrueProps\"],\n rule: \"^(is|has)[A-Z]([A-Za-z0-9]?)+\",\n },\n ],\n\n // Forbid certain propTypes (any, array, object)\n // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/button-has-type.md\n \"react/button-has-type\": [\n \"error\",\n {\n button: true,\n reset: false,\n submit: true,\n },\n ],\n\n // Forbid certain props on DOM Nodes\n // https://github.com/yannickcr/eslint-plugin-react/blob/9e13ae2c51e44872b45cc15bf1ac3a72105bdd0e/docs/rules/default-props-match-prop-types.md\n \"react/default-props-match-prop-types\": [\"error\", { allowRequiredDefaults: false }],\n\n // Enforce boolean attributes notation in JSX\n // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/destructuring-assignment.md\n \"react/destructuring-assignment\": [\"error\", \"always\"],\n\n // Validate closing bracket location in JSX\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/display-name.md\n \"react/display-name\": [\"off\", { ignoreTranspilerName: false }],\n\n // Enforce or disallow spaces inside curly braces in JSX attributes\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-component-props.md\n \"react/forbid-component-props\": [\"off\", { forbid: [] }],\n\n // Enforce event handler naming conventions in JSX\n // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/forbid-dom-props.md\n \"react/forbid-dom-props\": [\"off\", { forbid: [] }],\n\n // Validate props indentation in JSX\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-elements.md\n \"react/forbid-elements\": [\"off\", { forbid: [] }],\n\n // Validate JSX has key prop when in array or iterator\n // but it's only critical if you're stripping propTypes in production.\n \"react/forbid-foreign-prop-types\": [\"warn\", { allowInPropTypes: true }],\n\n // Limit maximum of props on a single line in JSX\n // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/forbid-prop-types.md\n \"react/forbid-prop-types\": [\n \"error\",\n {\n checkChildContextTypes: true,\n checkContextTypes: true,\n forbid: [\"any\", \"array\", \"object\"],\n },\n ],\n\n // Prevent usage of .bind() in JSX props\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/function-component-definition.md\n \"react/function-component-definition\": [\n \"error\",\n {\n namedComponents: \"arrow-function\",\n unnamedComponents: \"arrow-function\",\n },\n ],\n\n // Prevent duplicate props in JSX\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-boolean-value.md\n \"react/jsx-boolean-value\": [\"error\", \"never\", { always: [] }],\n\n // Prevent usage of unwrapped JSX strings\n // Ensures inline tags are not rendered without spaces between them\n \"react/jsx-child-element-spacing\": \"off\",\n\n // Disallow undeclared variables in JSX\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-bracket-location.md\n \"react/jsx-closing-bracket-location\": [\"error\", \"line-aligned\"],\n\n // Enforce PascalCase for user-defined JSX components\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-brace-presence.md\n \"react/jsx-curly-brace-presence\": [\"error\", { children: \"never\", props: \"never\" }],\n\n // Enforce propTypes declarations alphabetical sorting\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-newline.md\n \"react/jsx-curly-newline\": [\n \"error\",\n {\n multiline: \"consistent\",\n singleline: \"consistent\",\n },\n ],\n\n // Enforce props alphabetical sorting\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md\n \"react/jsx-curly-spacing\": [\"error\", \"never\", { allowMultiline: true }],\n\n // Prevent React to be incorrectly marked as unused\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-equals-spacing.md\n \"react/jsx-equals-spacing\": [\"error\", \"never\"],\n\n // Prevent variables used in JSX to be incorrectly marked as unused\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-first-prop-new-line.md\n \"react/jsx-first-prop-new-line\": [\"error\", \"multiline-multiprop\"],\n\n // Prevent usage of dangerous JSX properties\n // https://github.com/yannickcr/eslint-plugin-react/blob/bc976b837abeab1dffd90ac6168b746a83fc83cc/docs/rules/jsx-fragments.md\n \"react/jsx-fragments\": [\"error\", \"syntax\"],\n\n // Prevent usage of deprecated methods\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-handler-names.md\n \"react/jsx-handler-names\": [\n \"off\",\n {\n eventHandlerPrefix: \"handle\",\n eventHandlerPropPrefix: \"on\",\n },\n ],\n\n // Prevent usage of setState in componentWillUpdate\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-indent.md\n \"react/jsx-indent\": [\"error\", indent, { checkAttributes: true, indentLogicalExpressions: true }],\n\n // Prevent direct mutation of this.state\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-indent-props.md\n \"react/jsx-indent-props\": [\"error\", indent],\n\n // Prevent usage of isMounted\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-key.md\n \"react/jsx-key\": \"off\",\n\n // Prevent multiple component definition per file\n // https://github.com/yannickcr/eslint-plugin-react/blob/abe8381c0d6748047224c430ce47f02e40160ed0/docs/rules/jsx-max-depth.md\n \"react/jsx-max-depth\": \"off\",\n\n // Prevent usage of setState\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-max-props-per-line.md\n \"react/jsx-max-props-per-line\": [\"error\", { maximum: 1, when: \"multiline\" }],\n\n // Prevent using string references\n // https://github.com/yannickcr/eslint-plugin-react/blob/e2eaadae316f9506d163812a09424eb42698470a/docs/rules/jsx-newline.md\n \"react/jsx-newline\": \"off\",\n\n // Prevent usage of unknown DOM property\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md\n \"react/jsx-no-bind\": [\n \"error\",\n {\n allowArrowFunctions: true,\n allowBind: false,\n allowFunctions: false,\n ignoreDOMComponents: true,\n ignoreRefs: true,\n },\n ],\n\n // Require ES6 class declarations over React.createClass\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-comment-textnodes.md\n \"react/jsx-no-comment-textnodes\": \"error\",\n\n // Require stateless functions when not using lifecycle methods, setState or ref\n // https://github.com/yannickcr/eslint-plugin-react/blob/e2eaadae316f9506d163812a09424eb42698470a/docs/rules/jsx-no-constructed-context-values.md\n \"react/jsx-no-constructed-context-values\": \"error\",\n\n // Prevent missing props validation in a React component definition\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md\n \"react/jsx-no-duplicate-props\": [\"error\", { ignoreCase: true }],\n\n // Prevent missing React when using JSX\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-literals.md\n \"react/jsx-no-literals\": [\"off\", { noStrings: true }],\n\n // Require render() methods to return something\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-script-url.md\n \"react/jsx-no-script-url\": [\n \"error\",\n [\n {\n name: \"Link\",\n props: [\"to\"],\n },\n ],\n ],\n\n // Prevent extra closing tags for components without children\n // https://github.com/yannickcr/eslint-plugin-react/blob/ac102885765be5ff37847a871f239c6703e1c7cc/docs/rules/jsx-no-target-blank.md\n \"react/jsx-no-target-blank\": [\"error\", { enforceDynamicLinks: \"always\" }],\n\n // Enforce defaultProps declarations alphabetical sorting\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-undef.md\n \"react/jsx-no-undef\": \"error\",\n\n // Enforce component methods order\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-useless-fragment.md\n \"react/jsx-no-useless-fragment\": \"error\",\n\n // Require that the first prop in a JSX element be on a new line when the element is multiline\n // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/jsx-one-expression-per-line.md\n \"react/jsx-one-expression-per-line\": [\"error\", { allow: \"single-child\" }],\n\n // Enforce spacing around jsx equals signs\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-pascal-case.md\n \"react/jsx-pascal-case\": [\n \"error\",\n {\n allowAllCaps: true,\n ignore: [],\n },\n ],\n\n // Enforce JSX indentation\n // https://github.com/yannickcr/eslint-plugin-react/blob/ac102885765be5ff37847a871f239c6703e1c7cc/docs/rules/jsx-props-no-multi-spaces.md\n \"react/jsx-props-no-multi-spaces\": \"error\",\n\n // Prevent usage of setState in componentDidMount\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-did-mount-set-state.md\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-props-no-spreading.md\n \"react/jsx-props-no-spreading\": [\n \"error\",\n {\n custom: \"enforce\",\n exceptions: [],\n explicitSpread: \"ignore\",\n html: \"enforce\",\n },\n ],\n\n // Prevent usage of setState in componentDidUpdate\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md\n \"react/jsx-sort-props\": \"off\",\n\n // Disallow target=\"_blank\" on links\n // Deprecated in favor of jsx-tag-spacing\n \"react/jsx-space-before-closing\": [\"off\", \"always\"],\n\n // prevent accidental JS comments from being injected into JSX as text\n // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/jsx-tag-spacing.md\n \"react/jsx-tag-spacing\": [\n \"error\",\n {\n afterOpening: \"never\",\n beforeClosing: \"never\",\n beforeSelfClosing: \"always\",\n closingSlash: \"never\",\n },\n ],\n\n // disallow using React.render/ReactDOM.render's return value\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-uses-react.md\n \"react/jsx-uses-react\": [hasJsxRuntime ? \"off\" : \"error\"],\n\n // require a shouldComponentUpdate method, or PureRenderMixin\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-uses-vars.md\n \"react/jsx-uses-vars\": \"error\",\n\n // warn against using findDOMNode()\n // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/no-access-state-in-setstate.md\n \"react/no-access-state-in-setstate\": \"error\",\n\n // Forbid certain props on Components\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-adjacent-inline-elements.md\n \"react/no-adjacent-inline-elements\": \"error\",\n\n // Forbid certain elements\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-array-index-key.md\n \"react/no-array-index-key\": \"error\",\n\n // Prevent problem with children and props.dangerouslySetInnerHTML\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-children-prop.md\n \"react/no-children-prop\": \"error\",\n\n // Prevent unused propType definitions\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-danger.md\n \"react/no-danger\": \"warn\",\n\n // Require style prop value be an object or var\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-danger-with-children.md\n \"react/no-danger-with-children\": \"error\",\n\n // Prevent invalid characters from appearing in markup\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-deprecated.md\n \"react/no-deprecated\": [\"error\"],\n\n // Prevent passing of children as props\n // this is necessary for server-rendering\n \"react/no-did-mount-set-state\": \"off\",\n\n // Validate whitespace in and around the JSX opening and closing brackets\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-did-update-set-state.md\n \"react/no-did-update-set-state\": \"error\",\n\n // Enforce spaces before the closing bracket of self-closing JSX elements\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-space-before-closing.md\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-direct-mutation-state.md\n \"react/no-direct-mutation-state\": \"error\",\n\n // Prevent usage of Array index in keys\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-find-dom-node.md\n \"react/no-find-dom-node\": \"error\",\n\n // Enforce a defaultProps definition for every prop that is not a required prop\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-is-mounted.md\n \"react/no-is-mounted\": \"error\",\n\n // Forbids using non-exported propTypes\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-foreign-prop-types.md\n // this is intentionally set to \"warn\". it would be \"error\",\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-multi-comp.md\n \"react/no-multi-comp\": \"off\",\n\n // Prevent void DOM elements from receiving children\n // https://github.com/yannickcr/eslint-plugin-react/blob/9e13ae2c51e44872b45cc15bf1ac3a72105bdd0e/docs/rules/no-redundant-should-component-update.md\n \"react/no-redundant-should-component-update\": \"error\",\n\n // Enforce all defaultProps have a corresponding non-required PropType\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-render-return-value.md\n \"react/no-render-return-value\": \"error\",\n\n // Prevent usage of shouldComponentUpdate when extending React.PureComponent\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-set-state.md\n \"react/no-set-state\": \"off\",\n\n // Prevent unused state values\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-string-refs.md\n \"react/no-string-refs\": \"error\",\n\n // Enforces consistent naming for boolean props\n // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/no-this-in-sfc.md\n \"react/no-this-in-sfc\": \"error\",\n\n // Enforce curly braces or disallow unnecessary curly braces in JSX props and/or children\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unescaped-entities.md\n \"react/no-unescaped-entities\": \"error\",\n\n // One JSX Element Per Line\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unknown-property.md\n \"react/no-unknown-property\": \"error\",\n\n // Enforce consistent usage of destructuring assignment of props, state, and context\n // https://github.com/yannickcr/eslint-plugin-react/blob/157cc932be2cfaa56b3f5b45df6f6d4322a2f660/docs/rules/no-unsafe.md\n \"react/no-unsafe\": \"off\",\n\n // Prevent using this.state within a this.setState\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unused-prop-types.md\n \"react/no-unused-prop-types\": [\n \"error\",\n {\n customValidators: [],\n skipShapeProps: true,\n },\n ],\n\n // Prevent usage of button elements without an explicit type attribute\n // https://github.com/yannickcr/eslint-plugin-react/pull/1103/\n \"react/no-unused-state\": \"error\",\n\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-will-update-set-state.md\n \"react/no-will-update-set-state\": \"error\",\n\n // Prevent this from being used in stateless functional components\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-es6-class.md\n \"react/prefer-es6-class\": [\"error\", \"always\"],\n\n // Validate JSX maximum depth\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-read-only-props.md\n \"react/prefer-read-only-props\": \"off\",\n\n // Disallow multiple spaces between inline JSX props\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-stateless-function.md\n \"react/prefer-stateless-function\": [\"error\", { ignorePureComponents: true }],\n\n // Prevent usage of UNSAFE_ methods\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md\n \"react/prop-types\": [\n \"error\",\n {\n customValidators: [],\n ignore: [],\n skipUndeclared: false,\n },\n ],\n\n // Enforce shorthand or standard form for React fragments\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/react-in-jsx-scope.md\n \"react/react-in-jsx-scope\": hasJsxRuntime ? \"off\" : \"error\",\n\n // Enforce a defaultProps definition for every prop that is not a required prop\n // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/require-default-props.md\n \"react/require-default-props\": [\n \"error\",\n {\n forbidDefaultForRequired: true,\n functions: hasDependency(\"typescript\") || hasDevDependency(\"typescript\") ? \"defaultArguments\" : \"defaultProps\",\n },\n ],\n\n // Enforce state initialization style\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/state-in-constructor.md\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-optimization.md\n \"react/require-optimization\": [\"off\", { allowDecorators: [] }],\n\n // Enforces where React component static properties should be positioned\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/static-property-placement.md\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-render-return.md\n \"react/require-render-return\": \"error\",\n\n // Disallow JSX props spreading\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md\n \"react/self-closing-comp\": \"error\",\n\n // Enforce that props are read-only\n // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/sort-comp.md\n \"react/sort-comp\": [\n \"error\",\n {\n groups: {\n lifecycle: [\n \"displayName\",\n \"propTypes\",\n \"contextTypes\",\n \"childContextTypes\",\n \"mixins\",\n \"statics\",\n \"defaultProps\",\n \"constructor\",\n \"getDefaultProps\",\n \"getInitialState\",\n \"state\",\n \"getChildContext\",\n \"getDerivedStateFromProps\",\n \"componentWillMount\",\n \"UNSAFE_componentWillMount\",\n \"componentDidMount\",\n \"componentWillReceiveProps\",\n \"UNSAFE_componentWillReceiveProps\",\n \"shouldComponentUpdate\",\n \"componentWillUpdate\",\n \"UNSAFE_componentWillUpdate\",\n \"getSnapshotBeforeUpdate\",\n \"componentDidUpdate\",\n \"componentDidCatch\",\n \"componentWillUnmount\",\n ],\n rendering: [\"/^render.+$/\", \"render\"],\n },\n order: [\n \"static-variables\",\n \"static-methods\",\n \"instance-variables\",\n \"lifecycle\",\n \"/^handle.+$/\",\n \"/^on.+$/\",\n \"getters\",\n \"setters\",\n \"/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/\",\n \"instance-methods\",\n \"everything-else\",\n \"rendering\",\n ],\n },\n ],\n\n // Prevent usage of `javascript:` URLs\n // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/sort-default-props.md\n \"react/sort-default-props\": [\n \"error\",\n {\n ignoreCase: true,\n },\n ],\n\n // Disallow unnecessary fragments\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-prop-types.md\n \"react/sort-prop-types\": [\n \"off\",\n {\n callbacksLast: false,\n ignoreCase: true,\n requiredFirst: false,\n sortShapeProp: true,\n },\n ],\n\n // Prevent adjacent inline elements not separated by whitespace\n // TODO: set to \"never\" once @anolilab/babel-preset supports public class fields\n \"react/state-in-constructor\": [\"error\", \"always\"],\n\n // Enforce a specific function type for function components\n // TODO: set to \"static public field\" once @anolilab/babel-preset supports public class fields\n \"react/static-property-placement\": [\"error\", \"property assignment\"],\n\n // Enforce a new line after jsx elements and expressions\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/style-prop-object.md\n \"react/style-prop-object\": \"error\",\n\n // Prevent react contexts from taking non-stable values\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/void-dom-elements-no-children.md\n \"react/void-dom-elements-no-children\": \"error\",\n\n ...global.anolilabEslintConfigReactPrettierRules,\n },\n\n // View link below for react rules documentation\n settings: {\n propWrapperFunctions: [\n \"forbidExtraProps\", // https://www.npmjs.com/package/airbnb-prop-types\n \"exact\", // https://www.npmjs.com/package/prop-types-exact\n \"Object.freeze\", // https://tc39.github.io/ecma262/#sec-object.freeze\n ],\n react: {\n // The default value is \"detect\". Automatic detection works by loading the entire React library\n // into the linter's process, which is inefficient. It is recommended to specify the version\n // explicity.\n version: global.anolilabEslintConfigReactVersion ?? \"detect\",\n },\n },\n },\n {\n files: [\"**/*.jsx\"],\n parser: \"@babel/eslint-parser\",\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n settings: {\n extensions: [\".jsx\"],\n },\n rules: {\n // only .jsx files may have JSX\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-tag-location.md\n \"react/jsx-closing-tag-location\": \"error\",\n\n // Prevents common casing typos\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md\n \"react/jsx-filename-extension\": \"error\",\n\n // Validate closing tag location in JSX\n // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/jsx-wrap-multilines.md\n \"react/jsx-wrap-multilines\": [\n \"error\",\n {\n arrow: \"parens-new-line\",\n assignment: \"parens-new-line\",\n condition: \"parens-new-line\",\n declaration: \"parens-new-line\",\n logical: \"parens-new-line\",\n prop: \"parens-new-line\",\n return: \"parens-new-line\",\n },\n ],\n\n // Prevent missing parentheses around multilines JSX\n // https://github.com/yannickcr/eslint-plugin-react/blob/73abadb697034b5ccb514d79fb4689836fe61f91/docs/rules/no-typos.md\n \"react/no-typos\": \"error\",\n },\n },\n {\n files: [\"**/*.tsx\"],\n rules: {\n \"react/default-props-match-prop-types\": \"off\",\n // Disable JS specific rules\n \"react/jsx-filename-extension\": \"off\",\n \"react/prop-types\": \"off\",\n \"react/require-default-props\": \"off\",\n },\n },\n {\n // For performance run storybook/recommended on test files, not regular code\n files: [\"**/*.stories.{ts,tsx,mdx}\"],\n rules: {\n \"react/jsx-props-no-spreading\": \"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 r=chunkWG6GTAIA_js.a("all",{extends:["plugin:regexp/recommended"],plugins:["regexp"],rules:{"regexp/no-control-character":"error"}}),n=r;
|
|
7
|
-
|
|
8
|
-
module.exports = n;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=regexp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/regexp.ts"],"names":["config","createConfig","regexp_default"],"mappings":"4EAIA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,QAAS,CAAC,2BAA2B,EACrC,QAAS,CAAC,QAAQ,EAClB,MAAO,CAEH,8BAA+B,OACnC,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 extends: [\"plugin:regexp/recommended\"],\n plugins: [\"regexp\"],\n rules: {\n // disallow control characters\n \"regexp/no-control-character\": \"error\",\n },\n});\n\nexport default config;\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
require('../../chunk-5RAVHY5O.js');
|
|
4
|
-
|
|
5
|
-
var e={extends:["plugin:security/recommended"],plugins:["@rushstack/eslint-plugin-security"],rules:{"@rushstack/security/no-unsafe-regexp":process.env.TRUSTED_TOOL?"off":"warn"}},n=e;
|
|
6
|
-
|
|
7
|
-
module.exports = n;
|
|
8
|
-
//# sourceMappingURL=out.js.map
|
|
9
|
-
//# sourceMappingURL=security.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/security.ts"],"names":["config","security_default"],"mappings":"gCAEA,IAAMA,EAAwB,CAE1B,QAAS,CAAC,6BAA6B,EAEvC,QAAS,CAAC,mCAAmC,EAC7C,MAAO,CAIH,uCAAwC,QAAQ,IAAI,aAAkB,MAAQ,MAClF,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n // @see https://github.com/eslint-community/eslint-plugin-security\n extends: [\"plugin:security/recommended\"],\n // @see https://www.npmjs.com/package/@rushstack/eslint-plugin-security\n plugins: [\"@rushstack/eslint-plugin-security\"],\n rules: {\n // This is disabled for tools because, for example, it is a common and safe practice for a tool\n // to read a RegExp from a config file and use it to filter files paths.\n\n \"@rushstack/security/no-unsafe-regexp\": process.env[\"TRUSTED_TOOL\"] ? \"off\" : \"warn\",\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 e=chunkWG6GTAIA_js.a("all",{env:{es6:!0},parserOptions:{sourceType:"module"},plugins:["simple-import-sort"],rules:{"simple-import-sort/exports":"error","simple-import-sort/imports":"error"}}),t=e;
|
|
7
|
-
|
|
8
|
-
module.exports = t;
|
|
9
|
-
//# sourceMappingURL=out.js.map
|
|
10
|
-
//# sourceMappingURL=simple-import-sort.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/plugins/simple-import-sort.ts"],"names":["config","createConfig","simple_import_sort_default"],"mappings":"4EAIA,IAAMA,EAAwBC,EAAa,MAAO,CAC9C,IAAK,CAAE,IAAK,EAAK,EACjB,cAAe,CACX,WAAY,QAChB,EACA,QAAS,CAAC,oBAAoB,EAC9B,MAAO,CACH,6BAA8B,QAC9B,6BAA8B,OAClC,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 env: { es6: true },\n parserOptions: {\n sourceType: \"module\",\n },\n plugins: [\"simple-import-sort\"],\n rules: {\n \"simple-import-sort/exports\": \"error\",\n \"simple-import-sort/imports\": \"error\",\n },\n});\n\nexport default config;\n"]}
|