@ethang/eslint-config 19.15.2 → 19.15.3

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.
Files changed (51) hide show
  1. package/chunk-NR4FIKOF.js +8 -0
  2. package/chunk-NR4FIKOF.js.map +1 -0
  3. package/config.astro.js +10 -11
  4. package/config.astro.js.map +1 -0
  5. package/config.react.js +13 -18
  6. package/config.react.js.map +1 -0
  7. package/config.solid.js +9 -10
  8. package/config.solid.js.map +1 -0
  9. package/constants.js +3 -11
  10. package/constants.js.map +1 -0
  11. package/eslint.config.js +79 -70
  12. package/eslint.config.js.map +1 -0
  13. package/package.json +21 -54
  14. package/.gitattributes +0 -1
  15. package/.github/dependabot.yml +0 -13
  16. package/.idea/codeStyles/Project.xml +0 -57
  17. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  18. package/README.md +0 -98
  19. package/build/create-config-file.ts +0 -51
  20. package/build/create-config.ts +0 -63
  21. package/build/get-react-version.ts +0 -4
  22. package/build/list-utils.ts +0 -102
  23. package/build/rule-list.ts +0 -293
  24. package/build/update-readme.ts +0 -180
  25. package/build/update-rules.ts +0 -101
  26. package/build.mjs +0 -16
  27. package/setup/a11y.ts +0 -18
  28. package/setup/astro.ts +0 -13
  29. package/setup/barrel.ts +0 -13
  30. package/setup/compat.ts +0 -12
  31. package/setup/cspell.ts +0 -55
  32. package/setup/depend.ts +0 -13
  33. package/setup/deprecated.ts +0 -18
  34. package/setup/eslint.ts +0 -237
  35. package/setup/gen-rules.ts +0 -60
  36. package/setup/json.ts +0 -15
  37. package/setup/lodash.ts +0 -50
  38. package/setup/markdown.ts +0 -12
  39. package/setup/n.ts +0 -85
  40. package/setup/perfectionist.ts +0 -62
  41. package/setup/react.ts +0 -77
  42. package/setup/solid.ts +0 -15
  43. package/setup/sonar.ts +0 -43
  44. package/setup/stylistic-ts.ts +0 -51
  45. package/setup/stylistic.ts +0 -68
  46. package/setup/tailwind.ts +0 -8
  47. package/setup/tanstack-query.ts +0 -8
  48. package/setup/tanstack-router.ts +0 -7
  49. package/setup/typescript-eslint.ts +0 -112
  50. package/setup/unicorn.ts +0 -37
  51. package/tsconfig.json +0 -10
