eslint-config-everything 0.0.0 → 0.0.5

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.

Potentially problematic release.


This version of eslint-config-everything might be problematic. Click here for more details.

Files changed (70) hide show
  1. package/LICENSE +21 -201
  2. package/README.md +3 -185
  3. package/dist/chunk-7D4SUZUM.js +38 -0
  4. package/dist/chunk-7D4SUZUM.js.map +1 -0
  5. package/dist/chunk-C6JVFMYP.js +10 -0
  6. package/dist/chunk-C6JVFMYP.js.map +1 -0
  7. package/dist/chunk-E2655ZCO.js +3002 -0
  8. package/dist/chunk-E2655ZCO.js.map +1 -0
  9. package/dist/chunk-GO5ZEIJP.js +20 -0
  10. package/dist/chunk-GO5ZEIJP.js.map +1 -0
  11. package/dist/chunk-GVUZG6ZQ.js +12 -0
  12. package/dist/chunk-GVUZG6ZQ.js.map +1 -0
  13. package/dist/chunk-IRVJ36XL.js +49 -0
  14. package/dist/chunk-IRVJ36XL.js.map +1 -0
  15. package/dist/chunk-PVI3JF33.js +436 -0
  16. package/dist/chunk-PVI3JF33.js.map +1 -0
  17. package/dist/chunk-R4EOV26M.js +9 -0
  18. package/dist/chunk-R4EOV26M.js.map +1 -0
  19. package/dist/chunk-S5OOXTIG.js +347 -0
  20. package/dist/chunk-S5OOXTIG.js.map +1 -0
  21. package/dist/chunk-SKRJ7XOK.js +15 -0
  22. package/dist/chunk-SKRJ7XOK.js.map +1 -0
  23. package/dist/chunk-ZEAYDHJD.js +7693 -0
  24. package/dist/chunk-ZEAYDHJD.js.map +1 -0
  25. package/dist/configs/javascript.d.ts +16 -0
  26. package/dist/configs/javascript.js +13 -0
  27. package/dist/configs/javascript.js.map +1 -0
  28. package/dist/configs/next.d.ts +56 -0
  29. package/dist/configs/next.js +16 -0
  30. package/dist/configs/next.js.map +1 -0
  31. package/dist/configs/react-internal.d.ts +44 -0
  32. package/dist/configs/react-internal.js +16 -0
  33. package/dist/configs/react-internal.js.map +1 -0
  34. package/dist/configs/turbo.d.ts +35 -0
  35. package/dist/configs/turbo.js +39 -0
  36. package/dist/configs/turbo.js.map +1 -0
  37. package/dist/configs/typescript.d.ts +16 -0
  38. package/dist/configs/typescript.js +21 -0
  39. package/dist/configs/typescript.js.map +1 -0
  40. package/dist/index.d.ts +16 -0
  41. package/dist/index.js +23 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/objects/base.d.ts +9 -0
  44. package/dist/objects/base.js +9 -0
  45. package/dist/objects/base.js.map +1 -0
  46. package/dist/objects/ignores.d.ts +5 -0
  47. package/dist/objects/ignores.js +8 -0
  48. package/dist/objects/ignores.js.map +1 -0
  49. package/dist/objects/onlyWarn.d.ts +9 -0
  50. package/dist/objects/onlyWarn.js +8 -0
  51. package/dist/objects/onlyWarn.js.map +1 -0
  52. package/dist/objects/perfectionist.d.ts +7 -0
  53. package/dist/objects/perfectionist.js +8 -0
  54. package/dist/objects/perfectionist.js.map +1 -0
  55. package/dist/rules/base.d.ts +432 -0
  56. package/dist/rules/base.js +8 -0
  57. package/dist/rules/base.js.map +1 -0
  58. package/dist/rules/typescript.d.ts +121 -0
  59. package/dist/rules/typescript.js +126 -0
  60. package/dist/rules/typescript.js.map +1 -0
  61. package/package.json +43 -32
  62. package/.editorconfig +0 -10
  63. package/.gitattributes +0 -4
  64. package/.prettierrc +0 -6
  65. package/.yarn/sdks/integrations.yml +0 -5
  66. package/.yarn/sdks/prettier/bin/prettier.cjs +0 -32
  67. package/.yarn/sdks/prettier/index.cjs +0 -32
  68. package/.yarn/sdks/prettier/package.json +0 -7
  69. package/.yarnrc.yml +0 -1
  70. package/eslint.config.js +0 -198
