@touchspot/eslint-config 5.0.7 → 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.
Files changed (117) hide show
  1. package/dist/chunk-D7D4PA-g.mjs +13 -0
  2. package/dist/env-P7bBQuYF.mjs +108 -0
  3. package/dist/env-P7bBQuYF.mjs.map +1 -0
  4. package/dist/frameworks/next.d.mts +7 -0
  5. package/dist/frameworks/next.d.mts.map +1 -0
  6. package/dist/frameworks/next.mjs +17 -0
  7. package/dist/frameworks/next.mjs.map +1 -0
  8. package/dist/frameworks/react.d.mts +7 -0
  9. package/dist/frameworks/react.d.mts.map +1 -0
  10. package/dist/frameworks/react.mjs +2 -0
  11. package/dist/frameworks/tailwindcss.d.mts +27 -0
  12. package/dist/frameworks/tailwindcss.d.mts.map +1 -0
  13. package/dist/frameworks/tailwindcss.mjs +39 -0
  14. package/dist/frameworks/tailwindcss.mjs.map +1 -0
  15. package/dist/functional-D_M95gZL.mjs +48 -0
  16. package/dist/functional-D_M95gZL.mjs.map +1 -0
  17. package/dist/index.d.mts +30 -0
  18. package/dist/index.d.mts.map +1 -0
  19. package/dist/index.mjs +233 -0
  20. package/dist/index.mjs.map +1 -0
  21. package/dist/react-DgMKdgTt.mjs +45 -0
  22. package/dist/react-DgMKdgTt.mjs.map +1 -0
  23. package/dist/types-DzD7blyE.d.mts +8 -0
  24. package/dist/types-DzD7blyE.d.mts.map +1 -0
  25. package/package.json +26 -22
  26. package/dist/lib/default.d.ts +0 -4
  27. package/dist/lib/default.d.ts.map +0 -1
  28. package/dist/lib/default.js +0 -3
  29. package/dist/lib/default.js.map +0 -1
  30. package/dist/lib/frameworks/next.d.ts +0 -2
  31. package/dist/lib/frameworks/next.d.ts.map +0 -1
  32. package/dist/lib/frameworks/next.js +0 -2
  33. package/dist/lib/frameworks/next.js.map +0 -1
  34. package/dist/lib/frameworks/react.d.ts +0 -2
  35. package/dist/lib/frameworks/react.d.ts.map +0 -1
  36. package/dist/lib/frameworks/react.js +0 -2
  37. package/dist/lib/frameworks/react.js.map +0 -1
  38. package/dist/lib/frameworks/tailwindcss.d.ts +0 -2
  39. package/dist/lib/frameworks/tailwindcss.d.ts.map +0 -1
  40. package/dist/lib/frameworks/tailwindcss.js +0 -2
  41. package/dist/lib/frameworks/tailwindcss.js.map +0 -1
  42. package/dist/src/config.d.ts +0 -13
  43. package/dist/src/config.d.ts.map +0 -1
  44. package/dist/src/config.js +0 -36
  45. package/dist/src/config.js.map +0 -1
  46. package/dist/src/env.d.ts +0 -7
  47. package/dist/src/env.d.ts.map +0 -1
  48. package/dist/src/env.js +0 -21
  49. package/dist/src/env.js.map +0 -1
  50. package/dist/src/frameworks/next.d.ts +0 -3
  51. package/dist/src/frameworks/next.d.ts.map +0 -1
  52. package/dist/src/frameworks/next.js +0 -8
  53. package/dist/src/frameworks/next.js.map +0 -1
  54. package/dist/src/frameworks/react.d.ts +0 -3
  55. package/dist/src/frameworks/react.d.ts.map +0 -1
  56. package/dist/src/frameworks/react.js +0 -6
  57. package/dist/src/frameworks/react.js.map +0 -1
  58. package/dist/src/frameworks/tailwindcss.d.ts +0 -22
  59. package/dist/src/frameworks/tailwindcss.d.ts.map +0 -1
  60. package/dist/src/frameworks/tailwindcss.js +0 -4
  61. package/dist/src/frameworks/tailwindcss.js.map +0 -1
  62. package/dist/src/rulesets/better-tailwindcss.d.ts +0 -3
  63. package/dist/src/rulesets/better-tailwindcss.d.ts.map +0 -1
  64. package/dist/src/rulesets/better-tailwindcss.js +0 -37
  65. package/dist/src/rulesets/better-tailwindcss.js.map +0 -1
  66. package/dist/src/rulesets/check-file.d.ts +0 -3
  67. package/dist/src/rulesets/check-file.d.ts.map +0 -1
  68. package/dist/src/rulesets/check-file.js +0 -38
  69. package/dist/src/rulesets/check-file.js.map +0 -1
  70. package/dist/src/rulesets/eslint.d.ts +0 -2
  71. package/dist/src/rulesets/eslint.d.ts.map +0 -1
  72. package/dist/src/rulesets/eslint.js +0 -25
  73. package/dist/src/rulesets/eslint.js.map +0 -1
  74. package/dist/src/rulesets/functional.d.ts +0 -5
  75. package/dist/src/rulesets/functional.d.ts.map +0 -1
  76. package/dist/src/rulesets/functional.js +0 -54
  77. package/dist/src/rulesets/functional.js.map +0 -1
  78. package/dist/src/rulesets/import-x.d.ts +0 -3
  79. package/dist/src/rulesets/import-x.d.ts.map +0 -1
  80. package/dist/src/rulesets/import-x.js +0 -52
  81. package/dist/src/rulesets/import-x.js.map +0 -1
  82. package/dist/src/rulesets/next.d.ts +0 -2
  83. package/dist/src/rulesets/next.d.ts.map +0 -1
  84. package/dist/src/rulesets/next.js +0 -8
  85. package/dist/src/rulesets/next.js.map +0 -1
  86. package/dist/src/rulesets/no-relative-import-paths.d.ts +0 -2
  87. package/dist/src/rulesets/no-relative-import-paths.d.ts.map +0 -1
  88. package/dist/src/rulesets/no-relative-import-paths.js +0 -14
  89. package/dist/src/rulesets/no-relative-import-paths.js.map +0 -1
  90. package/dist/src/rulesets/perfectionist.d.ts +0 -2
  91. package/dist/src/rulesets/perfectionist.d.ts.map +0 -1
  92. package/dist/src/rulesets/perfectionist.js +0 -22
  93. package/dist/src/rulesets/perfectionist.js.map +0 -1
  94. package/dist/src/rulesets/react-hooks.d.ts +0 -2
  95. package/dist/src/rulesets/react-hooks.d.ts.map +0 -1
  96. package/dist/src/rulesets/react-hooks.js +0 -13
  97. package/dist/src/rulesets/react-hooks.js.map +0 -1
  98. package/dist/src/rulesets/react.d.ts +0 -2
  99. package/dist/src/rulesets/react.d.ts.map +0 -1
  100. package/dist/src/rulesets/react.js +0 -30
  101. package/dist/src/rulesets/react.js.map +0 -1
  102. package/dist/src/rulesets/tseslint.d.ts +0 -4
  103. package/dist/src/rulesets/tseslint.d.ts.map +0 -1
  104. package/dist/src/rulesets/tseslint.js +0 -99
  105. package/dist/src/rulesets/tseslint.js.map +0 -1
  106. package/dist/src/rulesets/unicorn.d.ts +0 -2
  107. package/dist/src/rulesets/unicorn.d.ts.map +0 -1
  108. package/dist/src/rulesets/unicorn.js +0 -17
  109. package/dist/src/rulesets/unicorn.js.map +0 -1
  110. package/dist/src/rulesets/unused-imports.d.ts +0 -2
  111. package/dist/src/rulesets/unused-imports.d.ts.map +0 -1
  112. package/dist/src/rulesets/unused-imports.js +0 -18
  113. package/dist/src/rulesets/unused-imports.js.map +0 -1
  114. package/dist/src/types.d.ts +0 -4
  115. package/dist/src/types.d.ts.map +0 -1
  116. package/dist/src/types.js +0 -2
  117. package/dist/src/types.js.map +0 -1