@@ -0,0 +1,8 @@
1
+ import { parser as o } from "typescript-eslint";
2
+ var r = ["eslint.config.js", "node_modules", "dist"],
3
+ e = {
4
+ parser: o,
5
+ parserOptions: { project: !0, tsconfigRootDir: import.meta.dirname },
6
+ };
7
+ export { r as a, e as b };
8
+ //# sourceMappingURL=chunk-NR4FIKOF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/constants.js"],"sourcesContent":["import { parser } from \"typescript-eslint\";\n\nexport const ignores = [\"eslint.config.js\", \"node_modules\", \"dist\"];\n\nexport const languageOptions = {\n parser,\n parserOptions: {\n project: true,\n tsconfigRootDir: import.meta.dirname,\n },\n};\n"],"mappings":"AAAA,OAAS,UAAAA,MAAc,oBAEhB,IAAMC,EAAU,CAAC,mBAAoB,eAAgB,MAAM,EAErDC,EAAkB,CAC7B,OAAAF,EACA,cAAe,CACb,QAAS,GACT,gBAAiB,YAAY,OAC/B,CACF","names":["parser","ignores","languageOptions"]}
package/config.astro.js CHANGED
@@ -1,14 +1,11 @@
1
- import { ignores, languageOptions } from "./constants.js";
2
- import astro from "eslint-plugin-astro";
3
- import tseslint from "typescript-eslint";
4
-
5
- export default tseslint.config({
1
+ import { a as r, b as o } from "./chunk-NR4FIKOF.js";
2
+ import e from "eslint-plugin-astro";
3
+ import a from "typescript-eslint";
4
+ var i = a.config({
6
5
  files: ["**/*.{astro}"],
7
- ignores,
8
- languageOptions,
9
- plugins: {
10
- astro: astro,
11
- },
6
+ ignores: r,
7
+ languageOptions: o,
8
+ plugins: { astro: e },
12
9
  rules: {
13
10
  "astro/jsx-a11y/alt-text": "error",
14
11
  "astro/jsx-a11y/anchor-ambiguous-text": "error",
@@ -53,7 +50,7 @@ export default tseslint.config({
53
50
  "astro/no-deprecated-astro-resolve": "error",
54
51
  "astro/no-deprecated-getentrybyslug": "error",
55
52
  "astro/no-exports-from-components": "error",
56
- "astro/no-set-html-directive": 'off"',
53
+ "astro/no-set-html-directive": "off",
57
54
  "astro/no-set-text-directive": "error",
58
55
  "astro/no-unused-css-selector": "error",
59
56
  "astro/no-unused-define-vars-in-style": "error",
@@ -65,3 +62,5 @@ export default tseslint.config({
65
62
  "astro/valid-compile": "error",
66
63
  },
67
64
  });
65
+ export { i as default };
66
+ //# sourceMappingURL=config.astro.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/config.astro.js"],"sourcesContent":["// @ts-nocheck\nimport { ignores, languageOptions } from \"./constants.js\";\nimport astro from \"eslint-plugin-astro\";\nimport tseslint from \"typescript-eslint\";\n\nexport default tseslint.config(\n {\n files: [\"**/*.{astro}\"],\nignores,\nlanguageOptions,\n plugins: {\n \"astro\": astro,\n },\n rules: {\n \"astro/jsx-a11y/alt-text\":\"error\",\"astro/jsx-a11y/anchor-ambiguous-text\":\"error\",\"astro/jsx-a11y/anchor-has-content\":\"error\",\"astro/jsx-a11y/anchor-is-valid\":\"error\",\"astro/jsx-a11y/aria-activedescendant-has-tabindex\":\"error\",\"astro/jsx-a11y/aria-props\":\"error\",\"astro/jsx-a11y/aria-proptypes\":\"error\",\"astro/jsx-a11y/aria-role\":\"error\",\"astro/jsx-a11y/aria-unsupported-elements\":\"error\",\"astro/jsx-a11y/autocomplete-valid\":\"error\",\"astro/jsx-a11y/click-events-have-key-events\":\"error\",\"astro/jsx-a11y/control-has-associated-label\":\"error\",\"astro/jsx-a11y/heading-has-content\":\"error\",\"astro/jsx-a11y/html-has-lang\":\"error\",\"astro/jsx-a11y/iframe-has-title\":\"error\",\"astro/jsx-a11y/img-redundant-alt\":\"error\",\"astro/jsx-a11y/interactive-supports-focus\":\"error\",\"astro/jsx-a11y/label-has-associated-control\":\"error\",\"astro/jsx-a11y/lang\":\"error\",\"astro/jsx-a11y/media-has-caption\":\"error\",\"astro/jsx-a11y/mouse-events-have-key-events\":\"error\",\"astro/jsx-a11y/no-access-key\":\"error\",\"astro/jsx-a11y/no-aria-hidden-on-focusable\":\"error\",\"astro/jsx-a11y/no-autofocus\":\"error\",\"astro/jsx-a11y/no-distracting-elements\":\"error\",\"astro/jsx-a11y/no-interactive-element-to-noninteractive-role\":\"error\",\"astro/jsx-a11y/no-noninteractive-element-interactions\":\"error\",\"astro/jsx-a11y/no-noninteractive-element-to-interactive-role\":\"error\",\"astro/jsx-a11y/no-noninteractive-tabindex\":\"error\",\"astro/jsx-a11y/no-redundant-roles\":\"error\",\"astro/jsx-a11y/no-static-element-interactions\":\"error\",\"astro/jsx-a11y/prefer-tag-over-role\":\"error\",\"astro/jsx-a11y/role-has-required-aria-props\":\"error\",\"astro/jsx-a11y/role-supports-aria-props\":\"error\",\"astro/jsx-a11y/scope\":\"error\",\"astro/jsx-a11y/tabindex-no-positive\":\"error\",\"astro/missing-client-only-directive-value\":\"error\",\"astro/no-conflict-set-directives\":\"error\",\"astro/no-deprecated-astro-canonicalurl\":\"error\",\"astro/no-deprecated-astro-fetchcontent\":\"error\",\"astro/no-deprecated-astro-resolve\":\"error\",\"astro/no-deprecated-getentrybyslug\":\"error\",\"astro/no-exports-from-components\":\"error\",\"astro/no-set-html-directive\":\"off\",\"astro/no-set-text-directive\":\"error\",\"astro/no-unused-css-selector\":\"error\",\"astro/no-unused-define-vars-in-style\":\"error\",\"astro/prefer-class-list-directive\":\"error\",\"astro/prefer-object-class-list\":\"error\",\"astro/prefer-split-class-list\":\"error\",\"astro/semi\":\"error\",\"astro/sort-attributes\":\"error\",\"astro/valid-compile\":\"error\"\n },\n },\n );\n"],"mappings":"+CAEA,OAAOA,MAAW,sBAClB,OAAOC,MAAc,oBAErB,IAAOC,EAAQD,EAAS,OACpB,CACA,MAAO,CAAC,cAAc,EAC1B,QAAAE,EACA,gBAAAC,EACI,QAAS,CACP,MAASJ,CACX,EACA,MAAO,CACL,0BAA0B,QAAQ,uCAAuC,QAAQ,oCAAoC,QAAQ,iCAAiC,QAAQ,oDAAoD,QAAQ,4BAA4B,QAAQ,gCAAgC,QAAQ,2BAA2B,QAAQ,2CAA2C,QAAQ,oCAAoC,QAAQ,8CAA8C,QAAQ,8CAA8C,QAAQ,qCAAqC,QAAQ,+BAA+B,QAAQ,kCAAkC,QAAQ,mCAAmC,QAAQ,4CAA4C,QAAQ,8CAA8C,QAAQ,sBAAsB,QAAQ,mCAAmC,QAAQ,8CAA8C,QAAQ,+BAA+B,QAAQ,6CAA6C,QAAQ,8BAA8B,QAAQ,yCAAyC,QAAQ,+DAA+D,QAAQ,wDAAwD,QAAQ,+DAA+D,QAAQ,4CAA4C,QAAQ,oCAAoC,QAAQ,gDAAgD,QAAQ,sCAAsC,QAAQ,8CAA8C,QAAQ,0CAA0C,QAAQ,uBAAuB,QAAQ,sCAAsC,QAAQ,4CAA4C,QAAQ,mCAAmC,QAAQ,yCAAyC,QAAQ,yCAAyC,QAAQ,oCAAoC,QAAQ,qCAAqC,QAAQ,mCAAmC,QAAQ,8BAA8B,MAAM,8BAA8B,QAAQ,+BAA+B,QAAQ,uCAAuC,QAAQ,oCAAoC,QAAQ,iCAAiC,QAAQ,gCAAgC,QAAQ,aAAa,QAAQ,wBAAwB,QAAQ,sBAAsB,OACz1E,CACF,CACA","names":["astro","tseslint","config_astro_default","ignores","languageOptions"]}
package/config.react.js CHANGED
@@ -1,21 +1,14 @@
1
- import { ignores, languageOptions } from "./constants.js";
2
- import react from "@eslint-react/eslint-plugin";
3
- import reactCompiler from "eslint-plugin-react-compiler";
4
- import reactHooks from "eslint-plugin-react-hooks";
5
- import tseslint from "typescript-eslint";
6
-
7
- export default tseslint.config({
1
+ import { a as r, b as e } from "./chunk-NR4FIKOF.js";
2
+ import o from "@eslint-react/eslint-plugin";
3
+ import t from "eslint-plugin-react-compiler";
4
+ import n from "eslint-plugin-react-hooks";
5
+ import a from "typescript-eslint";
6
+ var l = a.config({
8
7
  files: ["**/*.{jsx,tsx}"],
9
- ignores,
10
- languageOptions,
11
- settings: {
12
- react: { version: "18.3.1" },
13
- },
14
- plugins: {
15
- react: react,
16
- "react-hooks": reactHooks,
17
- "react-compiler": reactCompiler,
18
- },
8
+ ignores: r,
9
+ languageOptions: e,
10
+ settings: { react: { version: "18.3.1" } },
11
+ plugins: { react: o, "react-hooks": n, "react-compiler": t },
19
12
  rules: {
20
13
  "react/avoid-shorthand-boolean": "off",
21
14
  "react/avoid-shorthand-fragment": "off",
@@ -91,7 +84,7 @@ export default tseslint.config({
91
84
  "react/no-unused-state": "error",
92
85
  "react/no-useless-fragment": "error",
93
86
  "react/prefer-destructuring-assignment": "error",
94
- "react/prefer-react-namespace-import": "off",
87
+ "react/prefer-react-namespace-import": "error",
95
88
  "react/prefer-read-only-props": "error",
96
89
  "react/prefer-shorthand-boolean": "error",
97
90
  "react/prefer-shorthand-fragment": "error",
@@ -104,3 +97,5 @@ export default tseslint.config({
104
97
  "react-compiler/react-compiler": "error",
105
98
  },
106
99
  });
100
+ export { l as default };
101
+ //# sourceMappingURL=config.react.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/config.react.js"],"sourcesContent":["// @ts-nocheck\nimport { ignores, languageOptions } from \"./constants.js\";\nimport react from \"@eslint-react/eslint-plugin\";\nimport reactCompiler from \"eslint-plugin-react-compiler\";\nimport reactHooks from \"eslint-plugin-react-hooks\";\nimport tseslint from \"typescript-eslint\";\n\nexport default tseslint.config(\n {\n files: [\"**/*.{jsx,tsx}\"],\nignores,\nlanguageOptions,\nsettings: {\n \"react\":{\"version\":\"18.3.1\"}\n},\n plugins: {\n \"react\": react,\"react-hooks\": reactHooks,\"react-compiler\": reactCompiler,\n },\n rules: {\n \"react/avoid-shorthand-boolean\":\"off\",\"react/avoid-shorthand-fragment\":\"off\",\"react/debug/class-component\":\"off\",\"react/debug/function-component\":\"off\",\"react/debug/hook\":\"off\",\"react/debug/is-from-react\":\"off\",\"react/debug/react-hooks\":\"off\",\"react/dom/no-children-in-void-dom-elements\":\"error\",\"react/dom/no-dangerously-set-innerhtml\":\"error\",\"react/dom/no-dangerously-set-innerhtml-with-children\":\"error\",\"react/dom/no-find-dom-node\":\"error\",\"react/dom/no-missing-button-type\":\"error\",\"react/dom/no-missing-iframe-sandbox\":\"error\",\"react/dom/no-namespace\":\"error\",\"react/dom/no-render-return-value\":\"error\",\"react/dom/no-script-url\":\"error\",\"react/dom/no-unknown-property\":\"error\",\"react/dom/no-unsafe-iframe-sandbox\":\"error\",\"react/dom/no-unsafe-target-blank\":\"error\",\"react/ensure-forward-ref-using-ref\":\"error\",\"react/hooks-extra/ensure-custom-hooks-using-other-hooks\":\"error\",\"react/hooks-extra/ensure-use-memo-has-non-empty-deps\":\"error\",\"react/hooks-extra/no-direct-set-state-in-use-effect\":\"error\",\"react/hooks-extra/no-direct-set-state-in-use-layout-effect\":\"error\",\"react/hooks-extra/no-redundant-custom-hook\":\"error\",\"react/hooks-extra/no-unnecessary-use-callback\":\"error\",\"react/hooks-extra/no-unnecessary-use-memo\":\"error\",\"react/hooks-extra/prefer-use-state-lazy-initialization\":\"error\",\"react/jsx-no-duplicate-props\":\"error\",\"react/jsx-uses-vars\":\"error\",\"react/naming-convention/component-name\":\"error\",\"react/naming-convention/filename\":[\"error\",{\"rule\":\"kebab-case\"}],\"react/naming-convention/filename-extension\":\"error\",\"react/naming-convention/use-state\":\"error\",\"react/no-access-state-in-setstate\":\"error\",\"react/no-array-index-key\":\"error\",\"react/no-children-count\":\"error\",\"react/no-children-for-each\":\"error\",\"react/no-children-map\":\"error\",\"react/no-children-only\":\"error\",\"react/no-children-prop\":\"error\",\"react/no-children-to-array\":\"error\",\"react/no-class-component\":\"error\",\"react/no-clone-element\":\"error\",\"react/no-comment-textnodes\":\"error\",\"react/no-complex-conditional-rendering\":\"error\",\"react/no-complicated-conditional-rendering\":\"error\",\"react/no-component-will-mount\":\"error\",\"react/no-component-will-receive-props\":\"error\",\"react/no-component-will-update\":\"error\",\"react/no-create-ref\":\"error\",\"react/no-default-props\":\"error\",\"react/no-direct-mutation-state\":\"error\",\"react/no-duplicate-key\":\"error\",\"react/no-implicit-key\":\"error\",\"react/no-leaked-conditional-rendering\":\"error\",\"react/no-missing-component-display-name\":\"error\",\"react/no-missing-key\":\"error\",\"react/no-nested-components\":\"error\",\"react/no-prop-types\":\"error\",\"react/no-redundant-should-component-update\":\"error\",\"react/no-set-state-in-component-did-mount\":\"error\",\"react/no-set-state-in-component-did-update\":\"error\",\"react/no-set-state-in-component-will-update\":\"error\",\"react/no-string-refs\":\"error\",\"react/no-unsafe-component-will-mount\":\"error\",\"react/no-unsafe-component-will-receive-props\":\"error\",\"react/no-unsafe-component-will-update\":\"error\",\"react/no-unstable-context-value\":\"error\",\"react/no-unstable-default-props\":\"error\",\"react/no-unused-class-component-members\":\"error\",\"react/no-unused-state\":\"error\",\"react/no-useless-fragment\":\"error\",\"react/prefer-destructuring-assignment\":\"error\",\"react/prefer-react-namespace-import\":\"error\",\"react/prefer-read-only-props\":\"error\",\"react/prefer-shorthand-boolean\":\"error\",\"react/prefer-shorthand-fragment\":\"error\",\"react/web-api/no-leaked-event-listener\":\"error\",\"react/web-api/no-leaked-interval\":\"error\",\"react/web-api/no-leaked-resize-observer\":\"error\",\"react/web-api/no-leaked-timeout\":\"error\",\"react-hooks/exhaustive-deps\":\"error\",\"react-hooks/rules-of-hooks\":\"error\",\"react-compiler/react-compiler\":\"error\"\n },\n },\n );\n"],"mappings":"+CAEA,OAAOA,MAAW,8BAClB,OAAOC,MAAmB,+BAC1B,OAAOC,MAAgB,4BACvB,OAAOC,MAAc,oBAErB,IAAOC,EAAQD,EAAS,OACpB,CACA,MAAO,CAAC,gBAAgB,EAC5B,QAAAE,EACA,gBAAAC,EACA,SAAU,CACR,MAAQ,CAAC,QAAU,QAAQ,CAC7B,EACI,QAAS,CACP,MAASN,EAAM,cAAeE,EAAW,iBAAkBD,CAC7D,EACA,MAAO,CACL,gCAAgC,MAAM,iCAAiC,MAAM,8BAA8B,MAAM,iCAAiC,MAAM,mBAAmB,MAAM,4BAA4B,MAAM,0BAA0B,MAAM,6CAA6C,QAAQ,yCAAyC,QAAQ,uDAAuD,QAAQ,6BAA6B,QAAQ,mCAAmC,QAAQ,sCAAsC,QAAQ,yBAAyB,QAAQ,mCAAmC,QAAQ,0BAA0B,QAAQ,gCAAgC,QAAQ,qCAAqC,QAAQ,mCAAmC,QAAQ,qCAAqC,QAAQ,0DAA0D,QAAQ,uDAAuD,QAAQ,sDAAsD,QAAQ,6DAA6D,QAAQ,6CAA6C,QAAQ,gDAAgD,QAAQ,4CAA4C,QAAQ,yDAAyD,QAAQ,+BAA+B,QAAQ,sBAAsB,QAAQ,yCAAyC,QAAQ,mCAAmC,CAAC,QAAQ,CAAC,KAAO,YAAY,CAAC,EAAE,6CAA6C,QAAQ,oCAAoC,QAAQ,oCAAoC,QAAQ,2BAA2B,QAAQ,0BAA0B,QAAQ,6BAA6B,QAAQ,wBAAwB,QAAQ,yBAAyB,QAAQ,yBAAyB,QAAQ,6BAA6B,QAAQ,2BAA2B,QAAQ,yBAAyB,QAAQ,6BAA6B,QAAQ,yCAAyC,QAAQ,6CAA6C,QAAQ,gCAAgC,QAAQ,wCAAwC,QAAQ,iCAAiC,QAAQ,sBAAsB,QAAQ,yBAAyB,QAAQ,iCAAiC,QAAQ,yBAAyB,QAAQ,wBAAwB,QAAQ,wCAAwC,QAAQ,0CAA0C,QAAQ,uBAAuB,QAAQ,6BAA6B,QAAQ,sBAAsB,QAAQ,6CAA6C,QAAQ,4CAA4C,QAAQ,6CAA6C,QAAQ,8CAA8C,QAAQ,uBAAuB,QAAQ,uCAAuC,QAAQ,+CAA+C,QAAQ,wCAAwC,QAAQ,kCAAkC,QAAQ,kCAAkC,QAAQ,0CAA0C,QAAQ,wBAAwB,QAAQ,4BAA4B,QAAQ,wCAAwC,QAAQ,sCAAsC,QAAQ,+BAA+B,QAAQ,iCAAiC,QAAQ,kCAAkC,QAAQ,yCAAyC,QAAQ,mCAAmC,QAAQ,0CAA0C,QAAQ,kCAAkC,QAAQ,8BAA8B,QAAQ,6BAA6B,QAAQ,gCAAgC,OAC3lH,CACF,CACA","names":["react","reactCompiler","reactHooks","tseslint","config_react_default","ignores","languageOptions"]}
package/config.solid.js CHANGED
@@ -1,14 +1,11 @@
1
- import { ignores, languageOptions } from "./constants.js";
2
- import solid from "eslint-plugin-solid";
3
- import tseslint from "typescript-eslint";
4
-
5
- export default tseslint.config({
1
+ import { a as r, b as o } from "./chunk-NR4FIKOF.js";
2
+ import s from "eslint-plugin-solid";
3
+ import e from "typescript-eslint";
4
+ var d = e.config({
6
5
  files: ["**/*.{jsx,tsx}"],
7
- ignores,
8
- languageOptions,
9
- plugins: {
10
- solid: solid,
11
- },
6
+ ignores: r,
7
+ languageOptions: o,
8
+ plugins: { solid: s },
12
9
  rules: {
13
10
  "solid/components-return-once": "error",
14
11
  "solid/event-handlers": "error",
@@ -31,3 +28,5 @@ export default tseslint.config({
31
28
  "solid/style-prop": "error",
32
29
  },
33
30
  });
31
+ export { d as default };
32
+ //# sourceMappingURL=config.solid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/config.solid.js"],"sourcesContent":["// @ts-nocheck\nimport { ignores, languageOptions } from \"./constants.js\";\nimport solid from \"eslint-plugin-solid\";\nimport tseslint from \"typescript-eslint\";\n\nexport default tseslint.config(\n {\n files: [\"**/*.{jsx,tsx}\"],\nignores,\nlanguageOptions,\n plugins: {\n \"solid\": solid,\n },\n rules: {\n \"solid/components-return-once\":\"error\",\"solid/event-handlers\":\"error\",\"solid/imports\":\"error\",\"solid/jsx-no-duplicate-props\":\"error\",\"solid/jsx-no-script-url\":\"error\",\"solid/jsx-no-undef\":\"error\",\"solid/jsx-uses-vars\":\"error\",\"solid/no-array-handlers\":\"error\",\"solid/no-destructure\":\"error\",\"solid/no-innerhtml\":\"error\",\"solid/no-proxy-apis\":\"off\",\"solid/no-react-deps\":\"error\",\"solid/no-react-specific-props\":\"error\",\"solid/no-unknown-namespaces\":\"error\",\"solid/prefer-for\":\"error\",\"solid/prefer-show\":\"error\",\"solid/reactivity\":\"error\",\"solid/self-closing-comp\":\"error\",\"solid/style-prop\":\"error\"\n },\n },\n );\n"],"mappings":"+CAEA,OAAOA,MAAW,sBAClB,OAAOC,MAAc,oBAErB,IAAOC,EAAQD,EAAS,OACpB,CACA,MAAO,CAAC,gBAAgB,EAC5B,QAAAE,EACA,gBAAAC,EACI,QAAS,CACP,MAASJ,CACX,EACA,MAAO,CACL,+BAA+B,QAAQ,uBAAuB,QAAQ,gBAAgB,QAAQ,+BAA+B,QAAQ,0BAA0B,QAAQ,qBAAqB,QAAQ,sBAAsB,QAAQ,0BAA0B,QAAQ,uBAAuB,QAAQ,qBAAqB,QAAQ,sBAAsB,MAAM,sBAAsB,QAAQ,gCAAgC,QAAQ,8BAA8B,QAAQ,mBAAmB,QAAQ,oBAAoB,QAAQ,mBAAmB,QAAQ,0BAA0B,QAAQ,mBAAmB,OACjlB,CACF,CACA","names":["solid","tseslint","config_solid_default","ignores","languageOptions"]}
package/constants.js CHANGED
@@ -1,11 +1,3 @@
1
- import { parser } from "typescript-eslint";
2
-
3
- export const ignores = ["eslint.config.js", "node_modules", "dist"];
4
-
5
- export const languageOptions = {
6
- parser,
7
- parserOptions: {
8
- project: true,
9
- tsconfigRootDir: import.meta.dirname,
10
- },
11
- };
1
+ import { a, b } from "./chunk-NR4FIKOF.js";
2
+ export { a as ignores, b as languageOptions };
3
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/eslint.config.js CHANGED
@@ -1,49 +1,46 @@
1
- import { fixupPluginRules } from "@eslint/compat";
2
- import { ignores, languageOptions } from "./constants.js";
3
- import a11y from "eslint-plugin-jsx-a11y";
4
- import barrel from "eslint-plugin-barrel-files";
5
- import compat from "eslint-plugin-compat";
6
- import cspell from "@cspell/eslint-plugin";
7
- import depend from "eslint-plugin-depend";
8
- import json from "@eslint/json";
9
- import lodashConfig from "eslint-plugin-lodash";
10
- import markdown from "@eslint/markdown";
11
- import n from "eslint-plugin-n";
12
- import perfectionist from "eslint-plugin-perfectionist";
13
- import sonar from "eslint-plugin-sonarjs";
14
- import stylistic from "@stylistic/eslint-plugin";
15
- import stylisticTs from "@stylistic/eslint-plugin-ts";
16
- import tailwind from "eslint-plugin-tailwindcss";
17
- import tanstackQuery from "@tanstack/eslint-plugin-query";
18
- import tanstackRouter from "@tanstack/eslint-plugin-router";
19
- import tseslint from "typescript-eslint";
20
- import unicorn from "eslint-plugin-unicorn";
21
-
22
- export default tseslint.config(
1
+ import { a as e, b as o } from "./chunk-NR4FIKOF.js";
2
+ import { fixupPluginRules as s } from "@eslint/compat";
3
+ import t from "eslint-plugin-jsx-a11y";
4
+ import i from "eslint-plugin-barrel-files";
5
+ import a from "eslint-plugin-compat";
6
+ import c from "@cspell/eslint-plugin";
7
+ import l from "eslint-plugin-depend";
8
+ import r from "@eslint/json";
9
+ import p from "eslint-plugin-lodash";
10
+ import f from "@eslint/markdown";
11
+ import u from "eslint-plugin-n";
12
+ import d from "eslint-plugin-perfectionist";
13
+ import y from "eslint-plugin-sonarjs";
14
+ import m from "@stylistic/eslint-plugin";
15
+ import g from "@stylistic/eslint-plugin-ts";
16
+ import b from "eslint-plugin-tailwindcss";
17
+ import h from "@tanstack/eslint-plugin-query";
18
+ import w from "@tanstack/eslint-plugin-router";
19
+ import n from "typescript-eslint";
20
+ import x from "eslint-plugin-unicorn";
21
+ var L = n.config(
23
22
  {
24
23
  files: ["**/*.{js,ts,jsx,tsx,cjs,cts,mjs,mts}"],
25
- ignores,
26
- languageOptions,
27
- settings: {
28
- react: { version: "18.3.1" },
29
- },
24
+ ignores: e,
25
+ languageOptions: o,
26
+ settings: { react: { version: "18.3.1" } },
30
27
  plugins: {
31
- depend: depend,
32
- cspell: cspell,
33
- barrel: barrel,
34
- compat: compat,
35
- n: n,
36
- "@typescript-eslint": tseslint.plugin,
37
- unicorn: unicorn,
38
- lodash: lodashConfig,
39
- sonar: fixupPluginRules(sonar),
40
- tailwind: tailwind,
41
- stylistic: stylistic,
42
- "stylistic-ts": stylisticTs,
43
- perfectionist: perfectionist,
44
- "@tanstack/query": tanstackQuery,
45
- "@tanstack/router": tanstackRouter,
46
- a11y: a11y,
28
+ depend: l,
29
+ cspell: c,
30
+ barrel: i,
31
+ compat: a,
32
+ n: u,
33
+ "@typescript-eslint": n.plugin,
34
+ unicorn: x,
35
+ lodash: p,
36
+ sonar: s(y),
37
+ tailwind: b,
38
+ stylistic: m,
39
+ "stylistic-ts": g,
40
+ perfectionist: d,
41
+ "@tanstack/query": h,
42
+ "@tanstack/router": w,
43
+ a11y: t,
47
44
  },
48
45
  rules: {
49
46
  "depend/ban-dependencies": ["error", { allowed: ["lodash", "fs-extra"] }],
@@ -52,6 +49,7 @@ export default tseslint.config(
52
49
  {
53
50
  cspell: {
54
51
  words: [
52
+ "typicode",
55
53
  "toolbelt",
56
54
  "taze",
57
55
  "ethang",
@@ -86,6 +84,12 @@ export default tseslint.config(
86
84
  "turso",
87
85
  "supabase",
88
86
  "solidjs",
87
+ "labelledby",
88
+ "svix",
89
+ "blockqoute",
90
+ "cortexjs",
91
+ "mathrm",
92
+ "nums",
89
93
  ],
90
94
  },
91
95
  },
@@ -115,7 +119,7 @@ export default tseslint.config(
115
119
  "for-direction": "error",
116
120
  "func-name-matching": "error",
117
121
  "func-names": "off",
118
- "func-style": ["error", "declaration", { allowArrowFunctions: true }],
122
+ "func-style": ["error", "declaration", { allowArrowFunctions: !0 }],
119
123
  "getter-return": "error",
120
124
  "grouped-accessor-pairs": "error",
121
125
  "guard-for-in": "error",
@@ -243,7 +247,7 @@ export default tseslint.config(
243
247
  "no-unsafe-negation": "error",
244
248
  "no-unsafe-optional-chaining": [
245
249
  "error",
246
- { disallowArithmeticOperators: true },
250
+ { disallowArithmeticOperators: !0 },
247
251
  ],
248
252
  "no-unused-expressions": "off",
249
253
  "no-unused-labels": "error",
@@ -417,6 +421,7 @@ export default tseslint.config(
417
421
  "@typescript-eslint/no-unsafe-function-type": "error",
418
422
  "@typescript-eslint/no-unsafe-member-access": "error",
419
423
  "@typescript-eslint/no-unsafe-return": "error",
424
+ "@typescript-eslint/no-unsafe-type-assertion": "error",
420
425
  "@typescript-eslint/no-unsafe-unary-minus": "error",
421
426
  "@typescript-eslint/no-unused-expressions": "error",
422
427
  "@typescript-eslint/no-unused-vars": [
@@ -427,7 +432,7 @@ export default tseslint.config(
427
432
  caughtErrors: "all",
428
433
  caughtErrorsIgnorePattern: "^_",
429
434
  destructuredArrayIgnorePattern: "^_",
430
- ignoreRestSiblings: true,
435
+ ignoreRestSiblings: !0,
431
436
  varsIgnorePattern: "^_",
432
437
  },
433
438
  ],
@@ -457,6 +462,7 @@ export default tseslint.config(
457
462
  "@typescript-eslint/prefer-return-this-type": "error",
458
463
  "@typescript-eslint/prefer-string-starts-ends-with": "error",
459
464
  "@typescript-eslint/promise-function-async": "error",
465
+ "@typescript-eslint/related-getter-setter-pairs": "error",
460
466
  "@typescript-eslint/require-array-sort-compare": "error",
461
467
  "@typescript-eslint/require-await": "error",
462
468
  "@typescript-eslint/restrict-plus-operands": "error",
@@ -615,7 +621,7 @@ export default tseslint.config(
615
621
  "lodash/prefer-flat-map": "error",
616
622
  "lodash/prefer-get": "error",
617
623
  "lodash/prefer-immutable-method": "error",
618
- "lodash/prefer-includes": [2, { includeNative: true }],
624
+ "lodash/prefer-includes": [2, { includeNative: !0 }],
619
625
  "lodash/prefer-invoke-map": "error",
620
626
  "lodash/prefer-is-nil": "error",
621
627
  "lodash/prefer-lodash-chain": "error",
@@ -626,7 +632,7 @@ export default tseslint.config(
626
632
  "lodash/prefer-noop": "error",
627
633
  "lodash/prefer-over-quantifier": "error",
628
634
  "lodash/prefer-reject": "error",
629
- "lodash/prefer-some": [2, { includeNative: true }],
635
+ "lodash/prefer-some": [2, { includeNative: !0 }],
630
636
  "lodash/prefer-startswith": "error",
631
637
  "lodash/prefer-thru": "error",
632
638
  "lodash/prefer-times": "error",
@@ -909,7 +915,7 @@ export default tseslint.config(
909
915
  "sonar/sonar-no-control-regex": "error",
910
916
  "sonar/sonar-no-dupe-keys": "error",
911
917
  "sonar/sonar-no-empty-character-class": "error",
912
- "sonar/sonar-no-fallthrough": "off",
918
+ "sonar/sonar-no-fallthrough": "error",
913
919
  "sonar/sonar-no-invalid-regexp": "error",
914
920
  "sonar/sonar-no-magic-numbers": "off",
915
921
  "sonar/sonar-no-misleading-character-class": "error",
@@ -988,7 +994,7 @@ export default tseslint.config(
988
994
  "stylistic/jsx-function-call-newline": "error",
989
995
  "stylistic/jsx-indent-props": ["error", 2],
990
996
  "stylistic/jsx-max-props-per-line": "error",
991
- "stylistic/jsx-newline": ["error", { prevent: true }],
997
+ "stylistic/jsx-newline": ["error", { prevent: !0 }],
992
998
  "stylistic/jsx-one-expression-per-line": "error",
993
999
  "stylistic/jsx-pascal-case": "error",
994
1000
  "stylistic/jsx-props-no-multi-spaces": "error",
@@ -1009,12 +1015,12 @@ export default tseslint.config(
1009
1015
  "stylistic/max-len": [
1010
1016
  "error",
1011
1017
  {
1012
- ignoreComments: true,
1013
- ignoreTrailingComments: true,
1014
- ignoreUrls: true,
1015
- ignoreStrings: true,
1016
- ignoreTemplateLiterals: true,
1017
- ignoreRegExpLiterals: true,
1018
+ ignoreComments: !0,
1019
+ ignoreTrailingComments: !0,
1020
+ ignoreUrls: !0,
1021
+ ignoreStrings: !0,
1022
+ ignoreTemplateLiterals: !0,
1023
+ ignoreRegExpLiterals: !0,
1018
1024
  },
1019
1025
  ],
1020
1026
  "stylistic/max-statements-per-line": "error",
@@ -1098,7 +1104,7 @@ export default tseslint.config(
1098
1104
  "stylistic-ts/no-extra-semi": "error",
1099
1105
  "stylistic-ts/object-curly-newline": [
1100
1106
  "error",
1101
- { multiline: true, consistent: true },
1107
+ { multiline: !0, consistent: !0 },
1102
1108
  ],
1103
1109
  "stylistic-ts/object-curly-spacing": ["error", "always"],
1104
1110
  "stylistic-ts/object-property-newline": "error",
@@ -1115,8 +1121,10 @@ export default tseslint.config(
1115
1121
  "stylistic-ts/type-annotation-spacing": "error",
1116
1122
  "perfectionist/sort-array-includes": "error",
1117
1123
  "perfectionist/sort-classes": "error",
1124
+ "perfectionist/sort-decorators": "error",
1118
1125
  "perfectionist/sort-enums": "error",
1119
1126
  "perfectionist/sort-exports": "error",
1127
+ "perfectionist/sort-heritage-clauses": "error",
1120
1128
  "perfectionist/sort-imports": [
1121
1129
  "error",
1122
1130
  {
@@ -1140,10 +1148,11 @@ export default tseslint.config(
1140
1148
  { groups: ["shorthand", "multiline"] },
1141
1149
  ],
1142
1150
  "perfectionist/sort-maps": "error",
1151
+ "perfectionist/sort-modules": "error",
1143
1152
  "perfectionist/sort-named-exports": "error",
1144
1153
  "perfectionist/sort-named-imports": "error",
1145
1154
  "perfectionist/sort-object-types": "error",
1146
- "perfectionist/sort-objects": ["error", { partitionByComment: true }],
1155
+ "perfectionist/sort-objects": ["error", { partitionByComment: !0 }],
1147
1156
  "perfectionist/sort-sets": "error",
1148
1157
  "perfectionist/sort-switch-case": [
1149
1158
  "error",
@@ -1293,9 +1302,7 @@ export default tseslint.config(
1293
1302
  },
1294
1303
  {
1295
1304
  files: ["**/*.md"],
1296
- plugins: {
1297
- markdown: markdown,
1298
- },
1305
+ plugins: { markdown: f },
1299
1306
  rules: {
1300
1307
  "markdown/fenced-code-language": "error",
1301
1308
  "markdown/heading-increment": "error",
@@ -1309,34 +1316,36 @@ export default tseslint.config(
1309
1316
  {
1310
1317
  files: ["**/*.json"],
1311
1318
  language: "json/json",
1312
- plugins: {
1313
- json: json,
1314
- },
1319
+ plugins: { json: r },
1315
1320
  rules: {
1316
1321
  "json/no-duplicate-keys": "error",
1317
1322
  "json/no-empty-keys": "error",
1323
+ "json/no-unnormalized-keys": "error",
1324
+ "json/no-unsafe-values": "error",
1318
1325
  },
1319
1326
  },
1320
1327
  {
1321
1328
  files: ["**/*.jsonc"],
1322
1329
  language: "json/jsonc",
1323
- plugins: {
1324
- json: json,
1325
- },
1330
+ plugins: { json: r },
1326
1331
  rules: {
1327
1332
  "json/no-duplicate-keys": "error",
1328
1333
  "json/no-empty-keys": "error",
1334
+ "json/no-unnormalized-keys": "error",
1335
+ "json/no-unsafe-values": "error",
1329
1336
  },
1330
1337
  },
1331
1338
  {
1332
1339
  files: ["**/*.json5"],
1333
1340
  language: "json/json5",
1334
- plugins: {
1335
- json: json,
1336
- },
1341
+ plugins: { json: r },
1337
1342
  rules: {
1338
1343
  "json/no-duplicate-keys": "error",
1339
1344
  "json/no-empty-keys": "error",
1345
+ "json/no-unnormalized-keys": "error",
1346
+ "json/no-unsafe-values": "error",
1340
1347
  },
1341
1348
  },
1342
1349
  );
1350
+ export { L as default };
1351
+ //# sourceMappingURL=eslint.config.js.map