@anolilab/eslint-config 5.0.9 → 6.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 +32 -0
- package/README.md +226 -73
- package/dist/chunk-3XUVOUJE.mjs +5 -0
- package/dist/chunk-3XUVOUJE.mjs.map +1 -0
- package/dist/chunk-6E2RGUNG.js +7 -0
- package/dist/chunk-6E2RGUNG.js.map +1 -0
- package/dist/chunk-ARKJLBXP.js +7 -0
- package/dist/chunk-ARKJLBXP.js.map +1 -0
- package/dist/chunk-B7GQAMYJ.js +9 -0
- package/dist/chunk-B7GQAMYJ.js.map +1 -0
- package/dist/chunk-DJDHW6UR.mjs +5 -0
- package/dist/chunk-DJDHW6UR.mjs.map +1 -0
- package/dist/chunk-F6JHPR4L.mjs +7 -0
- package/dist/chunk-F6JHPR4L.mjs.map +1 -0
- package/dist/chunk-G7JIJH44.mjs +5 -0
- package/dist/chunk-G7JIJH44.mjs.map +1 -0
- package/dist/chunk-NO36P4BR.js +9 -0
- package/dist/chunk-NO36P4BR.js.map +1 -0
- package/dist/chunk-PCIKFIV2.js +7 -0
- package/dist/chunk-PCIKFIV2.js.map +1 -0
- package/dist/chunk-RWRS63WY.mjs +7 -0
- package/dist/chunk-RWRS63WY.mjs.map +1 -0
- package/dist/chunk-SV64EPVP.js +7 -0
- package/dist/chunk-SV64EPVP.js.map +1 -0
- package/dist/chunk-UJAIXHCQ.js +13 -0
- package/dist/chunk-UJAIXHCQ.js.map +1 -0
- package/dist/chunk-WDMF75TJ.mjs +5 -0
- package/dist/chunk-WDMF75TJ.mjs.map +1 -0
- package/dist/chunk-WSETOOIE.mjs +5 -0
- package/dist/chunk-WSETOOIE.mjs.map +1 -0
- package/dist/chunk-XND2BWC4.mjs +7 -0
- package/dist/chunk-XND2BWC4.mjs.map +1 -0
- package/dist/chunk-YMWD4DNM.js +8 -0
- package/dist/chunk-YMWD4DNM.js.map +1 -0
- package/dist/config/best-practices.d.ts +5 -0
- package/dist/config/best-practices.js +9 -0
- package/dist/config/best-practices.js.map +1 -0
- package/dist/config/best-practices.mjs +3 -0
- package/dist/config/best-practices.mjs.map +1 -0
- package/dist/config/errors.d.ts +5 -0
- package/dist/config/errors.js +9 -0
- package/dist/config/errors.js.map +1 -0
- package/dist/config/errors.mjs +3 -0
- package/dist/config/errors.mjs.map +1 -0
- package/dist/config/es6.d.ts +5 -0
- package/dist/config/es6.js +9 -0
- package/dist/config/es6.js.map +1 -0
- package/dist/config/es6.mjs +3 -0
- package/dist/config/es6.mjs.map +1 -0
- package/dist/config/plugins/antfu.d.ts +5 -0
- package/dist/config/plugins/antfu.js +10 -0
- package/dist/config/plugins/antfu.js.map +1 -0
- package/dist/config/plugins/antfu.mjs +8 -0
- package/dist/config/plugins/antfu.mjs.map +1 -0
- package/dist/config/plugins/array-func.d.ts +5 -0
- package/dist/config/plugins/array-func.js +9 -0
- package/dist/config/plugins/array-func.js.map +1 -0
- package/dist/config/plugins/array-func.mjs +7 -0
- package/dist/config/plugins/array-func.mjs.map +1 -0
- package/dist/config/plugins/ava.d.ts +5 -0
- package/dist/config/plugins/ava.js +7 -0
- package/dist/config/plugins/ava.js.map +1 -0
- package/dist/config/plugins/ava.mjs +5 -0
- package/dist/config/plugins/ava.mjs.map +1 -0
- package/dist/config/plugins/babel.d.ts +5 -0
- package/dist/config/plugins/babel.js +12 -0
- package/dist/config/plugins/babel.js.map +1 -0
- package/dist/config/plugins/babel.mjs +10 -0
- package/dist/config/plugins/babel.mjs.map +1 -0
- package/dist/config/plugins/compat.d.ts +5 -0
- package/dist/config/plugins/compat.js +7 -0
- package/dist/config/plugins/compat.js.map +1 -0
- package/dist/config/plugins/compat.mjs +5 -0
- package/dist/config/plugins/compat.mjs.map +1 -0
- package/dist/config/plugins/cypress.d.ts +5 -0
- package/dist/config/plugins/cypress.js +7 -0
- package/dist/config/plugins/cypress.js.map +1 -0
- package/dist/config/plugins/cypress.mjs +5 -0
- package/dist/config/plugins/cypress.mjs.map +1 -0
- package/dist/config/plugins/es.d.ts +5 -0
- package/dist/config/plugins/es.js +7 -0
- package/dist/config/plugins/es.js.map +1 -0
- package/dist/config/plugins/es.mjs +5 -0
- package/dist/config/plugins/es.mjs.map +1 -0
- package/dist/config/plugins/eslint-comments.d.ts +5 -0
- package/dist/config/plugins/eslint-comments.js +7 -0
- package/dist/config/plugins/eslint-comments.js.map +1 -0
- package/dist/config/plugins/eslint-comments.mjs +5 -0
- package/dist/config/plugins/eslint-comments.mjs.map +1 -0
- package/dist/config/plugins/html.d.ts +5 -0
- package/dist/config/plugins/html.js +7 -0
- package/dist/config/plugins/html.js.map +1 -0
- package/dist/config/plugins/html.mjs +5 -0
- package/dist/config/plugins/html.mjs.map +1 -0
- package/dist/config/plugins/import.d.ts +5 -0
- package/dist/config/plugins/import.js +9 -0
- package/dist/config/plugins/import.js.map +1 -0
- package/dist/config/plugins/import.mjs +3 -0
- package/dist/config/plugins/import.mjs.map +1 -0
- package/dist/config/plugins/jest-async.d.ts +5 -0
- package/dist/config/plugins/jest-async.js +7 -0
- package/dist/config/plugins/jest-async.js.map +1 -0
- package/dist/config/plugins/jest-async.mjs +5 -0
- package/dist/config/plugins/jest-async.mjs.map +1 -0
- package/dist/config/plugins/jest-dom.d.ts +5 -0
- package/dist/config/plugins/jest-dom.js +7 -0
- package/dist/config/plugins/jest-dom.js.map +1 -0
- package/dist/config/plugins/jest-dom.mjs +5 -0
- package/dist/config/plugins/jest-dom.mjs.map +1 -0
- package/dist/config/plugins/jest-formatting.d.ts +5 -0
- package/dist/config/plugins/jest-formatting.js +7 -0
- package/dist/config/plugins/jest-formatting.js.map +1 -0
- package/dist/config/plugins/jest-formatting.mjs +5 -0
- package/dist/config/plugins/jest-formatting.mjs.map +1 -0
- package/dist/config/plugins/jest.d.ts +5 -0
- package/dist/config/plugins/jest.js +7 -0
- package/dist/config/plugins/jest.js.map +1 -0
- package/dist/config/plugins/jest.mjs +5 -0
- package/dist/config/plugins/jest.mjs.map +1 -0
- package/dist/config/plugins/jsdoc.d.ts +5 -0
- package/dist/config/plugins/jsdoc.js +11 -0
- package/dist/config/plugins/jsdoc.js.map +1 -0
- package/dist/config/plugins/jsdoc.mjs +9 -0
- package/dist/config/plugins/jsdoc.mjs.map +1 -0
- package/dist/config/plugins/jsonc.d.ts +5 -0
- package/dist/config/plugins/jsonc.js +11 -0
- package/dist/config/plugins/jsonc.js.map +1 -0
- package/dist/config/plugins/jsonc.mjs +9 -0
- package/dist/config/plugins/jsonc.mjs.map +1 -0
- package/dist/config/plugins/jsx-a11y.d.ts +5 -0
- package/dist/config/plugins/jsx-a11y.js +7 -0
- package/dist/config/plugins/jsx-a11y.js.map +1 -0
- package/dist/config/plugins/jsx-a11y.mjs +5 -0
- package/dist/config/plugins/jsx-a11y.mjs.map +1 -0
- package/dist/config/plugins/lodash-fp.d.ts +5 -0
- package/dist/config/plugins/lodash-fp.js +7 -0
- package/dist/config/plugins/lodash-fp.js.map +1 -0
- package/dist/config/plugins/lodash-fp.mjs +5 -0
- package/dist/config/plugins/lodash-fp.mjs.map +1 -0
- package/dist/config/plugins/lodash.d.ts +5 -0
- package/dist/config/plugins/lodash.js +7 -0
- package/dist/config/plugins/lodash.js.map +1 -0
- package/dist/config/plugins/lodash.mjs +5 -0
- package/dist/config/plugins/lodash.mjs.map +1 -0
- package/dist/config/plugins/markdown.d.ts +5 -0
- package/dist/config/plugins/markdown.js +7 -0
- package/dist/config/plugins/markdown.js.map +1 -0
- package/dist/config/plugins/markdown.mjs +5 -0
- package/dist/config/plugins/markdown.mjs.map +1 -0
- package/dist/config/plugins/mdx.d.ts +5 -0
- package/dist/config/plugins/mdx.js +7 -0
- package/dist/config/plugins/mdx.js.map +1 -0
- package/dist/config/plugins/mdx.mjs +5 -0
- package/dist/config/plugins/mdx.mjs.map +1 -0
- package/dist/config/plugins/no-extend-native.d.ts +5 -0
- package/dist/config/plugins/no-extend-native.js +7 -0
- package/dist/config/plugins/no-extend-native.js.map +1 -0
- package/dist/config/plugins/no-extend-native.mjs +5 -0
- package/dist/config/plugins/no-extend-native.mjs.map +1 -0
- package/dist/config/plugins/no-loops.d.ts +5 -0
- package/dist/config/plugins/no-loops.js +7 -0
- package/dist/config/plugins/no-loops.js.map +1 -0
- package/dist/config/plugins/no-loops.mjs +5 -0
- package/dist/config/plugins/no-loops.mjs.map +1 -0
- package/dist/config/plugins/no-secrets.d.ts +5 -0
- package/dist/config/plugins/no-secrets.js +7 -0
- package/dist/config/plugins/no-secrets.js.map +1 -0
- package/dist/config/plugins/no-secrets.mjs +5 -0
- package/dist/config/plugins/no-secrets.mjs.map +1 -0
- package/dist/config/plugins/no-unsanitized.d.ts +5 -0
- package/dist/config/plugins/no-unsanitized.js +7 -0
- package/dist/config/plugins/no-unsanitized.js.map +1 -0
- package/dist/config/plugins/no-unsanitized.mjs +5 -0
- package/dist/config/plugins/no-unsanitized.mjs.map +1 -0
- package/dist/config/plugins/node.d.ts +5 -0
- package/dist/config/plugins/node.js +9 -0
- package/dist/config/plugins/node.js.map +1 -0
- package/dist/config/plugins/node.mjs +7 -0
- package/dist/config/plugins/node.mjs.map +1 -0
- package/dist/config/plugins/optimize-regex.d.ts +5 -0
- package/dist/config/plugins/optimize-regex.js +7 -0
- package/dist/config/plugins/optimize-regex.js.map +1 -0
- package/dist/config/plugins/optimize-regex.mjs +5 -0
- package/dist/config/plugins/optimize-regex.mjs.map +1 -0
- package/dist/config/plugins/promise.d.ts +5 -0
- package/dist/config/plugins/promise.js +7 -0
- package/dist/config/plugins/promise.js.map +1 -0
- package/dist/config/plugins/promise.mjs +5 -0
- package/dist/config/plugins/promise.mjs.map +1 -0
- package/dist/config/plugins/react-hooks.d.ts +5 -0
- package/dist/config/plugins/react-hooks.js +7 -0
- package/dist/config/plugins/react-hooks.js.map +1 -0
- package/dist/config/plugins/react-hooks.mjs +5 -0
- package/dist/config/plugins/react-hooks.mjs.map +1 -0
- package/dist/config/plugins/react-redux.d.ts +5 -0
- package/dist/config/plugins/react-redux.js +7 -0
- package/dist/config/plugins/react-redux.js.map +1 -0
- package/dist/config/plugins/react-redux.mjs +5 -0
- package/dist/config/plugins/react-redux.mjs.map +1 -0
- package/dist/config/plugins/react.d.ts +5 -0
- package/dist/config/plugins/react.js +21 -0
- package/dist/config/plugins/react.js.map +1 -0
- package/dist/config/plugins/react.mjs +15 -0
- package/dist/config/plugins/react.mjs.map +1 -0
- package/dist/config/plugins/security.d.ts +5 -0
- package/dist/config/plugins/security.js +7 -0
- package/dist/config/plugins/security.js.map +1 -0
- package/dist/config/plugins/security.mjs +5 -0
- package/dist/config/plugins/security.mjs.map +1 -0
- package/dist/config/plugins/simple-import-sort.d.ts +5 -0
- package/dist/config/plugins/simple-import-sort.js +7 -0
- package/dist/config/plugins/simple-import-sort.js.map +1 -0
- package/dist/config/plugins/simple-import-sort.mjs +5 -0
- package/dist/config/plugins/simple-import-sort.mjs.map +1 -0
- package/dist/config/plugins/sonarjs.d.ts +5 -0
- package/dist/config/plugins/sonarjs.js +7 -0
- package/dist/config/plugins/sonarjs.js.map +1 -0
- package/dist/config/plugins/sonarjs.mjs +5 -0
- package/dist/config/plugins/sonarjs.mjs.map +1 -0
- package/dist/config/plugins/sort-keys-fix.d.ts +5 -0
- package/dist/config/plugins/sort-keys-fix.js +7 -0
- package/dist/config/plugins/sort-keys-fix.js.map +1 -0
- package/dist/config/plugins/sort-keys-fix.mjs +5 -0
- package/dist/config/plugins/sort-keys-fix.mjs.map +1 -0
- package/dist/config/plugins/tailwindcss.d.ts +5 -0
- package/dist/config/plugins/tailwindcss.js +7 -0
- package/dist/config/plugins/tailwindcss.js.map +1 -0
- package/dist/config/plugins/tailwindcss.mjs +5 -0
- package/dist/config/plugins/tailwindcss.mjs.map +1 -0
- package/dist/config/plugins/testing-library.d.ts +5 -0
- package/dist/config/plugins/testing-library.js +10 -0
- package/dist/config/plugins/testing-library.js.map +1 -0
- package/dist/config/plugins/testing-library.mjs +8 -0
- package/dist/config/plugins/testing-library.mjs.map +1 -0
- package/dist/config/plugins/toml.d.ts +5 -0
- package/dist/config/plugins/toml.js +7 -0
- package/dist/config/plugins/toml.js.map +1 -0
- package/dist/config/plugins/toml.mjs +5 -0
- package/dist/config/plugins/toml.mjs.map +1 -0
- package/dist/config/plugins/tsdoc.d.ts +5 -0
- package/dist/config/plugins/tsdoc.js +9 -0
- package/dist/config/plugins/tsdoc.js.map +1 -0
- package/dist/config/plugins/tsdoc.mjs +7 -0
- package/dist/config/plugins/tsdoc.mjs.map +1 -0
- package/dist/config/plugins/typescript-sort-keys.d.ts +5 -0
- package/dist/config/plugins/typescript-sort-keys.js +7 -0
- package/dist/config/plugins/typescript-sort-keys.js.map +1 -0
- package/dist/config/plugins/typescript-sort-keys.mjs +5 -0
- package/dist/config/plugins/typescript-sort-keys.mjs.map +1 -0
- package/dist/config/plugins/typescript.d.ts +5 -0
- package/dist/config/plugins/typescript.js +18 -0
- package/dist/config/plugins/typescript.js.map +1 -0
- package/dist/config/plugins/typescript.mjs +16 -0
- package/dist/config/plugins/typescript.mjs.map +1 -0
- package/dist/config/plugins/unicorn.d.ts +5 -0
- package/dist/config/plugins/unicorn.js +15 -0
- package/dist/config/plugins/unicorn.js.map +1 -0
- package/dist/config/plugins/unicorn.mjs +9 -0
- package/dist/config/plugins/unicorn.mjs.map +1 -0
- package/dist/config/plugins/vitest.d.ts +5 -0
- package/dist/config/plugins/vitest.js +7 -0
- package/dist/config/plugins/vitest.js.map +1 -0
- package/dist/config/plugins/vitest.mjs +5 -0
- package/dist/config/plugins/vitest.mjs.map +1 -0
- package/dist/config/plugins/yml.d.ts +5 -0
- package/dist/config/plugins/yml.js +7 -0
- package/dist/config/plugins/yml.js.map +1 -0
- package/dist/config/plugins/yml.mjs +5 -0
- package/dist/config/plugins/yml.mjs.map +1 -0
- package/dist/config/plugins/you-dont-need-lodash-underscore.d.ts +5 -0
- package/dist/config/plugins/you-dont-need-lodash-underscore.js +7 -0
- package/dist/config/plugins/you-dont-need-lodash-underscore.js.map +1 -0
- package/dist/config/plugins/you-dont-need-lodash-underscore.mjs +5 -0
- package/dist/config/plugins/you-dont-need-lodash-underscore.mjs.map +1 -0
- package/dist/config/plugins/you-dont-need-momentjs.d.ts +5 -0
- package/dist/config/plugins/you-dont-need-momentjs.js +7 -0
- package/dist/config/plugins/you-dont-need-momentjs.js.map +1 -0
- package/dist/config/plugins/you-dont-need-momentjs.mjs +5 -0
- package/dist/config/plugins/you-dont-need-momentjs.mjs.map +1 -0
- package/dist/config/plugins/zod.d.ts +5 -0
- package/dist/config/plugins/zod.js +7 -0
- package/dist/config/plugins/zod.js.map +1 -0
- package/dist/config/plugins/zod.mjs +5 -0
- package/dist/config/plugins/zod.mjs.map +1 -0
- package/dist/config/style.d.ts +5 -0
- package/dist/config/style.js +9 -0
- package/dist/config/style.js.map +1 -0
- package/dist/config/style.mjs +3 -0
- package/dist/config/style.mjs.map +1 -0
- package/dist/config/variables.d.ts +5 -0
- package/dist/config/variables.js +9 -0
- package/dist/config/variables.js.map +1 -0
- package/dist/config/variables.mjs +3 -0
- package/dist/config/variables.mjs.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +16 -0
- package/dist/index.mjs.map +1 -0
- package/dist/postinstall.d.ts +2 -0
- package/dist/postinstall.js +65 -0
- package/dist/postinstall.js.map +1 -0
- package/dist/postinstall.mjs +63 -0
- package/dist/postinstall.mjs.map +1 -0
- package/dist/typescript-type-checking.d.ts +5 -0
- package/dist/typescript-type-checking.js +10 -0
- package/dist/typescript-type-checking.js.map +1 -0
- package/dist/typescript-type-checking.mjs +8 -0
- package/dist/typescript-type-checking.mjs.map +1 -0
- package/package.json +106 -50
- package/config.cjs +0 -88
- package/index.cjs +0 -58
- package/lib/check-missing.cjs +0 -57
- package/lib/is-module-available.cjs +0 -8
- package/lib/loggers.cjs +0 -12
- package/lib/postinstall.cjs +0 -115
- package/lib/show-loaded.cjs +0 -21
- package/lib/utils.cjs +0 -90
- package/rules/best-practices.cjs +0 -395
- package/rules/errors.cjs +0 -177
- package/rules/es6.cjs +0 -217
- package/rules/plugins/array-func.cjs +0 -13
- package/rules/plugins/babel.cjs +0 -36
- package/rules/plugins/compat.cjs +0 -3
- package/rules/plugins/cypress.cjs +0 -13
- package/rules/plugins/eslint-comments.cjs +0 -11
- package/rules/plugins/html.cjs +0 -3
- package/rules/plugins/import.cjs +0 -265
- package/rules/plugins/jest-async.cjs +0 -6
- package/rules/plugins/jest-dom.cjs +0 -3
- package/rules/plugins/jest-formatting.cjs +0 -3
- package/rules/plugins/jest.cjs +0 -43
- package/rules/plugins/jsdoc.cjs +0 -4
- package/rules/plugins/json.cjs +0 -40
- package/rules/plugins/jsonc.cjs +0 -70
- package/rules/plugins/jsx-a11y.cjs +0 -261
- package/rules/plugins/lodash-fp.cjs +0 -7
- package/rules/plugins/lodash.cjs +0 -52
- package/rules/plugins/markdown.cjs +0 -32
- package/rules/plugins/mdx.cjs +0 -4
- package/rules/plugins/no-loops.cjs +0 -7
- package/rules/plugins/no-secrets.cjs +0 -20
- package/rules/plugins/no-unsanitized.cjs +0 -8
- package/rules/plugins/node.cjs +0 -44
- package/rules/plugins/optimize-regex.cjs +0 -6
- package/rules/plugins/promise.cjs +0 -9
- package/rules/plugins/react-hooks.cjs +0 -20
- package/rules/plugins/react-redux.cjs +0 -9
- package/rules/plugins/react.cjs +0 -659
- package/rules/plugins/simple-import-sort.cjs +0 -10
- package/rules/plugins/sonarjs.cjs +0 -5
- package/rules/plugins/sort-keys-fix.cjs +0 -6
- package/rules/plugins/tailwindcss.cjs +0 -4
- package/rules/plugins/testing-library.cjs +0 -34
- package/rules/plugins/toml.cjs +0 -9
- package/rules/plugins/typescript-sort-keys.cjs +0 -19
- package/rules/plugins/typescript.cjs +0 -427
- package/rules/plugins/unicorn.cjs +0 -20
- package/rules/plugins/yml.cjs +0 -12
- package/rules/plugins/you-dont-need-lodash-underscore.cjs +0 -3
- package/rules/plugins/you-dont-need-momentjs.cjs +0 -3
- package/rules/style.cjs +0 -629
- package/rules/variables.cjs +0 -54
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/no-loops.ts"],"names":["config","no_loops_default"],"mappings":"AAGA,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"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var e={overrides:[{plugins:["no-secrets"],rules:{"no-secrets/no-secrets":"error"},files:["*","*/**"],excludedFiles:["package.json","**/package.json","package-lock.json","**/package-lock.json","tsconfig.json","**/tsconfig.json"]}]},o=e;
|
|
4
|
+
|
|
5
|
+
module.exports = o;
|
|
6
|
+
//# sourceMappingURL=out.js.map
|
|
7
|
+
//# sourceMappingURL=no-secrets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/no-secrets.ts"],"names":["config","no_secrets_default"],"mappings":"AAGA,IAAMA,EAAwB,CAC1B,UAAW,CACP,CACI,QAAS,CAAC,YAAY,EACtB,MAAO,CACH,wBAAyB,OAC7B,EACA,MAAO,CAAC,IAAK,MAAM,EACnB,cAAe,CAAC,eAAgB,kBAAmB,oBAAqB,uBAAwB,gBAAiB,kBAAkB,CACvI,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 plugins: [\"no-secrets\"],\n rules: {\n \"no-secrets/no-secrets\": \"error\",\n },\n files: [\"*\", \"*/**\"],\n excludedFiles: [\"package.json\", \"**/package.json\", \"package-lock.json\", \"**/package-lock.json\", \"tsconfig.json\", \"**/tsconfig.json\"],\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var e={overrides:[{plugins:["no-secrets"],rules:{"no-secrets/no-secrets":"error"},files:["*","*/**"],excludedFiles:["package.json","**/package.json","package-lock.json","**/package-lock.json","tsconfig.json","**/tsconfig.json"]}]},o=e;
|
|
2
|
+
|
|
3
|
+
export { o as default };
|
|
4
|
+
//# sourceMappingURL=out.js.map
|
|
5
|
+
//# sourceMappingURL=no-secrets.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/no-secrets.ts"],"names":["config","no_secrets_default"],"mappings":"AAGA,IAAMA,EAAwB,CAC1B,UAAW,CACP,CACI,QAAS,CAAC,YAAY,EACtB,MAAO,CACH,wBAAyB,OAC7B,EACA,MAAO,CAAC,IAAK,MAAM,EACnB,cAAe,CAAC,eAAgB,kBAAmB,oBAAqB,uBAAwB,gBAAiB,kBAAkB,CACvI,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 plugins: [\"no-secrets\"],\n rules: {\n \"no-secrets/no-secrets\": \"error\",\n },\n files: [\"*\", \"*/**\"],\n excludedFiles: [\"package.json\", \"**/package.json\", \"package-lock.json\", \"**/package-lock.json\", \"tsconfig.json\", \"**/tsconfig.json\"],\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/no-unsanitized.ts"],"names":["config","no_unsanitized_default"],"mappings":"AAGA,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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/no-unsanitized.ts"],"names":["config","no_unsanitized_default"],"mappings":"AAGA,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"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
4
|
+
|
|
5
|
+
var n={},e;packageJsonUtils.pkg?.engines?.node&&(e=packageJsonUtils.pkg.engines.node);e&&(n["n/no-unsupported-features/es-builtins"]=["error",{version:e}],n["n/no-unsupported-features/es-syntax"]=["error",{version:e,ignores:["modules"]}],n["n/no-unsupported-features/node-builtins"]=["error",{version:e}]);var o={extends:["plugin:n/recommended"],plugins:["n"],env:{node:!0},parserOptions:{ecmaVersion:2021},rules:{"n/no-extraneous-import":"off","n/no-extraneous-require":"off","n/no-missing-import":"off","n/no-missing-require":"off","n/no-unpublished-bin":"error","n/callback-return":"off","global-require":"error","n/handle-callback-err":"off","no-buffer-constructor":"error","n/no-mixed-requires":["error",{grouping:!0,allowCall:!0}],"n/no-new-require":"error","no-path-concat":"error","n/no-process-env":"off","n/no-process-exit":"off","n/no-restricted-modules":"off","n/no-sync":"off","n/process-exit-as-throw":"error","n/file-extension-in-import":"off",...n},overrides:[{files:["*.js","*.mjs","*.cjs"],rules:{"n/file-extension-in-import":["error","always"]}}]},i=o;
|
|
6
|
+
|
|
7
|
+
module.exports = i;
|
|
8
|
+
//# sourceMappingURL=out.js.map
|
|
9
|
+
//# sourceMappingURL=node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/node.ts"],"names":["pkg","configRules","nodeVersion","config","node_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAGpB,IAAMC,EAAkC,CAAC,EAErCC,EAEAF,GAAK,SAAU,OACfE,EAAcF,EAAI,QAAQ,MAG1BE,IACAD,EAAY,uCAAuC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,EACzFD,EAAY,qCAAqC,EAAI,CAAC,QAAS,CAAE,QAASC,EAAa,QAAS,CAAC,SAAS,CAAE,CAAC,EAC7GD,EAAY,yCAAyC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,GAI/F,IAAMC,EAAwB,CAC1B,QAAS,CAAC,sBAAsB,EAChC,QAAS,CAAC,GAAG,EACb,IAAK,CACD,KAAM,EACV,EACA,cAAe,CACX,YAAa,IACjB,EACA,MAAO,CAEH,yBAA0B,MAC1B,0BAA2B,MAG3B,sBAAuB,MACvB,uBAAwB,MAExB,uBAAwB,QAGxB,oBAAqB,MAIrB,iBAAkB,QAGlB,wBAAyB,MAIzB,wBAAyB,QAGzB,sBAAuB,CACnB,QACA,CACI,SAAU,GACV,UAAW,EACf,CACJ,EAGA,mBAAoB,QAIpB,iBAAkB,QAGlB,mBAAoB,MAIpB,oBAAqB,MAGrB,0BAA2B,MAG3B,YAAa,MAEb,0BAA2B,QAE3B,6BAA8B,MAE9B,GAAGF,CACP,EACA,UAAW,CACP,CACI,MAAO,CAAC,OAAQ,QAAS,OAAO,EAChC,MAAO,CAEH,6BAA8B,CAC1B,QACA,QACJ,CACJ,CACJ,CACJ,CACJ,EAEOG,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nconst configRules: Linter.RulesRecord = {};\n\nlet nodeVersion: string | undefined;\n\nif (pkg?.engines?.[\"node\"]) {\n nodeVersion = pkg.engines[\"node\"];\n}\n\nif (nodeVersion) {\n configRules[\"n/no-unsupported-features/es-builtins\"] = [\"error\", { version: nodeVersion }];\n configRules[\"n/no-unsupported-features/es-syntax\"] = [\"error\", { version: nodeVersion, ignores: [\"modules\"] }];\n configRules[\"n/no-unsupported-features/node-builtins\"] = [\"error\", { version: nodeVersion }];\n}\n\n// @see https://github.com/eslint-community/eslint-plugin-n\nconst config: Linter.Config = {\n extends: [\"plugin:n/recommended\"],\n plugins: [\"n\"],\n env: {\n node: true,\n },\n parserOptions: {\n ecmaVersion: 2021,\n },\n rules: {\n // Redundant with `import/no-extraneous-dependencies`.\n \"n/no-extraneous-import\": \"off\",\n \"n/no-extraneous-require\": \"off\",\n\n // Redundant with `import/no-unresolved`.\n \"n/no-missing-import\": \"off\", // This rule is also buggy and doesn't support `node:`.\n \"n/no-missing-require\": \"off\",\n\n \"n/no-unpublished-bin\": \"error\",\n\n // enforce return after a callback\n \"n/callback-return\": \"off\",\n\n // require all requires be top-level\n // https://eslint.org/docs/rules/global-require\n \"global-require\": \"error\",\n\n // enforces error handling in callbacks (node environment)\n \"n/handle-callback-err\": \"off\",\n\n // disallow use of the Buffer() constructor\n // https://eslint.org/docs/rules/no-buffer-constructor\n \"no-buffer-constructor\": \"error\",\n\n // disallow mixing regular variable and require declarations\n \"n/no-mixed-requires\": [\n \"error\",\n {\n grouping: true,\n allowCall: true,\n },\n ],\n\n // disallow use of new operator with the require function\n \"n/no-new-require\": \"error\",\n\n // disallow string concatenation with __dirname and __filename\n // https://eslint.org/docs/rules/no-path-concat\n \"no-path-concat\": \"error\",\n\n // disallow use of process.env\n \"n/no-process-env\": \"off\",\n\n // disallow process.exit()\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 use of synchronous methods (off by default)\n \"n/no-sync\": \"off\",\n\n \"n/process-exit-as-throw\": \"error\",\n\n \"n/file-extension-in-import\": \"off\",\n\n ...configRules,\n },\n overrides: [\n {\n files: [\"*.js\", \"*.mjs\", \"*.cjs\"],\n rules: {\n // We have this enabled in addition to `import/extensions` as this one has an auto-fix.\n \"n/file-extension-in-import\": [\n \"error\",\n \"always\",\n ],\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { pkg } from '@anolilab/package-json-utils';
|
|
2
|
+
|
|
3
|
+
var n={},e;pkg?.engines?.node&&(e=pkg.engines.node);e&&(n["n/no-unsupported-features/es-builtins"]=["error",{version:e}],n["n/no-unsupported-features/es-syntax"]=["error",{version:e,ignores:["modules"]}],n["n/no-unsupported-features/node-builtins"]=["error",{version:e}]);var o={extends:["plugin:n/recommended"],plugins:["n"],env:{node:!0},parserOptions:{ecmaVersion:2021},rules:{"n/no-extraneous-import":"off","n/no-extraneous-require":"off","n/no-missing-import":"off","n/no-missing-require":"off","n/no-unpublished-bin":"error","n/callback-return":"off","global-require":"error","n/handle-callback-err":"off","no-buffer-constructor":"error","n/no-mixed-requires":["error",{grouping:!0,allowCall:!0}],"n/no-new-require":"error","no-path-concat":"error","n/no-process-env":"off","n/no-process-exit":"off","n/no-restricted-modules":"off","n/no-sync":"off","n/process-exit-as-throw":"error","n/file-extension-in-import":"off",...n},overrides:[{files:["*.js","*.mjs","*.cjs"],rules:{"n/file-extension-in-import":["error","always"]}}]},i=o;
|
|
4
|
+
|
|
5
|
+
export { i as default };
|
|
6
|
+
//# sourceMappingURL=out.js.map
|
|
7
|
+
//# sourceMappingURL=node.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/node.ts"],"names":["pkg","configRules","nodeVersion","config","node_default"],"mappings":"AAAA,OAAS,OAAAA,MAAW,+BAGpB,IAAMC,EAAkC,CAAC,EAErCC,EAEAF,GAAK,SAAU,OACfE,EAAcF,EAAI,QAAQ,MAG1BE,IACAD,EAAY,uCAAuC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,EACzFD,EAAY,qCAAqC,EAAI,CAAC,QAAS,CAAE,QAASC,EAAa,QAAS,CAAC,SAAS,CAAE,CAAC,EAC7GD,EAAY,yCAAyC,EAAI,CAAC,QAAS,CAAE,QAASC,CAAY,CAAC,GAI/F,IAAMC,EAAwB,CAC1B,QAAS,CAAC,sBAAsB,EAChC,QAAS,CAAC,GAAG,EACb,IAAK,CACD,KAAM,EACV,EACA,cAAe,CACX,YAAa,IACjB,EACA,MAAO,CAEH,yBAA0B,MAC1B,0BAA2B,MAG3B,sBAAuB,MACvB,uBAAwB,MAExB,uBAAwB,QAGxB,oBAAqB,MAIrB,iBAAkB,QAGlB,wBAAyB,MAIzB,wBAAyB,QAGzB,sBAAuB,CACnB,QACA,CACI,SAAU,GACV,UAAW,EACf,CACJ,EAGA,mBAAoB,QAIpB,iBAAkB,QAGlB,mBAAoB,MAIpB,oBAAqB,MAGrB,0BAA2B,MAG3B,YAAa,MAEb,0BAA2B,QAE3B,6BAA8B,MAE9B,GAAGF,CACP,EACA,UAAW,CACP,CACI,MAAO,CAAC,OAAQ,QAAS,OAAO,EAChC,MAAO,CAEH,6BAA8B,CAC1B,QACA,QACJ,CACJ,CACJ,CACJ,CACJ,EAEOG,EAAQD","sourcesContent":["import { pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\n\nconst configRules: Linter.RulesRecord = {};\n\nlet nodeVersion: string | undefined;\n\nif (pkg?.engines?.[\"node\"]) {\n nodeVersion = pkg.engines[\"node\"];\n}\n\nif (nodeVersion) {\n configRules[\"n/no-unsupported-features/es-builtins\"] = [\"error\", { version: nodeVersion }];\n configRules[\"n/no-unsupported-features/es-syntax\"] = [\"error\", { version: nodeVersion, ignores: [\"modules\"] }];\n configRules[\"n/no-unsupported-features/node-builtins\"] = [\"error\", { version: nodeVersion }];\n}\n\n// @see https://github.com/eslint-community/eslint-plugin-n\nconst config: Linter.Config = {\n extends: [\"plugin:n/recommended\"],\n plugins: [\"n\"],\n env: {\n node: true,\n },\n parserOptions: {\n ecmaVersion: 2021,\n },\n rules: {\n // Redundant with `import/no-extraneous-dependencies`.\n \"n/no-extraneous-import\": \"off\",\n \"n/no-extraneous-require\": \"off\",\n\n // Redundant with `import/no-unresolved`.\n \"n/no-missing-import\": \"off\", // This rule is also buggy and doesn't support `node:`.\n \"n/no-missing-require\": \"off\",\n\n \"n/no-unpublished-bin\": \"error\",\n\n // enforce return after a callback\n \"n/callback-return\": \"off\",\n\n // require all requires be top-level\n // https://eslint.org/docs/rules/global-require\n \"global-require\": \"error\",\n\n // enforces error handling in callbacks (node environment)\n \"n/handle-callback-err\": \"off\",\n\n // disallow use of the Buffer() constructor\n // https://eslint.org/docs/rules/no-buffer-constructor\n \"no-buffer-constructor\": \"error\",\n\n // disallow mixing regular variable and require declarations\n \"n/no-mixed-requires\": [\n \"error\",\n {\n grouping: true,\n allowCall: true,\n },\n ],\n\n // disallow use of new operator with the require function\n \"n/no-new-require\": \"error\",\n\n // disallow string concatenation with __dirname and __filename\n // https://eslint.org/docs/rules/no-path-concat\n \"no-path-concat\": \"error\",\n\n // disallow use of process.env\n \"n/no-process-env\": \"off\",\n\n // disallow process.exit()\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 use of synchronous methods (off by default)\n \"n/no-sync\": \"off\",\n\n \"n/process-exit-as-throw\": \"error\",\n\n \"n/file-extension-in-import\": \"off\",\n\n ...configRules,\n },\n overrides: [\n {\n files: [\"*.js\", \"*.mjs\", \"*.cjs\"],\n rules: {\n // We have this enabled in addition to `import/extensions` as this one has an auto-fix.\n \"n/file-extension-in-import\": [\n \"error\",\n \"always\",\n ],\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/optimize-regex.ts"],"names":["config","optimize_regex_default"],"mappings":"AAEA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,gBAAgB,EAC1B,MAAO,CACH,gCAAiC,MACrC,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n plugins: [\"optimize-regex\"],\n rules: {\n \"optimize-regex/optimize-regex\": \"warn\",\n },\n};\n\nexport default config;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/optimize-regex.ts"],"names":["config","optimize_regex_default"],"mappings":"AAEA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,gBAAgB,EAC1B,MAAO,CACH,gCAAiC,MACrC,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\nconst config: Linter.Config = {\n plugins: [\"optimize-regex\"],\n rules: {\n \"optimize-regex/optimize-regex\": \"warn\",\n },\n};\n\nexport default config;\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var e={extends:["plugin:promise/recommended"],plugins:["promise"],rules:{"promise/prefer-await-to-callbacks":"off","promise/prefer-await-to-then":"off"}},o=e;
|
|
4
|
+
|
|
5
|
+
module.exports = o;
|
|
6
|
+
//# sourceMappingURL=out.js.map
|
|
7
|
+
//# sourceMappingURL=promise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/promise.ts"],"names":["config","promise_default"],"mappings":"AAGA,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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/promise.ts"],"names":["config","promise_default"],"mappings":"AAGA,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"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var e={plugins:["react-hooks"],parserOptions:{ecmaFeatures:{jsx:!0}},rules:{"react-hooks/rules-of-hooks":"error","react-hooks/exhaustive-deps":"error"}},r=e;
|
|
4
|
+
|
|
5
|
+
module.exports = r;
|
|
6
|
+
//# sourceMappingURL=out.js.map
|
|
7
|
+
//# sourceMappingURL=react-hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/react-hooks.ts"],"names":["config","react_hooks_default"],"mappings":"AAGA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,aAAa,EAEvB,cAAe,CACX,aAAc,CACV,IAAK,EACT,CACJ,EAEA,MAAO,CAGH,6BAA8B,QAI9B,8BAA+B,OACnC,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\n// @see https://github.com/yannickcr/eslint-plugin-react\nconst config: Linter.Config = {\n plugins: [\"react-hooks\"],\n\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n\n rules: {\n // Enforce Rules of Hooks\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 // Verify the list of the dependencies for Hooks like useEffect and similar\n // https://github.com/facebook/react/blob/1204c789776cb01fbaf3e9f032e7e2ba85a44137/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js\n \"react-hooks/exhaustive-deps\": \"error\",\n },\n};\n\nexport default config;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/react-hooks.ts"],"names":["config","react_hooks_default"],"mappings":"AAGA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,aAAa,EAEvB,cAAe,CACX,aAAc,CACV,IAAK,EACT,CACJ,EAEA,MAAO,CAGH,6BAA8B,QAI9B,8BAA+B,OACnC,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\n// @see https://github.com/yannickcr/eslint-plugin-react\nconst config: Linter.Config = {\n plugins: [\"react-hooks\"],\n\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n\n rules: {\n // Enforce Rules of Hooks\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 // Verify the list of the dependencies for Hooks like useEffect and similar\n // https://github.com/facebook/react/blob/1204c789776cb01fbaf3e9f032e7e2ba85a44137/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js\n \"react-hooks/exhaustive-deps\": \"error\",\n },\n};\n\nexport default config;\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var e={extends:["plugin:react-redux/recommended"],plugins:["react-redux"],rules:{"react-redux/prefer-separate-component-file":"off","react-redux/mapStateToProps-prefer-selectors":"off"}},r=e;
|
|
4
|
+
|
|
5
|
+
module.exports = r;
|
|
6
|
+
//# sourceMappingURL=out.js.map
|
|
7
|
+
//# sourceMappingURL=react-redux.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/react-redux.ts"],"names":["config","react_redux_default"],"mappings":"AAGA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,gCAAgC,EAC1C,QAAS,CAAC,aAAa,EACvB,MAAO,CACH,6CAA8C,MAC9C,+CAAgD,KACpD,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\n// @see https://github.com/DianaSuvorova/eslint-plugin-react-redux#readme\nconst config: Linter.Config = {\n extends: [\"plugin:react-redux/recommended\"],\n plugins: [\"react-redux\"],\n rules: {\n \"react-redux/prefer-separate-component-file\": \"off\",\n \"react-redux/mapStateToProps-prefer-selectors\": \"off\",\n },\n};\n\nexport default config;\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var e={extends:["plugin:react-redux/recommended"],plugins:["react-redux"],rules:{"react-redux/prefer-separate-component-file":"off","react-redux/mapStateToProps-prefer-selectors":"off"}},r=e;
|
|
2
|
+
|
|
3
|
+
export { r as default };
|
|
4
|
+
//# sourceMappingURL=out.js.map
|
|
5
|
+
//# sourceMappingURL=react-redux.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/react-redux.ts"],"names":["config","react_redux_default"],"mappings":"AAGA,IAAMA,EAAwB,CAC1B,QAAS,CAAC,gCAAgC,EAC1C,QAAS,CAAC,aAAa,EACvB,MAAO,CACH,6CAA8C,MAC9C,+CAAgD,KACpD,CACJ,EAEOC,EAAQD","sourcesContent":["import type { Linter } from \"eslint\";\n\n// @see https://github.com/DianaSuvorova/eslint-plugin-react-redux#readme\nconst config: Linter.Config = {\n extends: [\"plugin:react-redux/recommended\"],\n plugins: [\"react-redux\"],\n rules: {\n \"react-redux/prefer-separate-component-file\": \"off\",\n \"react-redux/mapStateToProps-prefer-selectors\": \"off\",\n },\n};\n\nexport default config;\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkYMWD4DNM_js = require('../../chunk-YMWD4DNM.js');
|
|
4
|
+
var chunkNO36P4BR_js = require('../../chunk-NO36P4BR.js');
|
|
5
|
+
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
6
|
+
var p = require('find-up');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var p__default = /*#__PURE__*/_interopDefault(p);
|
|
11
|
+
|
|
12
|
+
var t=chunkNO36P4BR_js.a.rules,e=t["no-underscore-dangle"],c={};packageJsonUtils.hasAnyDep(["react","react-dom"],{peerDeps:!1})&&(c={"react/jsx-indent":"off","react/jsx-closing-tag-location":"off","react/jsx-closing-bracket-location":"off","react/jsx-curly-spacing":"off","react/jsx-equals-spacing":"off","react/jsx-first-prop-new-line":"off","react/jsx-indent-props":"off","react/jsx-max-props-per-line":"off","react/jsx-tag-spacing":"off","react/jsx-wrap-multilines":"off","react/prefer-stateless-function":"off","react/jsx-one-expression-per-line":"off","react/jsx-props-no-multi-spaces":"off"});var a=(()=>{if(!global.hasAnolilabEsLintConfigReactRuntimePath){let o=p__default.default.sync("node_modules/react/jsx-runtime.js");typeof o=="string"&&chunkYMWD4DNM_js.b(`
|
|
13
|
+
@anolilab/eslint-config found react jsx-runtime.
|
|
14
|
+
|
|
15
|
+
Following rules are disabled: "react/jsx-uses-react" and "react/react-in-jsx-scope".
|
|
16
|
+
If you dont use the new react jsx-runtime in you project, please enable it manually.
|
|
17
|
+
`),global.hasAnolilabEsLintConfigReactRuntimePath=typeof o=="string";}return global.hasAnolilabEsLintConfigReactRuntimePath})(),f=packageJsonUtils.pkg?.dependencies??{},r=(f?.react??"").split("."),u={overrides:[{files:["*.jsx","*.tsx"],plugins:["react"],env:{browser:!0},parserOptions:{ecmaFeatures:{jsx:!0}},settings:{"import/resolver":{node:{extensions:[".js",".jsx",".json",".cjs",".mjs"]}},react:{version:r[0]?`${r[0]}.${r[1]??"0"}}`:"detect"},propWrapperFunctions:["forbidExtraProps","exact","Object.freeze"]},rules:{"no-underscore-dangle":[e[0],{...e[1],allow:[...e[1].allow,"__REDUX_DEVTOOLS_EXTENSION_COMPOSE__"]}],"jsx-quotes":["error","prefer-double"],"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"]}],"react/display-name":["off",{ignoreTranspilerName:!1}],"react/forbid-prop-types":["error",{forbid:["any","array","object"],checkContextTypes:!0,checkChildContextTypes:!0}],"react/forbid-dom-props":["off",{forbid:[]}],"react/jsx-boolean-value":["error","never",{always:[]}],"react/jsx-closing-bracket-location":["error","line-aligned"],"react/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"react/jsx-handler-names":["off",{eventHandlerPrefix:"handle",eventHandlerPropPrefix:"on"}],"react/jsx-indent-props":["error",t.indent[1]],"react/jsx-key":"off","react/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"react/jsx-no-bind":["error",{ignoreRefs:!0,allowArrowFunctions:!0,allowFunctions:!1,allowBind:!1,ignoreDOMComponents:!0}],"react/jsx-no-duplicate-props":["error",{ignoreCase:!0}],"react/jsx-no-literals":["off",{noStrings:!0}],"react/jsx-no-undef":"error","react/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],"react/sort-prop-types":["off",{ignoreCase:!0,callbacksLast:!1,requiredFirst:!1,sortShapeProp:!0}],"react/jsx-sort-props":["off",{ignoreCase:!0,callbacksLast:!1,shorthandFirst:!1,shorthandLast:!1,noSortAlphabetically:!1,reservedFirst:!0}],"react/jsx-uses-react":[a?"off":"error"],"react/jsx-uses-vars":"error","react/no-danger":"warn","react/no-deprecated":["error"],"react/no-did-mount-set-state":"off","react/no-did-update-set-state":"error","react/no-will-update-set-state":"error","react/no-direct-mutation-state":"error","react/no-is-mounted":"error","react/no-multi-comp":"off","react/no-set-state":"off","react/no-string-refs":"error","react/no-unknown-property":"error","react/prefer-es6-class":["error","always"],"react/prefer-stateless-function":["error",{ignorePureComponents:!0}],"react/prop-types":["error",{ignore:[],customValidators:[],skipUndeclared:!1}],"react/react-in-jsx-scope":a?"off":"error","react/require-render-return":"error","react/self-closing-comp":"error","react/sort-default-props":["error",{ignoreCase:!0}],"react/sort-comp":["error",{order:["static-variables","static-methods","instance-variables","lifecycle","/^handle.+$/","/^on.+$/","getters","setters","/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/","instance-methods","everything-else","rendering"],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"]}}],"react/jsx-first-prop-new-line":["error","multiline-multiprop"],"react/jsx-equals-spacing":["error","never"],"react/jsx-indent":["error",t.indent[1],{checkAttributes:!0,indentLogicalExpressions:!0}],"react/jsx-no-target-blank":["error",{enforceDynamicLinks:"always"}],"react/jsx-no-comment-textnodes":"error","react/no-render-return-value":"error","react/require-optimization":["off",{allowDecorators:[]}],"react/no-find-dom-node":"error","react/forbid-component-props":["off",{forbid:[]}],"react/forbid-elements":["off",{forbid:[]}],"react/no-danger-with-children":"error","react/no-unused-prop-types":["error",{customValidators:[],skipShapeProps:!0}],"react/style-prop-object":"error","react/no-unescaped-entities":"error","react/no-children-prop":"error","react/jsx-tag-spacing":["error",{closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"never"}],"react/jsx-space-before-closing":["off","always"],"react/no-array-index-key":"error","react/require-default-props":["error",{forbidDefaultForRequired:!0}],"react/forbid-foreign-prop-types":["warn",{allowInPropTypes:!0}],"react/void-dom-elements-no-children":"error","react/default-props-match-prop-types":["error",{allowRequiredDefaults:!1}],"react/no-redundant-should-component-update":"error","react/no-unused-state":"error","react/boolean-prop-naming":["off",{propTypeNames:["bool","mutuallyExclusiveTrueProps"],rule:"^(is|has)[A-Z]([A-Za-z0-9]?)+",message:""}],"react/jsx-curly-brace-presence":["error",{props:"never",children:"never"}],"react/jsx-one-expression-per-line":["error",{allow:"single-child"}],"react/destructuring-assignment":["error","always"],"react/no-access-state-in-setstate":"error","react/button-has-type":["error",{button:!0,submit:!0,reset:!1}],"react/jsx-child-element-spacing":"off","react/no-this-in-sfc":"error","react/jsx-max-depth":"off","react/jsx-props-no-multi-spaces":"error","react/no-unsafe":"off","react/jsx-fragments":["error","syntax"],"react/jsx-curly-newline":["error",{multiline:"consistent",singleline:"consistent"}],"react/state-in-constructor":["error","always"],"react/static-property-placement":["error","property assignment"],"react/jsx-props-no-spreading":["error",{html:"enforce",custom:"enforce",explicitSpread:"ignore",exceptions:[]}],"react/prefer-read-only-props":"off","react/jsx-no-script-url":["error",[{name:"Link",props:["to"]}]],"react/jsx-no-useless-fragment":"error","react/no-adjacent-inline-elements":"error","react/function-component-definition":["error",{namedComponents:"arrow-function",unnamedComponents:"arrow-function"}],"react/jsx-newline":"off","react/jsx-no-constructed-context-values":"error",...c}},{files:["*.jsx"],rules:{"react/jsx-filename-extension":"error","react/no-typos":"error","react/jsx-closing-tag-location":"error","react/jsx-wrap-multilines":["error",{declaration:"parens-new-line",assignment:"parens-new-line",return:"parens-new-line",arrow:"parens-new-line",condition:"parens-new-line",logical:"parens-new-line",prop:"parens-new-line"}]}},{files:["*.tsx"],rules:{"react/jsx-filename-extension":"off","react/default-props-match-prop-types":"off","react/prop-types":"off"}}]},j=u;
|
|
18
|
+
|
|
19
|
+
module.exports = j;
|
|
20
|
+
//# sourceMappingURL=out.js.map
|
|
21
|
+
//# sourceMappingURL=react.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/config/plugins/react.ts"],"names":["hasAnyDep","pkg","findUp","styleRules","style_default","dangleRules","prettierReactRules","hasJsxRuntime","reactPath","consoleLog","packageDependencies","reactDependency","config","react_default"],"mappings":"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","sourcesContent":["// @see https://github.com/yannickcr/eslint-plugin-react\nimport { hasAnyDep, pkg } from \"@anolilab/package-json-utils\";\nimport type { Linter } from \"eslint\";\nimport findUp from \"find-up\";\n\nimport { consoleLog } from \"../../utils/loggers\";\nimport styleConfig from \"../style\";\n\nconst styleRules = styleConfig.rules as Linter.RulesRecord;\nconst dangleRules = styleRules[\"no-underscore-dangle\"] as any[];\n\nlet prettierReactRules = {};\n\nif (\n hasAnyDep([\"react\", \"react-dom\"], {\n peerDeps: false,\n })\n) {\n prettierReactRules = {\n \"react/jsx-indent\": \"off\",\n \"react/jsx-closing-tag-location\": \"off\",\n \"react/jsx-closing-bracket-location\": \"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-props\": \"off\",\n \"react/jsx-max-props-per-line\": \"off\",\n \"react/jsx-tag-spacing\": \"off\",\n \"react/jsx-wrap-multilines\": \"off\",\n \"react/prefer-stateless-function\": \"off\",\n \"react/jsx-one-expression-per-line\": \"off\",\n \"react/jsx-props-no-multi-spaces\": \"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\n if (typeof reactPath === \"string\") {\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 = typeof reactPath === \"string\";\n }\n\n return global.hasAnolilabEsLintConfigReactRuntimePath;\n})();\n\nconst packageDependencies = pkg?.dependencies ?? {};\nconst reactDependency = (packageDependencies?.[\"react\"] ?? \"\").split(\".\");\n\nconst config: Linter.Config = {\n overrides: [\n {\n files: [\"*.jsx\", \"*.tsx\"],\n\n plugins: [\"react\"],\n\n env: {\n browser: true,\n },\n\n parserOptions: {\n ecmaFeatures: {\n jsx: true,\n },\n },\n\n settings: {\n \"import/resolver\": {\n node: {\n extensions: [\".js\", \".jsx\", \".json\", \".cjs\", \".mjs\"],\n },\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: reactDependency[0] ? `${reactDependency[0]}.${reactDependency[1] ?? \"0\"}}` : \"detect\",\n },\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 },\n\n // View link below for react rules documentation\n // https://github.com/yannickcr/eslint-plugin-react#list-of-supported-rules\n rules: {\n \"no-underscore-dangle\": [\n dangleRules[0],\n {\n ...dangleRules[1],\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access\n allow: [...dangleRules[1].allow, \"__REDUX_DEVTOOLS_EXTENSION_COMPOSE__\"],\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 \"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 // Prevent missing displayName in a React component definition\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/display-name.md\n \"react/display-name\": [\"off\", { ignoreTranspilerName: false }],\n\n // Forbid certain propTypes (any, array, object)\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 forbid: [\"any\", \"array\", \"object\"],\n checkContextTypes: true,\n checkChildContextTypes: true,\n },\n ],\n\n // Forbid certain props on DOM Nodes\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 // Enforce boolean attributes notation 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 // Validate closing bracket location 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 or disallow spaces inside of curly braces in JSX attributes\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 // Enforce event handler naming conventions in JSX\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 // Validate props indentation in JSX\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-indent-props.md\n \"react/jsx-indent-props\": [\"error\", (styleRules[\"indent\"] as any[])[1] as number],\n\n // Validate JSX has key prop when in array or iterator\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-key.md\n \"react/jsx-key\": \"off\",\n\n // Limit maximum of props on a single line in JSX\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 usage of .bind() in JSX props\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 ignoreRefs: true,\n allowArrowFunctions: true,\n allowFunctions: false,\n allowBind: false,\n ignoreDOMComponents: true,\n },\n ],\n\n // Prevent duplicate props in JSX\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 usage of unwrapped JSX strings\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 // Disallow undeclared variables in JSX\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 PascalCase for user-defined JSX components\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 propTypes declarations alphabetical sorting\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 ignoreCase: true,\n callbacksLast: false,\n requiredFirst: false,\n sortShapeProp: true,\n },\n ],\n\n // Enforce props alphabetical sorting\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md\n \"react/jsx-sort-props\": [\n \"off\",\n {\n ignoreCase: true,\n callbacksLast: false,\n shorthandFirst: false,\n shorthandLast: false,\n noSortAlphabetically: false,\n reservedFirst: true,\n },\n ],\n\n // Prevent React to be incorrectly marked as unused\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 // Prevent variables used in JSX to be incorrectly marked as unused\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-uses-vars.md\n \"react/jsx-uses-vars\": \"error\",\n\n // Prevent usage of dangerous JSX properties\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-danger.md\n \"react/no-danger\": \"warn\",\n\n // Prevent usage of deprecated methods\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-deprecated.md\n \"react/no-deprecated\": [\"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 // this is necessary for server-rendering\n \"react/no-did-mount-set-state\": \"off\",\n\n // Prevent usage of setState in componentDidUpdate\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 // Prevent usage of setState in componentWillUpdate\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 direct mutation of this.state\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 isMounted\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-is-mounted.md\n \"react/no-is-mounted\": \"error\",\n\n // Prevent multiple component definition per file\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 usage of setState\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 using string references\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-string-refs.md\n \"react/no-string-refs\": \"error\",\n\n // Prevent usage of unknown DOM property\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unknown-property.md\n \"react/no-unknown-property\": \"error\",\n\n // Require ES6 class declarations over React.createClass\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 // Require stateless functions when not using lifecycle methods, setState or ref\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 missing props validation in a React component definition\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md\n \"react/prop-types\": [\n \"error\",\n {\n ignore: [],\n customValidators: [],\n skipUndeclared: false,\n },\n ],\n\n // Prevent missing React when using JSX\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 // Require render() methods to return something\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-render-return.md\n \"react/require-render-return\": \"error\",\n\n // Prevent extra closing tags for components without children\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 defaultProps declarations alphabetical sorting\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 // Enforce component methods order\n // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/sort-comp.md\n \"react/sort-comp\": [\n \"error\",\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 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 },\n ],\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/master/docs/rules/jsx-first-prop-new-line.md\n \"react/jsx-first-prop-new-line\": [\"error\", \"multiline-multiprop\"],\n\n // Enforce spacing around jsx equals signs\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 // Enforce JSX indentation\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-indent.md\n \"react/jsx-indent\": [\"error\", (styleRules[\"indent\"] as any[])[1] as number, { checkAttributes: true, indentLogicalExpressions: true }],\n\n // Disallow target=\"_blank\" on links\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 // prevent accidental JS comments from being injected into JSX as text\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 // disallow using React.render/ReactDOM.render's return value\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 // require a shouldComponentUpdate method, or PureRenderMixin\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-optimization.md\n \"react/require-optimization\": [\"off\", { allowDecorators: [] }],\n\n // warn against using findDOMNode()\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 // Forbid certain props on Components\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 // Forbid certain elements\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-elements.md\n \"react/forbid-elements\": [\"off\", { forbid: [] }],\n\n // Prevent problem with children and props.dangerouslySetInnerHTML\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 unused propType definitions\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 // Require style prop value be an object or var\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 invalid characters from appearing in markup\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unescaped-entities.md\n \"react/no-unescaped-entities\": \"error\",\n\n // Prevent passing of children as props\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-children-prop.md\n \"react/no-children-prop\": \"error\",\n\n // Validate whitespace in and around the JSX opening and closing brackets\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 closingSlash: \"never\",\n beforeSelfClosing: \"always\",\n afterOpening: \"never\",\n beforeClosing: \"never\",\n },\n ],\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 // Deprecated in favor of jsx-tag-spacing\n \"react/jsx-space-before-closing\": [\"off\", \"always\"],\n\n // Prevent usage of Array index in keys\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 // 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 },\n ],\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 // but it's only critical if you're stripping propTypes in production.\n \"react/forbid-foreign-prop-types\": [\"warn\", { allowInPropTypes: true }],\n\n // Prevent void DOM elements from receiving children\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 // Enforce all defaultProps have a corresponding non-required PropType\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 // Prevent usage of shouldComponentUpdate when extending React.PureComponent\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 // Prevent unused state values\n // https://github.com/yannickcr/eslint-plugin-react/pull/1103/\n \"react/no-unused-state\": \"error\",\n\n // Enforces consistent naming for boolean props\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 propTypeNames: [\"bool\", \"mutuallyExclusiveTrueProps\"],\n rule: \"^(is|has)[A-Z]([A-Za-z0-9]?)+\",\n message: \"\",\n },\n ],\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/jsx-curly-brace-presence.md\n \"react/jsx-curly-brace-presence\": [\"error\", { props: \"never\", children: \"never\" }],\n\n // One JSX Element Per Line\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 consistent usage of destructuring assignment of props, state, and context\n // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/destructuring-assignment.md\n \"react/destructuring-assignment\": [\"error\", \"always\"],\n\n // Prevent using this.state within a this.setState\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 // Prevent usage of button elements without an explicit type attribute\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 submit: true,\n reset: false,\n },\n ],\n\n // Ensures inline tags are not rendered without spaces between them\n \"react/jsx-child-element-spacing\": \"off\",\n\n // Prevent this from being used in stateless functional components\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 // Validate JSX maximum depth\n // https://github.com/yannickcr/eslint-plugin-react/blob/abe8381c0d6748047224c430ce47f02e40160ed0/docs/rules/jsx-max-depth.md\n \"react/jsx-max-depth\": \"off\",\n\n // Disallow multiple spaces between inline JSX props\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 UNSAFE_ methods\n // https://github.com/yannickcr/eslint-plugin-react/blob/157cc932be2cfaa56b3f5b45df6f6d4322a2f660/docs/rules/no-unsafe.md\n \"react/no-unsafe\": \"off\",\n\n // Enforce shorthand or standard form for React fragments\n // https://github.com/yannickcr/eslint-plugin-react/blob/bc976b837abeab1dffd90ac6168b746a83fc83cc/docs/rules/jsx-fragments.md\n \"react/jsx-fragments\": [\"error\", \"syntax\"],\n\n // Enforce linebreaks in curly braces in JSX attributes and expressions.\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 state initialization style\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/state-in-constructor.md\n // TODO: set to \"never\" once @anolilab/babel-preset supports public class fields\n \"react/state-in-constructor\": [\"error\", \"always\"],\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 // TODO: set to \"static public field\" once @anolilab/babel-preset supports public class fields\n \"react/static-property-placement\": [\"error\", \"property assignment\"],\n\n // Disallow JSX props spreading\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 html: \"enforce\",\n custom: \"enforce\",\n explicitSpread: \"ignore\",\n exceptions: [],\n },\n ],\n\n // Enforce that props are read-only\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 // Prevent usage of `javascript:` URLs\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 // Disallow unnecessary fragments\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 // Prevent adjacent inline elements not separated by whitespace\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 // Enforce a specific function type for function components\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 // Enforce a new line after jsx elements and expressions\n // https://github.com/yannickcr/eslint-plugin-react/blob/e2eaadae316f9506d163812a09424eb42698470a/docs/rules/jsx-newline.md\n \"react/jsx-newline\": \"off\",\n\n // Prevent react contexts from taking non-stable values\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 ...prettierReactRules,\n },\n },\n {\n files: [\"*.jsx\"],\n rules: {\n // only .jsx files may have JSX\n // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md\n \"react/jsx-filename-extension\": \"error\",\n\n // Prevents common casing typos\n // https://github.com/yannickcr/eslint-plugin-react/blob/73abadb697034b5ccb514d79fb4689836fe61f91/docs/rules/no-typos.md\n \"react/no-typos\": \"error\",\n\n // Validate closing tag location in 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 // Prevent missing parentheses around multilines 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 // eslint-disable-next-line sonarjs/no-duplicate-string\n declaration: \"parens-new-line\",\n assignment: \"parens-new-line\",\n return: \"parens-new-line\",\n arrow: \"parens-new-line\",\n condition: \"parens-new-line\",\n logical: \"parens-new-line\",\n prop: \"parens-new-line\",\n },\n ],\n },\n },\n {\n files: [\"*.tsx\"],\n rules: {\n // Disable JS specific rules\n \"react/jsx-filename-extension\": \"off\",\n \"react/default-props-match-prop-types\": \"off\",\n \"react/prop-types\": \"off\",\n },\n },\n ],\n};\n\nexport default config;\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { b } from '../../chunk-G7JIJH44.mjs';
|
|
2
|
+
import { a as a$1 } from '../../chunk-F6JHPR4L.mjs';
|
|
3
|
+
import { hasAnyDep, pkg } from '@anolilab/package-json-utils';
|
|
4
|
+
import p from 'find-up';
|
|
5
|
+
|
|
6
|
+
var t=a$1.rules,e=t["no-underscore-dangle"],c={};hasAnyDep(["react","react-dom"],{peerDeps:!1})&&(c={"react/jsx-indent":"off","react/jsx-closing-tag-location":"off","react/jsx-closing-bracket-location":"off","react/jsx-curly-spacing":"off","react/jsx-equals-spacing":"off","react/jsx-first-prop-new-line":"off","react/jsx-indent-props":"off","react/jsx-max-props-per-line":"off","react/jsx-tag-spacing":"off","react/jsx-wrap-multilines":"off","react/prefer-stateless-function":"off","react/jsx-one-expression-per-line":"off","react/jsx-props-no-multi-spaces":"off"});var a=(()=>{if(!global.hasAnolilabEsLintConfigReactRuntimePath){let o=p.sync("node_modules/react/jsx-runtime.js");typeof o=="string"&&b(`
|
|
7
|
+
@anolilab/eslint-config found react jsx-runtime.
|
|
8
|
+
|
|
9
|
+
Following rules are disabled: "react/jsx-uses-react" and "react/react-in-jsx-scope".
|
|
10
|
+
If you dont use the new react jsx-runtime in you project, please enable it manually.
|
|
11
|
+
`),global.hasAnolilabEsLintConfigReactRuntimePath=typeof o=="string";}return global.hasAnolilabEsLintConfigReactRuntimePath})(),f=pkg?.dependencies??{},r=(f?.react??"").split("."),u={overrides:[{files:["*.jsx","*.tsx"],plugins:["react"],env:{browser:!0},parserOptions:{ecmaFeatures:{jsx:!0}},settings:{"import/resolver":{node:{extensions:[".js",".jsx",".json",".cjs",".mjs"]}},react:{version:r[0]?`${r[0]}.${r[1]??"0"}}`:"detect"},propWrapperFunctions:["forbidExtraProps","exact","Object.freeze"]},rules:{"no-underscore-dangle":[e[0],{...e[1],allow:[...e[1].allow,"__REDUX_DEVTOOLS_EXTENSION_COMPOSE__"]}],"jsx-quotes":["error","prefer-double"],"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"]}],"react/display-name":["off",{ignoreTranspilerName:!1}],"react/forbid-prop-types":["error",{forbid:["any","array","object"],checkContextTypes:!0,checkChildContextTypes:!0}],"react/forbid-dom-props":["off",{forbid:[]}],"react/jsx-boolean-value":["error","never",{always:[]}],"react/jsx-closing-bracket-location":["error","line-aligned"],"react/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"react/jsx-handler-names":["off",{eventHandlerPrefix:"handle",eventHandlerPropPrefix:"on"}],"react/jsx-indent-props":["error",t.indent[1]],"react/jsx-key":"off","react/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"react/jsx-no-bind":["error",{ignoreRefs:!0,allowArrowFunctions:!0,allowFunctions:!1,allowBind:!1,ignoreDOMComponents:!0}],"react/jsx-no-duplicate-props":["error",{ignoreCase:!0}],"react/jsx-no-literals":["off",{noStrings:!0}],"react/jsx-no-undef":"error","react/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],"react/sort-prop-types":["off",{ignoreCase:!0,callbacksLast:!1,requiredFirst:!1,sortShapeProp:!0}],"react/jsx-sort-props":["off",{ignoreCase:!0,callbacksLast:!1,shorthandFirst:!1,shorthandLast:!1,noSortAlphabetically:!1,reservedFirst:!0}],"react/jsx-uses-react":[a?"off":"error"],"react/jsx-uses-vars":"error","react/no-danger":"warn","react/no-deprecated":["error"],"react/no-did-mount-set-state":"off","react/no-did-update-set-state":"error","react/no-will-update-set-state":"error","react/no-direct-mutation-state":"error","react/no-is-mounted":"error","react/no-multi-comp":"off","react/no-set-state":"off","react/no-string-refs":"error","react/no-unknown-property":"error","react/prefer-es6-class":["error","always"],"react/prefer-stateless-function":["error",{ignorePureComponents:!0}],"react/prop-types":["error",{ignore:[],customValidators:[],skipUndeclared:!1}],"react/react-in-jsx-scope":a?"off":"error","react/require-render-return":"error","react/self-closing-comp":"error","react/sort-default-props":["error",{ignoreCase:!0}],"react/sort-comp":["error",{order:["static-variables","static-methods","instance-variables","lifecycle","/^handle.+$/","/^on.+$/","getters","setters","/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/","instance-methods","everything-else","rendering"],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"]}}],"react/jsx-first-prop-new-line":["error","multiline-multiprop"],"react/jsx-equals-spacing":["error","never"],"react/jsx-indent":["error",t.indent[1],{checkAttributes:!0,indentLogicalExpressions:!0}],"react/jsx-no-target-blank":["error",{enforceDynamicLinks:"always"}],"react/jsx-no-comment-textnodes":"error","react/no-render-return-value":"error","react/require-optimization":["off",{allowDecorators:[]}],"react/no-find-dom-node":"error","react/forbid-component-props":["off",{forbid:[]}],"react/forbid-elements":["off",{forbid:[]}],"react/no-danger-with-children":"error","react/no-unused-prop-types":["error",{customValidators:[],skipShapeProps:!0}],"react/style-prop-object":"error","react/no-unescaped-entities":"error","react/no-children-prop":"error","react/jsx-tag-spacing":["error",{closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"never"}],"react/jsx-space-before-closing":["off","always"],"react/no-array-index-key":"error","react/require-default-props":["error",{forbidDefaultForRequired:!0}],"react/forbid-foreign-prop-types":["warn",{allowInPropTypes:!0}],"react/void-dom-elements-no-children":"error","react/default-props-match-prop-types":["error",{allowRequiredDefaults:!1}],"react/no-redundant-should-component-update":"error","react/no-unused-state":"error","react/boolean-prop-naming":["off",{propTypeNames:["bool","mutuallyExclusiveTrueProps"],rule:"^(is|has)[A-Z]([A-Za-z0-9]?)+",message:""}],"react/jsx-curly-brace-presence":["error",{props:"never",children:"never"}],"react/jsx-one-expression-per-line":["error",{allow:"single-child"}],"react/destructuring-assignment":["error","always"],"react/no-access-state-in-setstate":"error","react/button-has-type":["error",{button:!0,submit:!0,reset:!1}],"react/jsx-child-element-spacing":"off","react/no-this-in-sfc":"error","react/jsx-max-depth":"off","react/jsx-props-no-multi-spaces":"error","react/no-unsafe":"off","react/jsx-fragments":["error","syntax"],"react/jsx-curly-newline":["error",{multiline:"consistent",singleline:"consistent"}],"react/state-in-constructor":["error","always"],"react/static-property-placement":["error","property assignment"],"react/jsx-props-no-spreading":["error",{html:"enforce",custom:"enforce",explicitSpread:"ignore",exceptions:[]}],"react/prefer-read-only-props":"off","react/jsx-no-script-url":["error",[{name:"Link",props:["to"]}]],"react/jsx-no-useless-fragment":"error","react/no-adjacent-inline-elements":"error","react/function-component-definition":["error",{namedComponents:"arrow-function",unnamedComponents:"arrow-function"}],"react/jsx-newline":"off","react/jsx-no-constructed-context-values":"error",...c}},{files:["*.jsx"],rules:{"react/jsx-filename-extension":"error","react/no-typos":"error","react/jsx-closing-tag-location":"error","react/jsx-wrap-multilines":["error",{declaration:"parens-new-line",assignment:"parens-new-line",return:"parens-new-line",arrow:"parens-new-line",condition:"parens-new-line",logical:"parens-new-line",prop:"parens-new-line"}]}},{files:["*.tsx"],rules:{"react/jsx-filename-extension":"off","react/default-props-match-prop-types":"off","react/prop-types":"off"}}]},j=u;
|
|
12
|
+
|
|
13
|
+
export { j as default };
|
|
14
|
+
//# sourceMappingURL=out.js.map
|
|
15
|
+
//# sourceMappingURL=react.mjs.map
|