@@ -0,0 +1,45 @@
1
+ import { r as functionalRulesetReact } from "./functional-D_M95gZL.mjs";
2
+ import { defineConfig } from "eslint/config";
3
+ import { fixupConfigRules } from "@eslint/compat";
4
+ import ReactHooks from "eslint-plugin-react-hooks";
5
+ import React from "eslint-plugin-react";
6
+ //#region src/rulesets/react-hooks.ts
7
+ const reactHooksRuleset = () => defineConfig({
8
+ name: "@touchspot/eslint-config/rulesets/react-hooks",
9
+ files: ["**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}"],
10
+ extends: [ReactHooks.configs.flat["recommended-latest"]],
11
+ rules: {
12
+ "react-hooks/exhaustive-deps": "error",
13
+ "react-hooks/incompatible-library": "error",
14
+ "react-hooks/unsupported-syntax": "error"
15
+ }
16
+ });
17
+ //#endregion
18
+ //#region src/rulesets/react.ts
19
+ const reactRuleset = () => defineConfig({
20
+ name: "@touchspot/eslint-config/rulesets/react",
21
+ files: ["**/*.{jsx,tsx}"],
22
+ extends: fixupConfigRules([React.configs.flat["recommended"] ?? {}, React.configs.flat["jsx-runtime"] ?? {}]),
23
+ languageOptions: { parserOptions: { jsxPragma: null } },
24
+ settings: { react: { version: "detect" } },
25
+ rules: {
26
+ "react/button-has-type": "error",
27
+ "react/iframe-missing-sandbox": "error",
28
+ "react/jsx-boolean-value": "error",
29
+ "react/jsx-no-useless-fragment": ["error", { allowExpressions: true }],
30
+ "react/jsx-sort-props": ["error", {
31
+ callbacksLast: true,
32
+ noSortAlphabetically: true,
33
+ reservedFirst: ["key", "ref"]
34
+ }],
35
+ "react/prop-types": "off",
36
+ "react/self-closing-comp": "error"
37
+ }
38
+ });
39
+ //#endregion
40
+ //#region src/frameworks/react.ts
41
+ const react = () => defineConfig(reactRuleset(), reactHooksRuleset(), functionalRulesetReact());
42
+ //#endregion
43
+ export { react as t };
44
+
45
+ //# sourceMappingURL=react-DgMKdgTt.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-DgMKdgTt.mjs","names":[],"sources":["../src/rulesets/react-hooks.ts","../src/rulesets/react.ts","../src/frameworks/react.ts"],"sourcesContent":["import ReactHooks from \"eslint-plugin-react-hooks\";\nimport { defineConfig } from \"eslint/config\";\n\nexport const reactHooksRuleset = () =>\n\tdefineConfig({\n\t\tname: \"@touchspot/eslint-config/rulesets/react-hooks\",\n\t\tfiles: [\"**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}\"],\n\t\textends: [ReactHooks.configs.flat[\"recommended-latest\"]],\n\t\trules: {\n\t\t\t\"react-hooks/exhaustive-deps\": \"error\",\n\t\t\t\"react-hooks/incompatible-library\": \"error\",\n\t\t\t\"react-hooks/unsupported-syntax\": \"error\",\n\t\t},\n\t});\n","import { fixupConfigRules } from \"@eslint/compat\";\nimport React from \"eslint-plugin-react\";\nimport { defineConfig } from \"eslint/config\";\n\nexport const reactRuleset = () =>\n\tdefineConfig({\n\t\tname: \"@touchspot/eslint-config/rulesets/react\",\n\t\tfiles: [\"**/*.{jsx,tsx}\"],\n\t\textends: fixupConfigRules([React.configs.flat[\"recommended\"] ?? {}, React.configs.flat[\"jsx-runtime\"] ?? {}]),\n\t\tlanguageOptions: {\n\t\t\tparserOptions: {\n\t\t\t\tjsxPragma: null,\n\t\t\t},\n\t\t},\n\t\tsettings: {\n\t\t\treact: {\n\t\t\t\tversion: \"detect\",\n\t\t\t},\n\t\t},\n\t\trules: {\n\t\t\t\"react/button-has-type\": \"error\",\n\t\t\t\"react/iframe-missing-sandbox\": \"error\",\n\t\t\t\"react/jsx-boolean-value\": \"error\",\n\t\t\t\"react/jsx-no-useless-fragment\": [\"error\", { allowExpressions: true }],\n\t\t\t\"react/jsx-sort-props\": [\n\t\t\t\t\"error\",\n\t\t\t\t{ callbacksLast: true, noSortAlphabetically: true, reservedFirst: [\"key\", \"ref\"] },\n\t\t\t],\n\t\t\t\"react/prop-types\": \"off\",\n\t\t\t\"react/self-closing-comp\": \"error\",\n\t\t},\n\t});\n","import { defineConfig } from \"eslint/config\";\n\nimport { functionalRulesetReact } from \"#src/rulesets/functional.js\";\nimport { reactHooksRuleset } from \"#src/rulesets/react-hooks.js\";\nimport { reactRuleset } from \"#src/rulesets/react.js\";\nimport type { ConfigArray } from \"#src/types.js\";\n\nexport const react = (): ConfigArray => defineConfig(reactRuleset(), reactHooksRuleset(), functionalRulesetReact());\n"],"mappings":";;;;;;AAGA,MAAa,0BACZ,aAAa;CACZ,MAAM;CACN,OAAO,CAAC,sCAAsC;CAC9C,SAAS,CAAC,WAAW,QAAQ,KAAK,qBAAqB;CACvD,OAAO;EACN,+BAA+B;EAC/B,oCAAoC;EACpC,kCAAkC;CACnC;AACD,CAAC;;;ACTF,MAAa,qBACZ,aAAa;CACZ,MAAM;CACN,OAAO,CAAC,gBAAgB;CACxB,SAAS,iBAAiB,CAAC,MAAM,QAAQ,KAAK,kBAAkB,CAAC,GAAG,MAAM,QAAQ,KAAK,kBAAkB,CAAC,CAAC,CAAC;CAC5G,iBAAiB,EAChB,eAAe,EACd,WAAW,KACZ,EACD;CACA,UAAU,EACT,OAAO,EACN,SAAS,SACV,EACD;CACA,OAAO;EACN,yBAAyB;EACzB,gCAAgC;EAChC,2BAA2B;EAC3B,iCAAiC,CAAC,SAAS,EAAE,kBAAkB,KAAK,CAAC;EACrE,wBAAwB,CACvB,SACA;GAAE,eAAe;GAAM,sBAAsB;GAAM,eAAe,CAAC,OAAO,KAAK;EAAE,CAClF;EACA,oBAAoB;EACpB,2BAA2B;CAC5B;AACD,CAAC;;;ACxBF,MAAa,cAA2B,aAAa,aAAa,GAAG,kBAAkB,GAAG,uBAAuB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { defineConfig } from "eslint/config";
2
+
3
+ //#region src/types.d.ts
4
+ type ConfigArray = ReturnType<typeof defineConfig>;
5
+ type Config = ConfigArray[number];
6
+ //#endregion
7
+ export { ConfigArray as n, Config as t };
8
+ //# sourceMappingURL=types-DzD7blyE.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-DzD7blyE.d.mts","names":[],"sources":["../src/types.ts"],"mappings":";;;KAEY,WAAA,GAAc,UAAU,QAAQ,YAAA;AAAA,KAChC,MAAA,GAAS,WAAW"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@touchspot/eslint-config",
3
- "version": "5.0.7",
3
+ "version": "6.0.0",
4
4
  "description": "TOUCHSPOT ESLint config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -18,10 +18,14 @@