@@ -0,0 +1,126 @@
1
+ import "../chunk-7D4SUZUM.js";
2
+
3
+ // src/rules/typescript.js
4
+ var typescriptRules = {
5
+ "@typescript-eslint/adjacent-overload-signatures": "error",
6
+ "@typescript-eslint/array-type": "error",
7
+ "@typescript-eslint/await-thenable": "error",
8
+ "@typescript-eslint/ban-ts-comment": [
9
+ "error",
10
+ { minimumDescriptionLength: 10 }
11
+ ],
12
+ "@typescript-eslint/ban-tslint-comment": "error",
13
+ "@typescript-eslint/class-literal-property-style": "error",
14
+ "@typescript-eslint/consistent-generic-constructors": "error",
15
+ "@typescript-eslint/consistent-indexed-object-style": "error",
16
+ "@typescript-eslint/consistent-type-assertions": "error",
17
+ "@typescript-eslint/consistent-type-definitions": "error",
18
+ "@typescript-eslint/dot-notation": "error",
19
+ "@typescript-eslint/no-array-constructor": "error",
20
+ "@typescript-eslint/no-array-delete": "error",
21
+ "@typescript-eslint/no-base-to-string": "error",
22
+ "@typescript-eslint/no-confusing-non-null-assertion": "error",
23
+ "@typescript-eslint/no-confusing-void-expression": "error",
24
+ "@typescript-eslint/no-deprecated": "error",
25
+ "@typescript-eslint/no-duplicate-enum-values": "error",
26
+ "@typescript-eslint/no-duplicate-type-constituents": "error",
27
+ "@typescript-eslint/no-dynamic-delete": "error",
28
+ "@typescript-eslint/no-empty-function": "error",
29
+ "@typescript-eslint/no-empty-object-type": "error",
30
+ "@typescript-eslint/no-explicit-any": "error",
31
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
32
+ "@typescript-eslint/no-extraneous-class": "error",
33
+ "@typescript-eslint/no-floating-promises": "error",
34
+ "@typescript-eslint/no-for-in-array": "error",
35
+ "@typescript-eslint/no-implied-eval": "error",
36
+ "@typescript-eslint/no-inferrable-types": "error",
37
+ "@typescript-eslint/no-invalid-void-type": "error",
38
+ "@typescript-eslint/no-meaningless-void-operator": "error",
39
+ "@typescript-eslint/no-misused-new": "error",
40
+ "@typescript-eslint/no-misused-promises": "error",
41
+ "@typescript-eslint/no-mixed-enums": "error",
42
+ "@typescript-eslint/no-namespace": "error",
43
+ "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
44
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
45
+ "@typescript-eslint/no-non-null-assertion": "error",
46
+ "@typescript-eslint/no-redundant-type-constituents": "error",
47
+ "@typescript-eslint/no-require-imports": "error",
48
+ "@typescript-eslint/no-this-alias": "error",
49
+ "@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
50
+ "@typescript-eslint/no-unnecessary-condition": "error",
51
+ "@typescript-eslint/no-unnecessary-template-expression": "error",
52
+ "@typescript-eslint/no-unnecessary-type-arguments": "error",
53
+ "@typescript-eslint/no-unnecessary-type-assertion": "error",
54
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
55
+ "@typescript-eslint/no-unnecessary-type-parameters": "error",
56
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
57
+ "@typescript-eslint/no-unsafe-enum-comparison": "error",
58
+ "@typescript-eslint/no-unsafe-function-type": "error",
59
+ "@typescript-eslint/no-unsafe-unary-minus": "error",
60
+ "@typescript-eslint/no-unused-expressions": "error",
61
+ "@typescript-eslint/no-unused-vars": [
62
+ "error",
63
+ {
64
+ args: "after-used",
65
+ argsIgnorePattern: "^_",
66
+ ignoreRestSiblings: false,
67
+ vars: "all",
68
+ varsIgnorePattern: "^_"
69
+ }
70
+ ],
71
+ "@typescript-eslint/no-useless-constructor": "error",
72
+ "@typescript-eslint/no-wrapper-object-types": "error",
73
+ "@typescript-eslint/non-nullable-type-assertion-style": "error",
74
+ "@typescript-eslint/only-throw-error": "error",
75
+ "@typescript-eslint/prefer-as-const": "error",
76
+ "@typescript-eslint/prefer-find": "error",
77
+ "@typescript-eslint/prefer-for-of": "error",
78
+ "@typescript-eslint/prefer-function-type": "error",
79
+ "@typescript-eslint/prefer-includes": "error",
80
+ "@typescript-eslint/prefer-literal-enum-member": "error",
81
+ "@typescript-eslint/prefer-namespace-keyword": "error",
82
+ "@typescript-eslint/prefer-nullish-coalescing": "error",
83
+ "@typescript-eslint/prefer-optional-chain": "error",
84
+ "@typescript-eslint/prefer-promise-reject-errors": "error",
85
+ "@typescript-eslint/prefer-reduce-type-parameter": "error",
86
+ "@typescript-eslint/prefer-regexp-exec": "error",
87
+ "@typescript-eslint/prefer-return-this-type": "error",
88
+ "@typescript-eslint/prefer-string-starts-ends-with": "error",
89
+ "@typescript-eslint/related-getter-setter-pairs": "error",
90
+ "@typescript-eslint/require-await": "error",
91
+ "@typescript-eslint/restrict-plus-operands": [
92
+ "error",
93
+ {
94
+ allowAny: false,
95
+ allowBoolean: false,
96
+ allowNullish: false,
97
+ allowNumberAndString: false,
98
+ allowRegExp: false
99
+ }
100
+ ],
101
+ "@typescript-eslint/restrict-template-expressions": [
102
+ "error",
103
+ {
104
+ allowAny: false,
105
+ allowBoolean: false,
106
+ allowNever: false,
107
+ allowNullish: false,
108
+ allowNumber: false,
109
+ allowRegExp: false
110
+ }
111
+ ],
112
+ "@typescript-eslint/return-await": [
113
+ "error",
114
+ "error-handling-correctness-only"
115
+ ],
116
+ "@typescript-eslint/triple-slash-reference": "error",
117
+ "@typescript-eslint/unbound-method": "error",
118
+ "@typescript-eslint/unified-signatures": "error",
119
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": "error",
120
+ "dot-notation": "off",
121
+ "no-empty-function": "off"
122
+ };
123
+ export {
124
+ typescriptRules
125
+ };
126
+ //# sourceMappingURL=typescript.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/rules/typescript.js"],"sourcesContent":["export const typescriptRules = {\n \"@typescript-eslint/adjacent-overload-signatures\": \"error\",\n \"@typescript-eslint/array-type\": \"error\",\n \"@typescript-eslint/await-thenable\": \"error\",\n \"@typescript-eslint/ban-ts-comment\": [\n \"error\",\n { minimumDescriptionLength: 10 },\n ],\n \"@typescript-eslint/ban-tslint-comment\": \"error\",\n \"@typescript-eslint/class-literal-property-style\": \"error\",\n \"@typescript-eslint/consistent-generic-constructors\": \"error\",\n \"@typescript-eslint/consistent-indexed-object-style\": \"error\",\n \"@typescript-eslint/consistent-type-assertions\": \"error\",\n \"@typescript-eslint/consistent-type-definitions\": \"error\",\n \"@typescript-eslint/dot-notation\": \"error\",\n \"@typescript-eslint/no-array-constructor\": \"error\",\n \"@typescript-eslint/no-array-delete\": \"error\",\n \"@typescript-eslint/no-base-to-string\": \"error\",\n \"@typescript-eslint/no-confusing-non-null-assertion\": \"error\",\n \"@typescript-eslint/no-confusing-void-expression\": \"error\",\n \"@typescript-eslint/no-deprecated\": \"error\",\n \"@typescript-eslint/no-duplicate-enum-values\": \"error\",\n \"@typescript-eslint/no-duplicate-type-constituents\": \"error\",\n \"@typescript-eslint/no-dynamic-delete\": \"error\",\n \"@typescript-eslint/no-empty-function\": \"error\",\n \"@typescript-eslint/no-empty-object-type\": \"error\",\n \"@typescript-eslint/no-explicit-any\": \"error\",\n \"@typescript-eslint/no-extra-non-null-assertion\": \"error\",\n \"@typescript-eslint/no-extraneous-class\": \"error\",\n \"@typescript-eslint/no-floating-promises\": \"error\",\n \"@typescript-eslint/no-for-in-array\": \"error\",\n \"@typescript-eslint/no-implied-eval\": \"error\",\n \"@typescript-eslint/no-inferrable-types\": \"error\",\n \"@typescript-eslint/no-invalid-void-type\": \"error\",\n \"@typescript-eslint/no-meaningless-void-operator\": \"error\",\n \"@typescript-eslint/no-misused-new\": \"error\",\n \"@typescript-eslint/no-misused-promises\": \"error\",\n \"@typescript-eslint/no-mixed-enums\": \"error\",\n \"@typescript-eslint/no-namespace\": \"error\",\n \"@typescript-eslint/no-non-null-asserted-nullish-coalescing\": \"error\",\n \"@typescript-eslint/no-non-null-asserted-optional-chain\": \"error\",\n \"@typescript-eslint/no-non-null-assertion\": \"error\",\n \"@typescript-eslint/no-redundant-type-constituents\": \"error\",\n \"@typescript-eslint/no-require-imports\": \"error\",\n \"@typescript-eslint/no-this-alias\": \"error\",\n \"@typescript-eslint/no-unnecessary-boolean-literal-compare\": \"error\",\n \"@typescript-eslint/no-unnecessary-condition\": \"error\",\n \"@typescript-eslint/no-unnecessary-template-expression\": \"error\",\n \"@typescript-eslint/no-unnecessary-type-arguments\": \"error\",\n \"@typescript-eslint/no-unnecessary-type-assertion\": \"error\",\n \"@typescript-eslint/no-unnecessary-type-constraint\": \"error\",\n \"@typescript-eslint/no-unnecessary-type-parameters\": \"error\",\n \"@typescript-eslint/no-unsafe-declaration-merging\": \"error\",\n \"@typescript-eslint/no-unsafe-enum-comparison\": \"error\",\n \"@typescript-eslint/no-unsafe-function-type\": \"error\",\n \"@typescript-eslint/no-unsafe-unary-minus\": \"error\",\n \"@typescript-eslint/no-unused-expressions\": \"error\",\n \"@typescript-eslint/no-unused-vars\": [\n \"error\",\n {\n args: \"after-used\",\n argsIgnorePattern: \"^_\",\n ignoreRestSiblings: false,\n vars: \"all\",\n varsIgnorePattern: \"^_\",\n },\n ],\n \"@typescript-eslint/no-useless-constructor\": \"error\",\n \"@typescript-eslint/no-wrapper-object-types\": \"error\",\n \"@typescript-eslint/non-nullable-type-assertion-style\": \"error\",\n \"@typescript-eslint/only-throw-error\": \"error\",\n \"@typescript-eslint/prefer-as-const\": \"error\",\n \"@typescript-eslint/prefer-find\": \"error\",\n \"@typescript-eslint/prefer-for-of\": \"error\",\n \"@typescript-eslint/prefer-function-type\": \"error\",\n \"@typescript-eslint/prefer-includes\": \"error\",\n \"@typescript-eslint/prefer-literal-enum-member\": \"error\",\n \"@typescript-eslint/prefer-namespace-keyword\": \"error\",\n \"@typescript-eslint/prefer-nullish-coalescing\": \"error\",\n \"@typescript-eslint/prefer-optional-chain\": \"error\",\n \"@typescript-eslint/prefer-promise-reject-errors\": \"error\",\n \"@typescript-eslint/prefer-reduce-type-parameter\": \"error\",\n \"@typescript-eslint/prefer-regexp-exec\": \"error\",\n \"@typescript-eslint/prefer-return-this-type\": \"error\",\n \"@typescript-eslint/prefer-string-starts-ends-with\": \"error\",\n \"@typescript-eslint/related-getter-setter-pairs\": \"error\",\n \"@typescript-eslint/require-await\": \"error\",\n \"@typescript-eslint/restrict-plus-operands\": [\n \"error\",\n {\n allowAny: false,\n allowBoolean: false,\n allowNullish: false,\n allowNumberAndString: false,\n allowRegExp: false,\n },\n ],\n \"@typescript-eslint/restrict-template-expressions\": [\n \"error\",\n {\n allowAny: false,\n allowBoolean: false,\n allowNever: false,\n allowNullish: false,\n allowNumber: false,\n allowRegExp: false,\n },\n ],\n \"@typescript-eslint/return-await\": [\n \"error\",\n \"error-handling-correctness-only\",\n ],\n \"@typescript-eslint/triple-slash-reference\": \"error\",\n \"@typescript-eslint/unbound-method\": \"error\",\n \"@typescript-eslint/unified-signatures\": \"error\",\n \"@typescript-eslint/use-unknown-in-catch-callback-variable\": \"error\",\n \"dot-notation\": \"off\",\n \"no-empty-function\": \"off\",\n};\n"],"mappings":";;;AAAO,IAAM,kBAAkB;AAAA,EAC7B,mDAAmD;AAAA,EACnD,iCAAiC;AAAA,EACjC,qCAAqC;AAAA,EACrC,qCAAqC;AAAA,IACnC;AAAA,IACA,EAAE,0BAA0B,GAAG;AAAA,EACjC;AAAA,EACA,yCAAyC;AAAA,EACzC,mDAAmD;AAAA,EACnD,sDAAsD;AAAA,EACtD,sDAAsD;AAAA,EACtD,iDAAiD;AAAA,EACjD,kDAAkD;AAAA,EAClD,mCAAmC;AAAA,EACnC,2CAA2C;AAAA,EAC3C,sCAAsC;AAAA,EACtC,wCAAwC;AAAA,EACxC,sDAAsD;AAAA,EACtD,mDAAmD;AAAA,EACnD,oCAAoC;AAAA,EACpC,+CAA+C;AAAA,EAC/C,qDAAqD;AAAA,EACrD,wCAAwC;AAAA,EACxC,wCAAwC;AAAA,EACxC,2CAA2C;AAAA,EAC3C,sCAAsC;AAAA,EACtC,kDAAkD;AAAA,EAClD,0CAA0C;AAAA,EAC1C,2CAA2C;AAAA,EAC3C,sCAAsC;AAAA,EACtC,sCAAsC;AAAA,EACtC,0CAA0C;AAAA,EAC1C,2CAA2C;AAAA,EAC3C,mDAAmD;AAAA,EACnD,qCAAqC;AAAA,EACrC,0CAA0C;AAAA,EAC1C,qCAAqC;AAAA,EACrC,mCAAmC;AAAA,EACnC,8DAA8D;AAAA,EAC9D,0DAA0D;AAAA,EAC1D,4CAA4C;AAAA,EAC5C,qDAAqD;AAAA,EACrD,yCAAyC;AAAA,EACzC,oCAAoC;AAAA,EACpC,6DAA6D;AAAA,EAC7D,+CAA+C;AAAA,EAC/C,yDAAyD;AAAA,EACzD,oDAAoD;AAAA,EACpD,oDAAoD;AAAA,EACpD,qDAAqD;AAAA,EACrD,qDAAqD;AAAA,EACrD,oDAAoD;AAAA,EACpD,gDAAgD;AAAA,EAChD,8CAA8C;AAAA,EAC9C,4CAA4C;AAAA,EAC5C,4CAA4C;AAAA,EAC5C,qCAAqC;AAAA,IACnC;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,mBAAmB;AAAA,MACnB,oBAAoB;AAAA,MACpB,MAAM;AAAA,MACN,mBAAmB;AAAA,IACrB;AAAA,EACF;AAAA,EACA,6CAA6C;AAAA,EAC7C,8CAA8C;AAAA,EAC9C,wDAAwD;AAAA,EACxD,uCAAuC;AAAA,EACvC,sCAAsC;AAAA,EACtC,kCAAkC;AAAA,EAClC,oCAAoC;AAAA,EACpC,2CAA2C;AAAA,EAC3C,sCAAsC;AAAA,EACtC,iDAAiD;AAAA,EACjD,+CAA+C;AAAA,EAC/C,gDAAgD;AAAA,EAChD,4CAA4C;AAAA,EAC5C,mDAAmD;AAAA,EACnD,mDAAmD;AAAA,EACnD,yCAAyC;AAAA,EACzC,8CAA8C;AAAA,EAC9C,qDAAqD;AAAA,EACrD,kDAAkD;AAAA,EAClD,oCAAoC;AAAA,EACpC,6CAA6C;AAAA,IAC3C;AAAA,IACA;AAAA,MACE,UAAU;AAAA,MACV,cAAc;AAAA,MACd,cAAc;AAAA,MACd,sBAAsB;AAAA,MACtB,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,oDAAoD;AAAA,IAClD;AAAA,IACA;AAAA,MACE,UAAU;AAAA,MACV,cAAc;AAAA,MACd,YAAY;AAAA,MACZ,cAAc;AAAA,MACd,aAAa;AAAA,MACb,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,mCAAmC;AAAA,IACjC;AAAA,IACA;AAAA,EACF;AAAA,EACA,6CAA6C;AAAA,EAC7C,qCAAqC;AAAA,EACrC,yCAAyC;AAAA,EACzC,6DAA6D;AAAA,EAC7D,gBAAgB;AAAA,EAChB,qBAAqB;AACvB;","names":[]}
package/package.json CHANGED
@@ -1,33 +1,44 @@
1
- {
2
- "name": "eslint-config-everything",
3
- "version": "0.0.0",
4
- "packageManager": "yarn@4.3.1",
5
- "type": "module",
6
- "main": "eslint.config.js",
7
- "peerDependencies": {
8
- "@eslint/js": "^9.29.0",
9
- "@typescript-eslint/parser": "^8.34.0",
10
- "eslint": "^9.0.0",
11
- "eslint-config-prettier": "^10.0.0",
12
- "eslint-import-resolver-typescript": "^4.4.3",
13
- "eslint-plugin-import": "^2.31.0",
14
- "eslint-plugin-jsx-a11y": "^6.10.2",
15
- "eslint-plugin-react": "^7.37.5",
16
- "prettier": "^3.0.0",
17
- "typescript": "^5.8.3",
18
- "typescript-eslint": "^8.34.0"
19
- },
20
- "devDependencies": {
21
- "@eslint/js": "^9.29.0",
22
- "@typescript-eslint/parser": "^8.34.0",
23
- "eslint": "^9.28.0",
24
- "eslint-config-prettier": "^10.1.5",
25
- "eslint-import-resolver-typescript": "^4.4.3",
26
- "eslint-plugin-import": "^2.31.0",
27
- "eslint-plugin-jsx-a11y": "^6.10.2",
28
- "eslint-plugin-react": "^7.37.5",
29
- "prettier": "^3.5.3",
30
- "typescript": "^5.8.3",
31
- "typescript-eslint": "^8.34.0"
32
- }
1
+ {
2
+ "name": "eslint-config-everything",
3
+ "version": "0.0.5",
4
+ "description": "A fully featured, opinionated ESLint configuration.",
5
+ "keywords": [
6
+ "eslint",
7
+ "eslint-config",
8
+ "eslint-config-vigilance"
9
+ ],
10
+ "license": "MIT",
11
+ "author": "Nathan Drake <nathan@drakewest.dev>",
12
+ "type": "module",
13
+ "exports": {
14
+ ".": "./dist/index.js"
15
+ },
16
+ "main": "./dist/index.js",
17
+ "module": "./dist/index.mjs",
18
+ "types": "./dist/index.d.ts",
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "dependencies": {
23
+ "eslint": "^9.17.0",
24
+ "eslint-plugin-only-warn": "^1.1.0",
25
+ "eslint-plugin-perfectionist": "^4.3.0",
26
+ "eslint-plugin-react": "^7.37.2",
27
+ "eslint-plugin-react-hooks": "^5.1.0",
28
+ "eslint-plugin-turbo": "^2.3.3",
29
+ "typescript-eslint": "^8.18.0"
30
+ },
31
+ "devDependencies": {
32
+ "@changesets/cli": "^2.27.10",
33
+ "@next/eslint-plugin-next": "^15.1.0",
34
+ "globals": "^15.13.0",
35
+ "jiti": "^2.4.1",
36
+ "tsup": "^8.3.5"
37
+ },
38
+ "scripts": {
39
+ "build": "tsup",
40
+ "bump": "changeset version",
41
+ "local-release": "changeset version && changeset publish",
42
+ "release": "changeset publish"
43
+ }
33
44
  }
package/.editorconfig DELETED
@@ -1,10 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- end_of_line = lf
5
- insert_final_newline = true
6
-
7
- [*.{js,json,yml}]
8
- charset = utf-8
9
- indent_style = space
10
- indent_size = 2
package/.gitattributes DELETED
@@ -1,4 +0,0 @@
1
- /.yarn/** linguist-vendored
2
- /.yarn/releases/* binary
3
- /.yarn/plugins/**/* binary
4
- /.pnp.* binary linguist-generated
package/.prettierrc DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "trailingComma": "es5",
3
- "tabWidth": 2,
4
- "semi": true,
5
- "singleQuote": true
6
- }
@@ -1,5 +0,0 @@
1
- # This file is automatically generated by @yarnpkg/sdks.
2
- # Manual changes might be lost!
3
-
4
- integrations:
5
- - vscode
@@ -1,32 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const {existsSync} = require(`fs`);
4
- const {createRequire, register} = require(`module`);
5
- const {resolve} = require(`path`);
6
- const {pathToFileURL} = require(`url`);
7
-
8
- const relPnpApiPath = "../../../../.pnp.cjs";
9
-
10
- const absPnpApiPath = resolve(__dirname, relPnpApiPath);
11
- const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
12
- const absRequire = createRequire(absPnpApiPath);
13
-
14
- const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
15
- const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
16
-
17
- if (existsSync(absPnpApiPath)) {
18
- if (!process.versions.pnp) {
19
- // Setup the environment to be able to require prettier/bin/prettier.cjs
20
- require(absPnpApiPath).setup();
21
- if (isPnpLoaderEnabled && register) {
22
- register(pathToFileURL(absPnpLoaderPath));
23
- }
24
- }
25
- }
26
-
27
- const wrapWithUserWrapper = existsSync(absUserWrapperPath)
28
- ? exports => absRequire(absUserWrapperPath)(exports)
29
- : exports => exports;
30
-
31
- // Defer to the real prettier/bin/prettier.cjs your application uses
32
- module.exports = wrapWithUserWrapper(absRequire(`prettier/bin/prettier.cjs`));
@@ -1,32 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const {existsSync} = require(`fs`);
4
- const {createRequire, register} = require(`module`);
5
- const {resolve} = require(`path`);
6
- const {pathToFileURL} = require(`url`);
7
-
8
- const relPnpApiPath = "../../../.pnp.cjs";
9
-
10
- const absPnpApiPath = resolve(__dirname, relPnpApiPath);
11
- const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
12
- const absRequire = createRequire(absPnpApiPath);
13
-
14
- const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
15
- const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
16
-
17
- if (existsSync(absPnpApiPath)) {
18
- if (!process.versions.pnp) {
19
- // Setup the environment to be able to require prettier
20
- require(absPnpApiPath).setup();
21
- if (isPnpLoaderEnabled && register) {
22
- register(pathToFileURL(absPnpLoaderPath));
23
- }
24
- }
25
- }
26
-
27
- const wrapWithUserWrapper = existsSync(absUserWrapperPath)
28
- ? exports => absRequire(absUserWrapperPath)(exports)
29
- : exports => exports;
30
-
31
- // Defer to the real prettier your application uses
32
- module.exports = wrapWithUserWrapper(absRequire(`prettier`));
@@ -1,7 +0,0 @@
1
- {
2
- "name": "prettier",
3
- "version": "3.5.3-sdk",
4
- "main": "./index.cjs",
5
- "type": "commonjs",
6
- "bin": "./bin/prettier.cjs"
7
- }
package/.yarnrc.yml DELETED
@@ -1 +0,0 @@
1
- nodeLinker: pnp
package/eslint.config.js DELETED
@@ -1,198 +0,0 @@
1
- import { FlatCompat } from '@eslint/eslintrc';
2
- import js from '@eslint/js';
3
- import eslint from '@eslint/js';
4
- import importPlugin from 'eslint-plugin-import';
5
- import jsxA11y from 'eslint-plugin-jsx-a11y';
6
- import react from 'eslint-plugin-react';
7
- import globals from 'globals';
8
- import path from 'node:path';
9
- import { fileURLToPath } from 'node:url';
10
- import { defineConfig } from 'eslint/config';
11
- import tseslint from 'typescript-eslint';
12
-
13
- const __filename = fileURLToPath(import.meta.url);
14
- const __dirname = path.dirname(__filename);
15
- const compat = new FlatCompat({
16
- baseDirectory: __dirname,
17
- recommendedConfig: js.configs.recommended,
18
- allConfig: js.configs.all,
19
- });
20
-
21
- export default defineConfig([
22
- tseslint.configs.recommended,
23
- eslint.configs.recommended,
24
- {
25
- languageOptions: {
26
- parserOptions: {
27
- allowDefaultProject: true,
28
- projectService: true,
29
- tsconfigRootDir: import.meta.dirname,
30
- },
31
- },
32
- files: ['**/*.{ts,tsx}'], // TypeScript 파일에만 적용
33
- rules: {
34
- 'no-undef': 'off', // no-undef 규칙 비활성화
35
- 'no-unused-vars': 'off',
36
- '@typescript-eslint/no-unused-vars': [
37
- 'error',
38
- {
39
- args: 'all',
40
- argsIgnorePattern: '^_',
41
- caughtErrors: 'all',
42
- caughtErrorsIgnorePattern: '^_',
43
- destructuredArrayIgnorePattern: '^_',
44
- varsIgnorePattern: '^_',
45
- ignoreRestSiblings: true,
46
- },
47
- ],
48
- },
49
- },
50
-
51
- {
52
- files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
53
- ...react.configs.flat.recommended,
54
- plugins: {
55
- react,
56
- },
57
- languageOptions: {
58
- parserOptions: {
59
- ecmaFeatures: {
60
- jsx: true,
61
- },
62
- ecmaVersion: 'latest',
63
- sourceType: 'module',
64
- },
65
- globals: {
66
- ...globals.browser,
67
- ...globals.serviceworker,
68
- },
69
- },
70
- rules: {
71
- 'no-undef': 'off', // no-undef 규칙 비활성화
72
- 'react/react-in-jsx-scope': 'off', // JSX 쓸 때 React import 안 해도 되게
73
- 'react/jsx-uses-react': 'off',
74
- // Prevent missing displayName in a React component definition
75
- // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/display-name.md
76
- 'react/display-name': ['off', { ignoreTranspilerName: false }],
77
- // Forbid certain props on DOM Nodes
78
- // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/forbid-dom-props.md
79
- 'react/forbid-dom-props': ['off', { forbid: [] }],
80
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unstable-nested-components.md
81
- 'react/no-unstable-nested-components': ['off', { allowAsProps: true }],
82
- },
83
- },
84
- {
85
- files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
86
- plugins: {
87
- 'jsx-a11y': jsxA11y,
88
- },
89
- languageOptions: {
90
- parserOptions: {
91
- ecmaFeatures: {
92
- jsx: true,
93
- },
94
- },
95
- },
96
- rules: {
97
- // ensure emoji are accessible
98
- // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/accessible-emoji.md
99
- // disabled; rule is deprecated
100
- 'jsx-a11y/accessible-emoji': 'off',
101
-
102
- // Enforce that all elements that require alternative text have meaningful information
103
- // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/alt-text.md
104
- 'jsx-a11y/alt-text': [
105
- 'error',
106
- {
107
- elements: ['img', 'object', 'area', 'input[type="image"]'],
108
- img: [],
109
- object: [],
110
- area: [],
111
- 'input[type="image"]': [],
112
- },
113
- ],
114
- // require onClick be accompanied by onKeyUp/onKeyDown/onKeyPress
115
- // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/click-events-have-key-events.md
116
- 'jsx-a11y/click-events-have-key-events': 'error',
117
- },
118
- },
119
- {
120
- extends: compat.extends('eslint:recommended', 'prettier'),
121
- plugins: {
122
- import: importPlugin,
123
- },
124
- files: ['**/*.{js,mjs,cjs}'],
125
- languageOptions: {
126
- ecmaVersion: 'latest',
127
- sourceType: 'module',
128
- globals: {
129
- ...globals.browser,
130
- ...globals.mocha,
131
- ...globals.node,
132
- },
133
- parserOptions: {},
134
- },
135
-
136
- rules: {
137
- 'no-unused-vars': 'off',
138
- 'no-nested-ternary': 'off', // 중첩 삼항 연산자 가능
139
- 'arrow-body-style': ['error', 'as-needed'], // 화살표 함수 블록 스타일 자유롭게 허용
140
- 'no-shadow': 'off', // 변수 이름 중복 허용
141
- 'implicit-arrow-linebreak': 'off', // 암시적 화살표 함수 줄바꿈 자유롭게 허용
142
- 'operator-linebreak': 'off', // 연산자 줄바꿈 자유롭게 허용
143
- 'import/order': [
144
- 'error',
145
- {
146
- groups: [
147
- ['builtin', 'external'],
148
- 'internal',
149
- 'parent',
150
- 'sibling',
151
- 'index',
152
- 'object',
153
- 'type',
154
- ],
155
- pathGroups: [
156
- {
157
- pattern: 'react',
158
- group: 'external',
159
- position: 'before',
160
- },
161
- {
162
- pattern: '@mui/**',
163
- group: 'external',
164
- position: 'before',
165
- },
166
- {
167
- pattern: '@storybook/**',
168
- group: 'external',
169
- position: 'after',
170
- },
171
- {
172
- pattern: '@internal/**',
173
- group: 'internal',
174
- position: 'after',
175
- },
176
- ],
177
- pathGroupsExcludedImportTypes: ['react', '@mui'],
178
- alphabetize: {
179
- order: 'asc',
180
- caseInsensitive: true,
181
- },
182
- },
183
- ],
184
- },
185
- },
186
- {
187
- settings: {
188
- 'import/resolver': {
189
- node: {
190
- extensions: ['.js', '.jsx', '.ts', '.tsx', 'd.ts'],
191
- },
192
- typescript: {
193
- tsconfigRootDir: import.meta.dirname,
194
- },
195
- },
196
- },
197
- },
198
- ]);