18
18
  "license": "MIT",
19
19
  "author": "mozisan <mozisan@users.noreply.github.com>",
20
20
  "type": "module",
21
+ "imports": {
22
+ "#src/*.js": "./src/*.ts",
23
+ "#test/*.js": "./test/*.ts"
24
+ },
21
25
  "exports": {
22
- ".": "./dist/lib/default.js",
23
26
  "./package.json": "./package.json",
24
- "./*": "./dist/lib/frameworks/*.js"
27
+ ".": "./dist/index.mjs",
28
+ "./*": "./dist/frameworks/*.mjs"
25
29
  },
26
30
  "files": [
27
31
  "dist",
@@ -33,34 +37,35 @@
33
37
  ],
34
38
  "prettier": "@touchspot/prettier-config",
35
39
  "dependencies": {
36
- "@eslint/js": "^9.39.4",
37
- "@next/eslint-plugin-next": "^16.1.7",
40
+ "@eslint/compat": "^2.1.0",
41
+ "@eslint/config-helpers": "^0.6.0",
42
+ "@eslint/js": "^10.0.1",
43
+ "@next/eslint-plugin-next": "^16.2.6",
38
44
  "eslint-config-prettier": "^10.1.8",
39
45
  "eslint-import-resolver-typescript": "^4.4.4",
40
- "eslint-plugin-better-tailwindcss": "^4.3.2",
46
+ "eslint-plugin-better-tailwindcss": "^4.5.0",
41
47
  "eslint-plugin-check-file": "^3.3.1",
42
- "eslint-plugin-functional": "^9.0.4",
48
+ "eslint-plugin-functional": "^9.0.5",
43
49
  "eslint-plugin-import-x": "^4.16.2",
44
50
  "eslint-plugin-no-relative-import-paths": "^1.6.1",
45
- "eslint-plugin-perfectionist": "^5.6.0",
51
+ "eslint-plugin-perfectionist": "^5.9.0",
46
52
  "eslint-plugin-react": "^7.37.5",
47
- "eslint-plugin-react-hooks": "^7.0.1",
48
- "eslint-plugin-unicorn": "^63.0.0",
53
+ "eslint-plugin-react-hooks": "^7.1.1",
54
+ "eslint-plugin-unicorn": "^64.0.0",
49
55
  "eslint-plugin-unused-imports": "^4.4.1",
50
- "globals": "^17.4.0",
51
- "typescript-eslint": "^8.57.1"
56
+ "globals": "^17.6.0",
57
+ "typescript-eslint": "^8.59.4"
52
58
  },
53
59
  "devDependencies": {
54
- "@eslint/config-helpers": "^0.5.3",
55
- "@eslint/core": "^1.1.1",
56
- "eslint": "^9.39.4",
57
- "next": "^16.1.7",
58
- "react": "^19.2.4",
59
- "react-dom": "^19.2.4",
60
- "tailwindcss": "^4.2.1"
60
+ "eslint": "^10.4.0",
61
+ "next": "^16.2.6",
62
+ "react": "^19.2.6",
63
+ "react-dom": "^19.2.6",
64
+ "tailwindcss": "^4.3.0",
65
+ "tsdown": "^0.22.0"
61
66
  },
62
67
  "peerDependencies": {
63
- "eslint": "^9",
68
+ "eslint": "^10",
64
69
  "next": "^15 || ^16",
65
70
  "react": "^19",
66
71
  "react-dom": "^19",
@@ -84,11 +89,10 @@
84
89
  "access": "public"
85
90
  },
86
91
  "scripts": {
87
- "build": "tspc --build tsconfig.build.json",
92
+ "build": "tsdown",
88
93
  "check:format": "prettier --check --log-level=warn .",
89
94
  "check:lint": "eslint .",
90
95
  "check:type": "tsc --noEmit",
91
- "dev": "tspc --build tsconfig.build.json --watch",
92
96
  "fix:format": "prettier --write --log-level=warn .",
93
97
  "fix:lint": "eslint --fix .",
94
98
  "inspect": "config-inspector",
@@ -1,4 +0,0 @@
1
- export { config as default } from "../src/config.js";
2
- export * as env from "../src/env.js";
3
- export type { Config, ConfigArray } from "../src/types.js";
4
- //# sourceMappingURL=default.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../lib/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,yBAAuB;AACnD,OAAO,KAAK,GAAG,sBAAoB;AACnC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,wBAAsB"}
@@ -1,3 +0,0 @@
1
- export { config as default } from "../src/config.js";
2
- export * as env from "../src/env.js";
3
- //# sourceMappingURL=default.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default.js","sourceRoot":"","sources":["../../lib/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,yBAAuB;AACnD,OAAO,KAAK,GAAG,sBAAoB"}
@@ -1,2 +0,0 @@
1
- export { next as default } from "../../src/frameworks/next.js";
2
- //# sourceMappingURL=next.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../../lib/frameworks/next.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,qCAAgC"}
@@ -1,2 +0,0 @@
1
- export { next as default } from "../../src/frameworks/next.js";
2
- //# sourceMappingURL=next.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"next.js","sourceRoot":"","sources":["../../../lib/frameworks/next.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,qCAAgC"}
@@ -1,2 +0,0 @@
1
- export { react as default } from "../../src/frameworks/react.js";
2
- //# sourceMappingURL=react.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../lib/frameworks/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,sCAAiC"}
@@ -1,2 +0,0 @@
1
- export { react as default } from "../../src/frameworks/react.js";
2
- //# sourceMappingURL=react.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.js","sourceRoot":"","sources":["../../../lib/frameworks/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,sCAAiC"}
@@ -1,2 +0,0 @@
1
- export { tailwindcss as default } from "../../src/frameworks/tailwindcss.js";
2
- //# sourceMappingURL=tailwindcss.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tailwindcss.d.ts","sourceRoot":"","sources":["../../../lib/frameworks/tailwindcss.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,OAAO,EAAE,4CAAuC"}
@@ -1,2 +0,0 @@
1
- export { tailwindcss as default } from "../../src/frameworks/tailwindcss.js";
2
- //# sourceMappingURL=tailwindcss.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tailwindcss.js","sourceRoot":"","sources":["../../../lib/frameworks/tailwindcss.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,OAAO,EAAE,4CAAuC"}
@@ -1,13 +0,0 @@
1
- import type { ConfigWithExtendsArray } from "@eslint/config-helpers";
2
- import type { ConfigArray } from "./types.js";
3
- export declare namespace config {
4
- type Options = {
5
- readonly rootDir: string;
6
- readonly tsconfig?: string;
7
- readonly enableTypeAwareRules?: {
8
- readonly js?: "all" | "auto";
9
- } | false;
10
- };
11
- }
12
- export declare const config: (options: config.Options, ...addons: ConfigWithExtendsArray) => ConfigArray;
13
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAarE,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAsB;AAEjD,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC/B,KAAK,OAAO,GAAG;QACd,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,oBAAoB,CAAC,EAAE;YAAE,QAAQ,CAAC,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;SAAE,GAAG,KAAK,CAAC;KACzE,CAAC;CACF;AAED,eAAO,MAAM,MAAM,GAAI,SAAS,MAAM,CAAC,OAAO,EAAE,GAAG,QAAQ,sBAAsB,KAAG,WA2ClF,CAAC"}
@@ -1,36 +0,0 @@
1
- import Prettier from "eslint-config-prettier";
2
- import { defineConfig, globalIgnores } from "eslint/config";
3
- import { checkFileRuleset } from "./rulesets/check-file.js";
4
- import { eslintRuleset } from "./rulesets/eslint.js";
5
- import { autoDisableTypeAwareFunctionalRules, functionalRuleset } from "./rulesets/functional.js";
6
- import { importXRuleset } from "./rulesets/import-x.js";
7
- import { noRelativeImportPathsRuleset } from "./rulesets/no-relative-import-paths.js";
8
- import { perfectionistRuleset } from "./rulesets/perfectionist.js";
9
- import { autoDisableTypeAwareTseslintRules, tseslintRuleset } from "./rulesets/tseslint.js";
10
- import { unicornRuleset } from "./rulesets/unicorn.js";
11
- import { unusedImportsRuleset } from "./rulesets/unused-imports.js";
12
- export const config = (options, ...addons) => defineConfig(globalIgnores([".cache/", ".turbo/", "coverage/", "dist/"]), {
13
- name: "@touchspot/eslint-config/linter",
14
- linterOptions: {
15
- reportUnusedDisableDirectives: "error",
16
- },
17
- }, {
18
- name: "@touchspot/eslint-config/language",
19
- files: ["**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}"],
20
- languageOptions: {
21
- ecmaVersion: "latest",
22
- },
23
- }, {
24
- name: "@touchspot/eslint-config/language/esm",
25
- files: ["**/*.{js,jsx,mjs,ts,tsx,mts}"],
26
- languageOptions: {
27
- sourceType: "module",
28
- },
29
- }, {
30
- name: "@touchspot/eslint-config/language/cjs",
31
- files: ["**/*.{cjs,cts}"],
32
- languageOptions: {
33
- sourceType: "commonjs",
34
- },
35
- }, eslintRuleset(), tseslintRuleset(options), unicornRuleset(), importXRuleset(), unusedImportsRuleset(), noRelativeImportPathsRuleset(), functionalRuleset(), perfectionistRuleset(), checkFileRuleset(), addons, autoDisableTypeAwareTseslintRules(options), autoDisableTypeAwareFunctionalRules(options), Prettier);
36
- //# sourceMappingURL=config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,iCAAoC;AAC/D,OAAO,EAAE,aAAa,EAAE,6BAAgC;AACxD,OAAO,EAAE,mCAAmC,EAAE,iBAAiB,EAAE,iCAAoC;AACrG,OAAO,EAAE,cAAc,EAAE,+BAAkC;AAC3D,OAAO,EAAE,4BAA4B,EAAE,+CAAkD;AACzF,OAAO,EAAE,oBAAoB,EAAE,oCAAuC;AACtE,OAAO,EAAE,iCAAiC,EAAE,eAAe,EAAE,+BAAkC;AAC/F,OAAO,EAAE,cAAc,EAAE,8BAAiC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,qCAAwC;AAWvE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,OAAuB,EAAE,GAAG,MAA8B,EAAe,EAAE,CACjG,YAAY,CACX,aAAa,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,EAC3D;IACC,IAAI,EAAE,iCAAiC;IACvC,aAAa,EAAE;QACd,6BAA6B,EAAE,OAAO;KACtC;CACD,EACD;IACC,IAAI,EAAE,mCAAmC;IACzC,KAAK,EAAE,CAAC,sCAAsC,CAAC;IAC/C,eAAe,EAAE;QAChB,WAAW,EAAE,QAAQ;KACrB;CACD,EACD;IACC,IAAI,EAAE,uCAAuC;IAC7C,KAAK,EAAE,CAAC,8BAA8B,CAAC;IACvC,eAAe,EAAE;QAChB,UAAU,EAAE,QAAQ;KACpB;CACD,EACD;IACC,IAAI,EAAE,uCAAuC;IAC7C,KAAK,EAAE,CAAC,gBAAgB,CAAC;IACzB,eAAe,EAAE;QAChB,UAAU,EAAE,UAAU;KACtB;CACD,EACD,aAAa,EAAE,EACf,eAAe,CAAC,OAAO,CAAC,EACxB,cAAc,EAAE,EAChB,cAAc,EAAE,EAChB,oBAAoB,EAAE,EACtB,4BAA4B,EAAE,EAC9B,iBAAiB,EAAE,EACnB,oBAAoB,EAAE,EACtB,gBAAgB,EAAE,EAClB,MAAM,EACN,iCAAiC,CAAC,OAAO,CAAC,EAC1C,mCAAmC,CAAC,OAAO,CAAC,EAC5C,QAAQ,CACR,CAAC"}
package/dist/src/env.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export declare const browser: ({ files, }?: {
2
- readonly files?: readonly string[];
3
- }) => import("eslint/config").Config[];
4
- export declare const node: ({ files, }?: {
5
- readonly files?: readonly string[];
6
- }) => import("eslint/config").Config[];
7
- //# sourceMappingURL=env.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/env.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,GAAI,aAErB;IACF,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9B,qCASH,CAAC;AAEJ,eAAO,MAAM,IAAI,GAAI,aAElB;IACF,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9B,qCASH,CAAC"}
package/dist/src/env.js DELETED
@@ -1,21 +0,0 @@
1
- import { defineConfig } from "eslint/config";
2
- import Globals from "globals";
3
- export const browser = ({ files = ["**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}"], } = {}) => defineConfig({
4
- name: "@touchspot/eslint-config/env/browser",
5
- files: [...files],
6
- languageOptions: {
7
- globals: {
8
- ...Globals.browser,
9
- },
10
- },
11
- });
12
- export const node = ({ files = ["**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}"], } = {}) => defineConfig({
13
- name: "@touchspot/eslint-config/env/node",
14
- files: [...files],
15
- languageOptions: {
16
- globals: {
17
- ...Globals.node,
18
- },
19
- },
20
- });
21
- //# sourceMappingURL=env.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EACvB,KAAK,GAAG,CAAC,sCAAsC,CAAC,MAG7C,EAAE,EAAE,EAAE,CACT,YAAY,CAAC;IACZ,IAAI,EAAE,sCAAsC;IAC5C,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC;IACjB,eAAe,EAAE;QAChB,OAAO,EAAE;YACR,GAAG,OAAO,CAAC,OAAO;SAClB;KACD;CACD,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EACpB,KAAK,GAAG,CAAC,sCAAsC,CAAC,MAG7C,EAAE,EAAE,EAAE,CACT,YAAY,CAAC;IACZ,IAAI,EAAE,mCAAmC;IACzC,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC;IACjB,eAAe,EAAE;QAChB,OAAO,EAAE;YACR,GAAG,OAAO,CAAC,IAAI;SACf;KACD;CACD,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { ConfigArray } from "../types.js";
2
- export declare const next: () => ConfigArray;
3
- //# sourceMappingURL=next.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../../src/frameworks/next.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAsB;AAEjD,eAAO,MAAM,IAAI,QAAO,WACsF,CAAC"}
@@ -1,8 +0,0 @@
1
- import { defineConfig } from "eslint/config";
2
- import * as env from "../env.js";
3
- import { react } from "./react.js";
4
- import { checkFileRulesetNext } from "../rulesets/check-file.js";
5
- import { importXRulesetNext } from "../rulesets/import-x.js";
6
- import { nextRuleset } from "../rulesets/next.js";
7
- export const next = () => defineConfig(env.browser(), env.node(), react(), nextRuleset(), checkFileRulesetNext(), importXRulesetNext());
8
- //# sourceMappingURL=next.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"next.js","sourceRoot":"","sources":["../../../src/frameworks/next.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,GAAG,kBAAoB;AACnC,OAAO,EAAE,KAAK,EAAE,mBAAiC;AACjD,OAAO,EAAE,oBAAoB,EAAE,kCAAoC;AACnE,OAAO,EAAE,kBAAkB,EAAE,gCAAkC;AAC/D,OAAO,EAAE,WAAW,EAAE,4BAA8B;AAGpD,MAAM,CAAC,MAAM,IAAI,GAAG,GAAgB,EAAE,CACrC,YAAY,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,GAAG,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,oBAAoB,EAAE,EAAE,kBAAkB,EAAE,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { ConfigArray } from "../types.js";
2
- export declare const react: () => ConfigArray;
3
- //# sourceMappingURL=react.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/frameworks/react.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAsB;AAEjD,eAAO,MAAM,KAAK,QAAO,WAA0F,CAAC"}
@@ -1,6 +0,0 @@
1
- import { defineConfig } from "eslint/config";
2
- import { functionalRulesetReact } from "../rulesets/functional.js";
3
- import { reactHooksRuleset } from "../rulesets/react-hooks.js";
4
- import { reactRuleset } from "../rulesets/react.js";
5
- export const react = () => defineConfig(reactRuleset(), reactHooksRuleset(), functionalRulesetReact());
6
- //# sourceMappingURL=react.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.js","sourceRoot":"","sources":["../../../src/frameworks/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,sBAAsB,EAAE,kCAAoC;AACrE,OAAO,EAAE,iBAAiB,EAAE,mCAAqC;AACjE,OAAO,EAAE,YAAY,EAAE,6BAA+B;AAGtD,MAAM,CAAC,MAAM,KAAK,GAAG,GAAgB,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,EAAE,iBAAiB,EAAE,EAAE,sBAAsB,EAAE,CAAC,CAAC"}
@@ -1,22 +0,0 @@
1
- import type { ObjectKeyMatcher, ObjectValueMatcher, StringMatcher } from "eslint-plugin-better-tailwindcss/api/types";
2
- import type { ConfigArray } from "../types.js";
3
- export declare namespace tailwindcss {
4
- type Matcher = ObjectKeyMatcher | ObjectValueMatcher | StringMatcher;
5
- type CommonOptions = {
6
- readonly attributes?: readonly Matcher[] | undefined;
7
- readonly callees?: readonly Matcher[] | undefined;
8
- readonly variables?: readonly Matcher[] | undefined;
9
- readonly tags?: readonly Matcher[] | undefined;
10
- };
11
- type V4Options = {
12
- readonly version?: 4;
13
- readonly entry: string;
14
- };
15
- type V3Options = {
16
- readonly version: 3;
17
- readonly config?: string;
18
- };
19
- type Options = CommonOptions & (V3Options | V4Options);
20
- }
21
- export declare const tailwindcss: (options: tailwindcss.Options) => ConfigArray;
22
- //# sourceMappingURL=tailwindcss.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tailwindcss.d.ts","sourceRoot":"","sources":["../../../src/frameworks/tailwindcss.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAItH,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAsB;AAEjD,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACpC,KAAK,OAAO,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,aAAa,CAAC;IAErE,KAAK,aAAa,GAAG;QACpB,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,CAAC;QACrD,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,CAAC;QAClD,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,CAAC;QACpD,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,CAAC;KAC/C,CAAC;IAEF,KAAK,SAAS,GAAG;QAChB,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;KACvB,CAAC;IAEF,KAAK,SAAS,GAAG;QAChB,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;QACpB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IAEF,KAAK,OAAO,GAAG,aAAa,GAAG,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;CACvD;AAED,eAAO,MAAM,WAAW,GAAI,SAAS,WAAW,CAAC,OAAO,KAAG,WACV,CAAC"}
@@ -1,4 +0,0 @@
1
- import { defineConfig } from "eslint/config";
2
- import { betterTailwindCSSRulesets } from "../rulesets/better-tailwindcss.js";
3
- export const tailwindcss = (options) => defineConfig(betterTailwindCSSRulesets(options));
4
- //# sourceMappingURL=tailwindcss.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tailwindcss.js","sourceRoot":"","sources":["../../../src/frameworks/tailwindcss.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,yBAAyB,EAAE,0CAA4C;AA0BhF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,OAA4B,EAAe,EAAE,CACxE,YAAY,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { tailwindcss } from "../frameworks/tailwindcss.js";
2
- export declare const betterTailwindCSSRulesets: ({ attributes, callees, variables, tags, ...options }: tailwindcss.Options) => import("eslint/config").Config[];
3
- //# sourceMappingURL=better-tailwindcss.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"better-tailwindcss.d.ts","sourceRoot":"","sources":["../../../src/rulesets/better-tailwindcss.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,qCAAuC;AAElE,eAAO,MAAM,yBAAyB,GAAI,sDAAsD,WAAW,CAAC,OAAO,qCAkChH,CAAC"}
@@ -1,37 +0,0 @@
1
- import BetterTailwindCSS from "eslint-plugin-better-tailwindcss";
2
- import { defineConfig } from "eslint/config";
3
- export const betterTailwindCSSRulesets = ({ attributes, callees, variables, tags, ...options }) => defineConfig({
4
- name: "@touchspot/eslint-config/rulesets/better-tailwindcss",
5
- files: ["**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}"],
6
- plugins: {
7
- "better-tailwindcss": BetterTailwindCSS,
8
- },
9
- settings: {
10
- "better-tailwindcss": {
11
- ...(options.version === 3
12
- ? { tailwindConfig: options.config ?? "tailwind.config.js" }
13
- : { entryPoint: options.entry }),
14
- ...(attributes == null ? null : { attributes }),
15
- ...(callees == null ? null : { callees }),
16
- ...(variables == null ? null : { variables }),
17
- ...(tags == null ? null : { tags }),
18
- },
19
- },
20
- rules: {
21
- "better-tailwindcss/no-duplicate-classes": "error",
22
- "better-tailwindcss/no-unknown-classes": "error",
23
- "better-tailwindcss/no-unnecessary-whitespace": ["error", { allowMultiline: false }],
24
- ...(options.version === 3
25
- ? {
26
- "better-tailwindcss/enforce-consistent-important-position": "error",
27
- "better-tailwindcss/enforce-consistent-variable-syntax": "error",
28
- "better-tailwindcss/enforce-shorthand-classes": "error",
29
- }
30
- : {
31
- "better-tailwindcss/enforce-canonical-classes": "error",
32
- "better-tailwindcss/no-conflicting-classes": "error",
33
- "better-tailwindcss/no-deprecated-classes": "error",
34
- }),
35
- },
36
- });
37
- //# sourceMappingURL=better-tailwindcss.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"better-tailwindcss.js","sourceRoot":"","sources":["../../../src/rulesets/better-tailwindcss.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI7C,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,OAAO,EAAuB,EAAE,EAAE,CACtH,YAAY,CAAC;IACZ,IAAI,EAAE,sDAAsD;IAC5D,KAAK,EAAE,CAAC,sCAAsC,CAAC;IAC/C,OAAO,EAAE;QACR,oBAAoB,EAAE,iBAAiB;KACvC;IACD,QAAQ,EAAE;QACT,oBAAoB,EAAE;YACrB,GAAG,CAAC,OAAO,CAAC,OAAO,KAAK,CAAC;gBACxB,CAAC,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,MAAM,IAAI,oBAAoB,EAAE;gBAC5D,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;YACjC,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC;YAC/C,GAAG,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC;YACzC,GAAG,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC;YAC7C,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;SACnC;KACD;IACD,KAAK,EAAE;QACN,yCAAyC,EAAE,OAAO;QAClD,uCAAuC,EAAE,OAAO;QAChD,8CAA8C,EAAE,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC;QACpF,GAAG,CAAC,OAAO,CAAC,OAAO,KAAK,CAAC;YACxB,CAAC,CAAC;gBACA,0DAA0D,EAAE,OAAO;gBACnE,uDAAuD,EAAE,OAAO;gBAChE,8CAA8C,EAAE,OAAO;aACvD;YACF,CAAC,CAAC;gBACA,8CAA8C,EAAE,OAAO;gBACvD,2CAA2C,EAAE,OAAO;gBACpD,0CAA0C,EAAE,OAAO;aACnD,CAAC;KACJ;CACD,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare const checkFileRuleset: () => import("eslint/config").Config[];
2
- export declare const checkFileRulesetNext: () => import("eslint/config").Config[];
3
- //# sourceMappingURL=check-file.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"check-file.d.ts","sourceRoot":"","sources":["../../../src/rulesets/check-file.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,wCA4B1B,CAAC;AAEJ,eAAO,MAAM,oBAAoB,wCAO9B,CAAC"}
@@ -1,38 +0,0 @@
1
- import CheckFile from "eslint-plugin-check-file";
2
- import { defineConfig } from "eslint/config";
3
- export const checkFileRuleset = () => defineConfig({
4
- name: "@touchspot/eslint-config/rulesets/check-file",
5
- files: ["**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}"],
6
- ignores: ["**/*.d.*"],
7
- plugins: {
8
- "check-file": CheckFile,
9
- },
10
- rules: {
11
- "check-file/folder-naming-convention": [
12
- "error",
13
- {
14
- "**": "KEBAB_CASE",
15
- },
16
- {
17
- ignoreWords: [".agents", ".claude", ".codex", ".opencode"],
18
- },
19
- ],
20
- "check-file/filename-naming-convention": [
21
- "error",
22
- {
23
- "**": "KEBAB_CASE",
24
- },
25
- {
26
- ignoreMiddleExtensions: true,
27
- },
28
- ],
29
- },
30
- });
31
- export const checkFileRulesetNext = () => defineConfig({
32
- name: "@touchspot/eslint-config/rulesets/check-file/next",
33
- files: ["{src/,}app/**/*.{ts,tsx}"],
34
- rules: {
35
- "check-file/folder-naming-convention": ["error", { "**": "NEXT_JS_APP_ROUTER_CASE" }],
36
- },
37
- });
38
- //# sourceMappingURL=check-file.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"check-file.js","sourceRoot":"","sources":["../../../src/rulesets/check-file.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE,CACpC,YAAY,CAAC;IACZ,IAAI,EAAE,8CAA8C;IACpD,KAAK,EAAE,CAAC,sCAAsC,CAAC;IAC/C,OAAO,EAAE,CAAC,UAAU,CAAC;IACrB,OAAO,EAAE;QACR,YAAY,EAAE,SAAS;KACvB;IACD,KAAK,EAAE;QACN,qCAAqC,EAAE;YACtC,OAAO;YACP;gBACC,IAAI,EAAE,YAAY;aAClB;YACD;gBACC,WAAW,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,CAAC;aAC1D;SACD;QACD,uCAAuC,EAAE;YACxC,OAAO;YACP;gBACC,IAAI,EAAE,YAAY;aAClB;YACD;gBACC,sBAAsB,EAAE,IAAI;aAC5B;SACD;KACD;CACD,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,EAAE,CACxC,YAAY,CAAC;IACZ,IAAI,EAAE,mDAAmD;IACzD,KAAK,EAAE,CAAC,0BAA0B,CAAC;IACnC,KAAK,EAAE;QACN,qCAAqC,EAAE,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAC;KACrF;CACD,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const eslintRuleset: () => import("eslint/config").Config[];
2
- //# sourceMappingURL=eslint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../../../src/rulesets/eslint.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,wCAsBvB,CAAC"}
@@ -1,25 +0,0 @@
1
- import ESLint from "@eslint/js";
2
- import { defineConfig } from "eslint/config";
3
- export const eslintRuleset = () => defineConfig({
4
- name: "@touchspot/eslint-config/rulesets/eslint",
5
- files: ["**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}"],
6
- extends: [ESLint.configs.recommended],
7
- rules: {
8
- "arrow-body-style": ["error"],
9
- eqeqeq: ["error", "always", { null: "never" }],
10
- "max-params": "error",
11
- "no-console": ["warn", { allow: ["warn", "error"] }],
12
- "no-lone-blocks": "error",
13
- "no-lonely-if": "error",
14
- "no-loop-func": "error",
15
- "no-param-reassign": "error",
16
- "no-restricted-imports": [
17
- "error",
18
- { patterns: [{ group: ["**/_*", "!./_*"], message: "Do not import directory-private module." }] },
19
- ],
20
- "no-useless-rename": "error",
21
- "object-shorthand": "error",
22
- "prefer-destructuring": "error",
23
- },
24
- });
25
- //# sourceMappingURL=eslint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eslint.js","sourceRoot":"","sources":["../../../src/rulesets/eslint.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,YAAY,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE,CACjC,YAAY,CAAC;IACZ,IAAI,EAAE,0CAA0C;IAChD,KAAK,EAAE,CAAC,sCAAsC,CAAC;IAC/C,OAAO,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC;IACrC,KAAK,EAAE;QACN,kBAAkB,EAAE,CAAC,OAAO,CAAC;QAC7B,MAAM,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;QAC9C,YAAY,EAAE,OAAO;QACrB,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;QACpD,gBAAgB,EAAE,OAAO;QACzB,cAAc,EAAE,OAAO;QACvB,cAAc,EAAE,OAAO;QACvB,mBAAmB,EAAE,OAAO;QAC5B,uBAAuB,EAAE;YACxB,OAAO;YACP,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC,EAAE;SACjG;QACD,mBAAmB,EAAE,OAAO;QAC5B,kBAAkB,EAAE,OAAO;QAC3B,sBAAsB,EAAE,OAAO;KAC/B;CACD,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import type { config } from "../config.js";
2
- export declare const functionalRuleset: () => import("eslint/config").Config[];
3
- export declare const functionalRulesetReact: () => import("eslint/config").Config[];
4
- export declare const autoDisableTypeAwareFunctionalRules: (options: config.Options) => import("eslint/config").Config[];
5
- //# sourceMappingURL=functional.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"functional.d.ts","sourceRoot":"","sources":["../../../src/rulesets/functional.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,qBAAuB;AAE7C,eAAO,MAAM,iBAAiB,wCAmB3B,CAAC;AAEJ,eAAO,MAAM,sBAAsB,wCAehC,CAAC;AAEJ,eAAO,MAAM,mCAAmC,GAAI,SAAS,MAAM,CAAC,OAAO,qCAgB1E,CAAC"}