@peerigon/configs 1.0.0-beta.1 → 1.0.0-beta.10

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 (75) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/docs/prettier.md +13 -0
  3. package/docs/typescript.md +15 -0
  4. package/eslint/presets/typescript.test/main.ts +4 -0
  5. package/eslint/rules/javascript.js +3 -0
  6. package/package.json +84 -25
  7. package/prettier/base.js +4 -1
  8. package/semantic-release/base.js +41 -0
  9. package/types/eslint/lib/glob-patterns.d.ts +9 -0
  10. package/types/eslint/lib/glob-patterns.d.ts.map +1 -0
  11. package/types/eslint/lib/rule-options.d.ts +95 -0
  12. package/types/eslint/lib/rule-options.d.ts.map +1 -0
  13. package/types/eslint/presets/javascript-browser.d.ts +4 -0
  14. package/types/eslint/presets/javascript-browser.d.ts.map +1 -0
  15. package/types/eslint/presets/javascript-node.d.ts +4 -0
  16. package/types/eslint/presets/javascript-node.d.ts.map +1 -0
  17. package/types/eslint/presets/javascript.d.ts +4 -0
  18. package/types/eslint/presets/javascript.d.ts.map +1 -0
  19. package/types/eslint/presets/javascript.test/eslint.config.d.ts +2 -0
  20. package/types/eslint/presets/javascript.test/eslint.config.d.ts.map +1 -0
  21. package/types/eslint/presets/javascript.test/main.d.ts +2 -0
  22. package/types/eslint/presets/javascript.test/main.d.ts.map +1 -0
  23. package/types/eslint/presets/javascript.test/other.d.ts +3 -0
  24. package/types/eslint/presets/javascript.test/other.d.ts.map +1 -0
  25. package/types/eslint/presets/typescript-node.d.ts +4 -0
  26. package/types/eslint/presets/typescript-node.d.ts.map +1 -0
  27. package/types/eslint/presets/typescript-react.d.ts +4 -0
  28. package/types/eslint/presets/typescript-react.d.ts.map +1 -0
  29. package/types/eslint/presets/typescript.d.ts +4 -0
  30. package/types/eslint/presets/typescript.d.ts.map +1 -0
  31. package/types/eslint/rules/base.d.ts +4 -0
  32. package/types/eslint/rules/base.d.ts.map +1 -0
  33. package/types/eslint/rules/browser.d.ts +4 -0
  34. package/types/eslint/rules/browser.d.ts.map +1 -0
  35. package/types/eslint/rules/javascript.d.ts +4 -0
  36. package/types/eslint/rules/javascript.d.ts.map +1 -0
  37. package/types/eslint/rules/node.d.ts +4 -0
  38. package/types/eslint/rules/node.d.ts.map +1 -0
  39. package/types/eslint/rules/react.d.ts +4 -0
  40. package/types/eslint/rules/react.d.ts.map +1 -0
  41. package/types/eslint/rules/typescript.d.ts +3 -0
  42. package/types/eslint/rules/typescript.d.ts.map +1 -0
  43. package/types/eslint/styles/jsx-no-literals.d.ts +4 -0
  44. package/types/eslint/styles/jsx-no-literals.d.ts.map +1 -0
  45. package/types/eslint/styles/no-default-export.d.ts +4 -0
  46. package/types/eslint/styles/no-default-export.d.ts.map +1 -0
  47. package/types/eslint/styles/no-default-export.test/eslint.config.d.ts +3 -0
  48. package/types/eslint/styles/no-default-export.test/eslint.config.d.ts.map +1 -0
  49. package/types/eslint/styles/no-default-export.test/main.d.ts +3 -0
  50. package/types/eslint/styles/no-default-export.test/main.d.ts.map +1 -0
  51. package/types/eslint/styles/no-null.d.ts +4 -0
  52. package/types/eslint/styles/no-null.d.ts.map +1 -0
  53. package/types/eslint/styles/no-null.test/eslint.config.d.ts +3 -0
  54. package/types/eslint/styles/no-null.test/eslint.config.d.ts.map +1 -0
  55. package/types/eslint/styles/no-null.test/main.d.ts +2 -0
  56. package/types/eslint/styles/no-null.test/main.d.ts.map +1 -0
  57. package/types/eslint/styles/prefer-array-shorthand.d.ts +4 -0
  58. package/types/eslint/styles/prefer-array-shorthand.d.ts.map +1 -0
  59. package/types/eslint/styles/prefer-array-shorthand.test/eslint.config.d.ts +3 -0
  60. package/types/eslint/styles/prefer-array-shorthand.test/eslint.config.d.ts.map +1 -0
  61. package/types/eslint/styles/prefer-array-shorthand.test/main.d.ts +3 -0
  62. package/types/eslint/styles/prefer-array-shorthand.test/main.d.ts.map +1 -0
  63. package/types/eslint/styles/prefer-interface.d.ts +4 -0
  64. package/types/eslint/styles/prefer-interface.d.ts.map +1 -0
  65. package/types/eslint/styles/prefer-interface.test/eslint.config.d.ts +3 -0
  66. package/types/eslint/styles/prefer-interface.test/eslint.config.d.ts.map +1 -0
  67. package/types/eslint/styles/prefer-interface.test/main.d.ts +7 -0
  68. package/types/eslint/styles/prefer-interface.test/main.d.ts.map +1 -0
  69. package/types/prettier/base.d.ts +4 -0
  70. package/types/prettier/base.d.ts.map +1 -0
  71. package/types/semantic-release/base.d.ts +4 -0
  72. package/types/semantic-release/base.d.ts.map +1 -0
  73. package/typescript/base.json +8 -2
  74. package/typescript/js-lib.json +9 -0
  75. package/typescript/lib.json +10 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,79 @@
1
+ # [1.0.0-beta.10](https://github.com/peerigon/configs/compare/v1.0.0-beta.9...v1.0.0-beta.10) (2024-12-11)
2
+
3
+ ### Bug Fixes
4
+
5
+ - Turn of TS's exactOptionalPropertyTypes ([4069985](https://github.com/peerigon/configs/commit/4069985cad9b2da629e441cc1f02fd0e4be7f4a0))
6
+ - Turn off unicorn/no-single-promise-in-promise-methods ([0557a83](https://github.com/peerigon/configs/commit/0557a83c45b2fe3198f84d47412c90fbb87ddd69))
7
+
8
+ # [1.0.0-beta.9](https://github.com/peerigon/configs/compare/v1.0.0-beta.8...v1.0.0-beta.9) (2024-12-09)
9
+
10
+ ### Features
11
+
12
+ - Improve TS configs and add library types ([760a898](https://github.com/peerigon/configs/commit/760a8983b9d780601e7c6e2cb2c867f45f55f25f))
13
+
14
+ # [1.0.0-beta.8](https://github.com/peerigon/configs/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2024-11-16)
15
+
16
+ ### Bug Fixes
17
+
18
+ - Downgrade ESLint ([d09f208](https://github.com/peerigon/configs/commit/d09f2084646c68fd9998685143563ba88ddaab0a))
19
+
20
+ ### Features
21
+
22
+ - Update dependencies ([836a04f](https://github.com/peerigon/configs/commit/836a04f798741639837bb56fcf3ecbc028794c14))
23
+
24
+ # [1.0.0-beta.7](https://github.com/peerigon/configs/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2024-11-15)
25
+
26
+ ### Bug Fixes
27
+
28
+ - TypeScript configs ([0c584e7](https://github.com/peerigon/configs/commit/0c584e70fd840e6ca857f4b177a21a389d958633))
29
+
30
+ # [1.0.0-beta.6](https://github.com/peerigon/configs/compare/v1.0.0-beta.5...v1.0.0-beta.6) (2024-11-14)
31
+
32
+ ### Bug Fixes
33
+
34
+ - Missing files in package.json files array ([97111b6](https://github.com/peerigon/configs/commit/97111b66b1a741e25820bcf43b17355b59a95fca))
35
+
36
+ # [1.0.0-beta.5](https://github.com/peerigon/configs/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2024-11-14)
37
+
38
+ ### Features
39
+
40
+ - Add shareable semantic-release config ([e0b585a](https://github.com/peerigon/configs/commit/e0b585a4eaaa4dbcfb206315870d3a22fa1d7186))
41
+
42
+ # [1.0.0-beta.4](https://github.com/peerigon/configs/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2024-11-10)
43
+
44
+ ### Bug Fixes
45
+
46
+ - Adjust release script ([df43151](https://github.com/peerigon/configs/commit/df431514d28fd32d2bd69a50eeb8edf3e6cc1d44))
47
+ - Adjust release script ([3668267](https://github.com/peerigon/configs/commit/366826718205e6f542f69d890a44c3595fa84340))
48
+
49
+ # [1.0.0-beta.3](https://github.com/peerigon/configs/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2024-11-10)
50
+
51
+ ### Bug Fixes
52
+
53
+ - Prettify CHANGELOG.md ([f904e8d](https://github.com/peerigon/configs/commit/f904e8d535a8d04d615281bb942ccd8b2f12a9d9))
54
+
55
+ # [1.0.0-beta.2](https://github.com/peerigon/configs/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2024-11-10)
56
+
57
+ ### Features
58
+
59
+ - Also release on Github ([0e3e84f](https://github.com/peerigon/configs/commit/0e3e84f54a4689c8c0c3a340435346c351662cc9))
60
+
61
+ # 1.0.0-beta.1 (2024-11-05)
62
+
63
+ ### Features
64
+
65
+ - Initial release ([8f12887](https://github.com/peerigon/configs/commit/8f128873b8481832dea06c88115a785c3c7a3627))
66
+ - Update dependencies ([6bb1f24](https://github.com/peerigon/configs/commit/6bb1f242e7de360d96868b8e2b6aea58ce493c31))
67
+
68
+ # 1.0.0-beta.1 (2024-11-05)
69
+
70
+ ### Features
71
+
72
+ - Initial release ([8f12887](https://github.com/peerigon/configs/commit/8f128873b8481832dea06c88115a785c3c7a3627))
73
+ - Update dependencies ([6bb1f24](https://github.com/peerigon/configs/commit/6bb1f242e7de360d96868b8e2b6aea58ce493c31))
74
+
75
+ # 1.0.0-beta.1 (2024-11-05)
76
+
77
+ ### Features
78
+
79
+ - Initial release ([8f12887](https://github.com/peerigon/configs/commit/8f128873b8481832dea06c88115a785c3c7a3627))
@@ -0,0 +1,13 @@
1
+ # Peerigon's Prettier config
2
+
3
+ ## Install
4
+
5
+ ```sh
6
+ npm install prettier@3 --save-dev
7
+ ```
8
+
9
+ Add a `prettier.config.js` to your project:
10
+
11
+ ```
12
+
13
+ ```
@@ -0,0 +1,15 @@
1
+ ## Reasoning
2
+
3
+ ### `noUncheckedIndexedAccess`
4
+
5
+ - Mention tiny-invariant
6
+
7
+ ### `noPropertyAccessFromIndexSignature`
8
+
9
+ ### `exactOptionalPropertyTypes`
10
+
11
+ ### `verbatimModuleSyntax`
12
+
13
+ ### `allowImportingTsExtensions`
14
+
15
+ ### `rewriteRelativeImportExtensions`
@@ -5,6 +5,10 @@ import test from "./test.json" with { type: "json" };
5
5
  // eslint-disable-next-line @typescript-eslint/naming-convention
6
6
  const snake_case = 123;
7
7
 
8
+ // Should not complain about missing dot-notation here since
9
+ // we're using TS's noPropertyAccessFromIndexSignature
10
+ process.env["SOME_ENV_VAR"] = "test";
11
+
8
12
  class SomeClass {
9
13
  #someProp = true;
10
14
  private someEventHandler = () => {
@@ -23,6 +23,9 @@ export const javascript = [
23
23
  "unicorn/no-array-reduce": "off",
24
24
  "unicorn/prefer-global-this": "off", // Too many false positives
25
25
  "unicorn/prefer-ternary": "off",
26
+ // It makes sense to use Promise.all() with a single promise when we expect more to be added later.
27
+ // In that case we don't want to refactor the code, but just add the new promise.
28
+ "unicorn/no-single-promise-in-promise-methods": "off",
26
29
  },
27
30
  },
28
31
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peerigon/configs",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.10",
4
4
  "description": "Configs for ESLint, Prettier, TypeScript & friends",
5
5
  "keywords": [
6
6
  "eslint",
@@ -21,24 +21,77 @@
21
21
  "author": "Peerigon GmbH <hello@peerigon.com>",
22
22
  "type": "module",
23
23
  "exports": {
24
- "./eslint/presets/javascript-browser": "./eslint/presets/javascript-browser.js",
25
- "./eslint/presets/javascript-node": "./eslint/presets/javascript-node.js",
26
- "./eslint/presets/javascript": "./eslint/presets/javascript.js",
27
- "./eslint/presets/typescript-node": "./eslint/presets/typescript-node.js",
28
- "./eslint/presets/typescript-react": "./eslint/presets/typescript-react.js",
29
- "./eslint/presets/typescript": "./eslint/presets/typescript.js",
30
- "./eslint/styles/jsx-no-literals": "./eslint/styles/jsx-no-literals.js",
31
- "./eslint/styles/no-default-export": "./eslint/styles/no-default-export.js",
32
- "./eslint/styles/no-null": "./eslint/styles/no-null.js",
33
- "./eslint/styles/prefer-array-shorthand": "./eslint/styles/prefer-array-shorthand.js",
34
- "./eslint/styles/prefer-interface": "./eslint/styles/prefer-interface.js",
35
- "./prettier": "./prettier/base.js",
36
- "./typescript": "./typescript/base.js"
24
+ "./eslint/presets/javascript-browser": {
25
+ "types": "./types/eslint/presets/javascript-browser.d.ts",
26
+ "default": "./eslint/presets/javascript-browser.js"
27
+ },
28
+ "./eslint/presets/javascript-node": {
29
+ "types": "./types/eslint/presets/javascript-node.d.ts",
30
+ "default": "./eslint/presets/javascript-node.js"
31
+ },
32
+ "./eslint/presets/javascript": {
33
+ "types": "./types/eslint/presets/javascript.d.ts",
34
+ "default": "./eslint/presets/javascript.js"
35
+ },
36
+ "./eslint/presets/typescript-node": {
37
+ "types": "./types/eslint/presets/typescript-node.d.ts",
38
+ "default": "./eslint/presets/typescript-node.js"
39
+ },
40
+ "./eslint/presets/typescript-react": {
41
+ "types": "./types/eslint/presets/typescript-react.d.ts",
42
+ "default": "./eslint/presets/typescript-react.js"
43
+ },
44
+ "./eslint/presets/typescript": {
45
+ "types": "./types/eslint/presets/typescript.d.ts",
46
+ "default": "./eslint/presets/typescript.js"
47
+ },
48
+ "./eslint/styles/jsx-no-literals": {
49
+ "types": "./types/eslint/styles/jsx-no-literals.d.ts",
50
+ "default": "./eslint/styles/jsx-no-literals.js"
51
+ },
52
+ "./eslint/styles/no-default-export": {
53
+ "types": "./types/eslint/styles/no-default-export.d.ts",
54
+ "default": "./eslint/styles/no-default-export.js"
55
+ },
56
+ "./eslint/styles/no-null": {
57
+ "types": "./types/eslint/styles/no-null.d.ts",
58
+ "default": "./eslint/styles/no-null.js"
59
+ },
60
+ "./eslint/styles/prefer-array-shorthand": {
61
+ "types": "./types/eslint/styles/prefer-array-shorthand.d.ts",
62
+ "default": "./eslint/styles/prefer-array-shorthand.js"
63
+ },
64
+ "./eslint/styles/prefer-interface": {
65
+ "types": "./types/eslint/styles/prefer-interface.d.ts",
66
+ "default": "./eslint/styles/prefer-interface.js"
67
+ },
68
+ "./prettier": {
69
+ "types": "./types/prettier/base.d.ts",
70
+ "default": "./prettier/base.js"
71
+ },
72
+ "./semantic-release": {
73
+ "types": "./types/semantic-release/base.d.ts",
74
+ "default": "./semantic-release/base.js"
75
+ },
76
+ "./typescript": {
77
+ "default": "./typescript/base.json"
78
+ },
79
+ "./typescript/lib": {
80
+ "default": "./typescript/lib.json"
81
+ },
82
+ "./typescript/js-lib": {
83
+ "default": "./typescript/js-lib.json"
84
+ }
37
85
  },
38
86
  "files": [
87
+ "docs",
39
88
  "eslint",
40
89
  "prettier",
41
- "typescript"
90
+ "semantic-release",
91
+ "types",
92
+ "typescript",
93
+ "CHANGELOG.md",
94
+ "README.md"
42
95
  ],
43
96
  "scripts": {
44
97
  "test": "run-p test:presets:* test:styles:*",
@@ -50,8 +103,11 @@
50
103
  "test:styles:no-null": "cd eslint/styles/no-null.test; eslint --max-warnings 0 .",
51
104
  "test:styles:prefer-array-shorthand": "cd eslint/styles/prefer-array-shorthand.test; eslint --max-warnings 0 .",
52
105
  "test:styles:prefer-interface": "cd eslint/styles/prefer-interface.test; eslint --max-warnings 0 .",
53
- "test:types": "tsc",
106
+ "test:types": "tsc --noEmit",
54
107
  "test:prettier": "prettier --check .",
108
+ "build": "run-s build:*",
109
+ "build:types": "tsc",
110
+ "prepublishOnly": "npm run build",
55
111
  "prepare": "husky",
56
112
  "release": "semantic-release"
57
113
  },
@@ -62,15 +118,15 @@
62
118
  "*.{js,jsx,ts,tsx,css,md,yml,yaml}": "prettier --write"
63
119
  },
64
120
  "dependencies": {
65
- "@eslint-react/eslint-plugin": "^1.15.2",
66
- "@eslint/compat": "^1.2.2",
67
- "@eslint/js": "^9.14.0",
68
- "@ianvs/prettier-plugin-sort-imports": "^4.3.1",
121
+ "@eslint-react/eslint-plugin": "^1.16.1",
122
+ "@eslint/compat": "^1.2.3",
123
+ "@eslint/js": "9.14.0",
124
+ "@ianvs/prettier-plugin-sort-imports": "^4.4.0",
69
125
  "eslint-config-prettier": "^9.1.0",
70
126
  "eslint-plugin-jsx-a11y": "^6.10.2",
71
127
  "eslint-plugin-prefer-arrow": "^1.2.3",
72
128
  "eslint-plugin-react": "^7.37.2",
73
- "eslint-plugin-react-compiler": "^19.0.0-beta-63b359f-20241101",
129
+ "eslint-plugin-react-compiler": "^19.0.0-beta-a7bf2bd-20241110",
74
130
  "eslint-plugin-react-hooks": "^5.0.0",
75
131
  "eslint-plugin-react-refresh": "^0.4.14",
76
132
  "eslint-plugin-unicorn": "^56.0.0",
@@ -79,17 +135,18 @@
79
135
  "prettier-plugin-jsdoc": "^1.3.0",
80
136
  "prettier-plugin-packagejson": "^2.5.3",
81
137
  "prettier-plugin-tailwindcss": "^0.6.8",
82
- "typescript-eslint": "^8.13.0"
138
+ "typescript-eslint": "^8.14.0"
83
139
  },
84
140
  "devDependencies": {
85
141
  "@semantic-release/changelog": "^6.0.3",
142
+ "@semantic-release/exec": "^6.0.3",
86
143
  "@semantic-release/git": "^10.0.1",
87
144
  "@types/eslint-config-prettier": "^6.11.3",
88
145
  "@types/eslint-plugin-jsx-a11y": "^6.9.0",
89
146
  "@types/eslint__js": "^8.42.3",
90
147
  "@types/node": "^22.9.0",
91
148
  "@types/react": "^18.3.12",
92
- "eslint": "^9.14.0",
149
+ "eslint": "9.14.0",
93
150
  "husky": "^9.1.6",
94
151
  "lint-staged": "^15.2.10",
95
152
  "npm-run-all": "^4.1.5",
@@ -97,10 +154,12 @@
97
154
  "prettier": "^3.3.3",
98
155
  "react": "^18.3.1",
99
156
  "semantic-release": "^24.2.0",
100
- "typescript": "5.6.3"
157
+ "typescript": "^5.6.3"
101
158
  },
102
159
  "peerDependencies": {
103
- "eslint": "^9.10.0"
160
+ "eslint": "^9.0.0",
161
+ "prettier": "^3.3.3",
162
+ "typescript": "^5.6.3"
104
163
  },
105
164
  "publishConfig": {
106
165
  "access": "public"
package/prettier/base.js CHANGED
@@ -18,7 +18,8 @@ const plugins = await Promise.all([
18
18
  safeResolve("prettier-plugin-tailwindcss"),
19
19
  ]);
20
20
 
21
- export default {
21
+ /** @type {import("prettier").Config} */
22
+ export const config = {
22
23
  plugins,
23
24
  importOrderParserPlugins: [
24
25
  "typescript",
@@ -28,3 +29,5 @@ export default {
28
29
  ],
29
30
  importOrderTypeScriptVersion: "5.0.0",
30
31
  };
32
+
33
+ export default config;
@@ -0,0 +1,41 @@
1
+ /** @type {import("semantic-release").Options} */
2
+ export const config = {
3
+ branches: ["main", { name: "beta", prerelease: true }],
4
+ plugins: [
5
+ "@semantic-release/commit-analyzer",
6
+ "@semantic-release/release-notes-generator",
7
+ "@semantic-release/changelog",
8
+ [
9
+ "@semantic-release/git",
10
+ {
11
+ assets: ["CHANGELOG.md"],
12
+ },
13
+ ],
14
+ [
15
+ "@semantic-release/npm",
16
+ {
17
+ tarballDir: ".semantic-release",
18
+ },
19
+ ],
20
+ [
21
+ "@semantic-release/github",
22
+ {
23
+ assets: ".semantic-release/*.tgz",
24
+ },
25
+ ],
26
+ [
27
+ "@semantic-release/exec",
28
+ {
29
+ verifyConditionsCmd:
30
+ 'echo "registry=https://npm.pkg.github.com/\n//npm.pkg.github.com/:_authToken=${process.env.GITHUB_TOKEN}" > /tmp/github.npmrc && npm whoami --userconfig /tmp/github.npmrc',
31
+ prepareCmd: "npx -y prettier --write CHANGELOG.md",
32
+ publishCmd:
33
+ "npm publish --userconfig /tmp/github.npmrc --tag ${nextRelease.channel} --no-git-tag-version",
34
+ successCmd: "rm /tmp/github.npmrc",
35
+ failCmd: "rm /tmp/github.npmrc",
36
+ },
37
+ ],
38
+ ],
39
+ };
40
+
41
+ export default config;
@@ -0,0 +1,9 @@
1
+ export namespace globPatterns {
2
+ let javascript: string[];
3
+ let typescript: string[];
4
+ let typescriptAmbient: string[];
5
+ let jsx: string[];
6
+ let typescriptJsx: string[];
7
+ let tests: string[];
8
+ }
9
+ //# sourceMappingURL=glob-patterns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glob-patterns.d.ts","sourceRoot":"","sources":["../../../eslint/lib/glob-patterns.js"],"names":[],"mappings":""}
@@ -0,0 +1,95 @@
1
+ export const ruleOptions: {
2
+ camelcase: {
3
+ allow: string[];
4
+ ignoreDestructuring: boolean;
5
+ properties: string;
6
+ };
7
+ "max-lines": {
8
+ max: number;
9
+ skipBlankLines: boolean;
10
+ skipComments: boolean;
11
+ };
12
+ "no-unused-expressions": {
13
+ allowShortCircuit: boolean;
14
+ allowTernary: boolean;
15
+ };
16
+ "no-unused-vars": {
17
+ vars: string;
18
+ varsIgnorePattern: string;
19
+ args: string;
20
+ argsIgnorePattern: string;
21
+ caughtErrors: string;
22
+ reportUsedIgnorePattern: boolean;
23
+ ignoreRestSiblings: boolean;
24
+ };
25
+ "@typescript-eslint/naming-convention": {
26
+ defaultRules: ({
27
+ selector: string;
28
+ format: string[];
29
+ leadingUnderscore: string;
30
+ trailingUnderscore: string;
31
+ } | {
32
+ selector: string[];
33
+ modifiers: string[];
34
+ format: null;
35
+ } | {
36
+ selector: string;
37
+ format: null;
38
+ })[];
39
+ ignoreProperties: {
40
+ selector: string;
41
+ format: null;
42
+ };
43
+ default: {
44
+ selector: string;
45
+ format: string[];
46
+ leadingUnderscore: string;
47
+ trailingUnderscore: string;
48
+ };
49
+ function: {
50
+ selector: string;
51
+ format: string[];
52
+ leadingUnderscore: string;
53
+ trailingUnderscore: string;
54
+ };
55
+ parameter: {
56
+ selector: string;
57
+ format: string[];
58
+ leadingUnderscore: string;
59
+ trailingUnderscore: string;
60
+ };
61
+ method: {
62
+ selector: string;
63
+ format: string[];
64
+ leadingUnderscore: string;
65
+ trailingUnderscore: string;
66
+ };
67
+ typeLike: {
68
+ selector: string;
69
+ format: string[];
70
+ leadingUnderscore: string;
71
+ trailingUnderscore: string;
72
+ };
73
+ enumMember: {
74
+ selector: string;
75
+ format: string[];
76
+ leadingUnderscore: string;
77
+ trailingUnderscore: string;
78
+ };
79
+ destructuring: {
80
+ selector: string;
81
+ modifiers: string[];
82
+ format: null;
83
+ };
84
+ requiresQuites: {
85
+ selector: string[];
86
+ modifiers: string[];
87
+ format: null;
88
+ };
89
+ objectLiteralProperty: {
90
+ selector: string;
91
+ format: null;
92
+ };
93
+ };
94
+ };
95
+ //# sourceMappingURL=rule-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule-options.d.ts","sourceRoot":"","sources":["../../../eslint/lib/rule-options.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2HE"}
@@ -0,0 +1,4 @@
1
+ declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof eslintConfigPrettier)[];
2
+ export default _default;
3
+ import eslintConfigPrettier from "eslint-config-prettier";
4
+ //# sourceMappingURL=javascript-browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"javascript-browser.d.ts","sourceRoot":"","sources":["../../../eslint/presets/javascript-browser.js"],"names":[],"mappings":";;iCAAiC,wBAAwB"}
@@ -0,0 +1,4 @@
1
+ declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof eslintConfigPrettier)[];
2
+ export default _default;
3
+ import eslintConfigPrettier from "eslint-config-prettier";
4
+ //# sourceMappingURL=javascript-node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"javascript-node.d.ts","sourceRoot":"","sources":["../../../eslint/presets/javascript-node.js"],"names":[],"mappings":";;iCAAiC,wBAAwB"}
@@ -0,0 +1,4 @@
1
+ declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof eslintConfigPrettier)[];
2
+ export default _default;
3
+ import eslintConfigPrettier from "eslint-config-prettier";
4
+ //# sourceMappingURL=javascript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../eslint/presets/javascript.js"],"names":[],"mappings":";;iCAAiC,wBAAwB"}
@@ -0,0 +1,2 @@
1
+ export { default } from "../javascript-node.js";
2
+ //# sourceMappingURL=eslint.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../../../../eslint/presets/javascript.test/eslint.config.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../eslint/presets/javascript.test/main.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export const a: 1;
2
+ export const b: 2;
3
+ //# sourceMappingURL=other.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"other.d.ts","sourceRoot":"","sources":["../../../../eslint/presets/javascript.test/other.js"],"names":[],"mappings":"AAAA,kBAAmB;AACnB,kBAAmB"}
@@ -0,0 +1,4 @@
1
+ declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof eslintConfigPrettier | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
2
+ export default _default;
3
+ import eslintConfigPrettier from "eslint-config-prettier";
4
+ //# sourceMappingURL=typescript-node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript-node.d.ts","sourceRoot":"","sources":["../../../eslint/presets/typescript-node.js"],"names":[],"mappings":";;iCAAiC,wBAAwB"}
@@ -0,0 +1,4 @@
1
+ declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof eslintConfigPrettier | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
2
+ export default _default;
3
+ import eslintConfigPrettier from "eslint-config-prettier";
4
+ //# sourceMappingURL=typescript-react.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript-react.d.ts","sourceRoot":"","sources":["../../../eslint/presets/typescript-react.js"],"names":[],"mappings":";;iCAAiC,wBAAwB"}
@@ -0,0 +1,4 @@
1
+ declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof eslintConfigPrettier | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
2
+ export default _default;
3
+ import eslintConfigPrettier from "eslint-config-prettier";
4
+ //# sourceMappingURL=typescript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../eslint/presets/typescript.js"],"names":[],"mappings":";;iCAAiC,wBAAwB"}
@@ -0,0 +1,4 @@
1
+ /** @type {import("eslint").Linter.Config[]} */
2
+ export const base: import("eslint").Linter.Config[];
3
+ export default base;
4
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../eslint/rules/base.js"],"names":[],"mappings":"AAOA,+CAA+C;AAC/C,mBADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAQzC"}
@@ -0,0 +1,4 @@
1
+ /** @type {import("eslint").Linter.Config[]} */
2
+ export const browser: import("eslint").Linter.Config[];
3
+ export default browser;
4
+ //# sourceMappingURL=browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../eslint/rules/browser.js"],"names":[],"mappings":"AAEA,+CAA+C;AAC/C,sBADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAOzC"}
@@ -0,0 +1,4 @@
1
+ /** @type {import("eslint").Linter.Config[]} */
2
+ export const javascript: import("eslint").Linter.Config[];
3
+ export default javascript;
4
+ //# sourceMappingURL=javascript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../eslint/rules/javascript.js"],"names":[],"mappings":"AAKA,+CAA+C;AAC/C,yBADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CA8IzC"}
@@ -0,0 +1,4 @@
1
+ /** @type {import("eslint").Linter.Config[]} */
2
+ export const node: import("eslint").Linter.Config[];
3
+ export default node;
4
+ //# sourceMappingURL=node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../eslint/rules/node.js"],"names":[],"mappings":"AAEA,+CAA+C;AAC/C,mBADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAOzC"}
@@ -0,0 +1,4 @@
1
+ /** @type {import("eslint").Linter.Config[]} */
2
+ export const react: import("eslint").Linter.Config[];
3
+ export default react;
4
+ //# sourceMappingURL=react.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../eslint/rules/react.js"],"names":[],"mappings":"AAUA,+CAA+C;AAC/C,oBADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CA4JzC"}
@@ -0,0 +1,3 @@
1
+ export const typescript: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
2
+ export default typescript;
3
+ //# sourceMappingURL=typescript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../eslint/rules/typescript.js"],"names":[],"mappings":"AAUA,6FAyLE"}
@@ -0,0 +1,4 @@
1
+ /** @type {import("eslint").Linter.Config[]} */
2
+ export const jsxNoLiterals: import("eslint").Linter.Config[];
3
+ export default jsxNoLiterals;
4
+ //# sourceMappingURL=jsx-no-literals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-no-literals.d.ts","sourceRoot":"","sources":["../../../eslint/styles/jsx-no-literals.js"],"names":[],"mappings":"AAEA,+CAA+C;AAC/C,4BADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CA0BzC"}
@@ -0,0 +1,4 @@
1
+ /** @type {import("eslint").Linter.Config[]} */
2
+ export const noDefaultExport: import("eslint").Linter.Config[];
3
+ export default noDefaultExport;
4
+ //# sourceMappingURL=no-default-export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-default-export.d.ts","sourceRoot":"","sources":["../../../eslint/styles/no-default-export.js"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,8BADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAezC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof import("eslint-config-prettier") | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
2
+ export default _default;
3
+ //# sourceMappingURL=eslint.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/no-default-export.test/eslint.config.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare const _default: "Should not work";
2
+ export default _default;
3
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/no-default-export.test/main.ts"],"names":[],"mappings":";AACA,wBAAiC"}
@@ -0,0 +1,4 @@
1
+ /** @type {import("eslint").Linter.Config[]} */
2
+ export const noNull: import("eslint").Linter.Config[];
3
+ export default noNull;
4
+ //# sourceMappingURL=no-null.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-null.d.ts","sourceRoot":"","sources":["../../../eslint/styles/no-null.js"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,qBADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAOzC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof import("eslint-config-prettier") | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
2
+ export default _default;
3
+ //# sourceMappingURL=eslint.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/no-null.test/eslint.config.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare const shouldError: null;
2
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/no-null.test/main.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,MAAO,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** @type {import("eslint").Linter.Config[]} */
2
+ export const preferArrayShorthand: import("eslint").Linter.Config[];
3
+ export default preferArrayShorthand;
4
+ //# sourceMappingURL=prefer-array-shorthand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prefer-array-shorthand.d.ts","sourceRoot":"","sources":["../../../eslint/styles/prefer-array-shorthand.js"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,mCADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAYzC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof import("eslint-config-prettier") | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
2
+ export default _default;
3
+ //# sourceMappingURL=eslint.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/prefer-array-shorthand.test/eslint.config.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export type ShouldError1 = Array<string>;
2
+ export type ShouldError2 = Array<string | number>;
3
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/prefer-array-shorthand.test/main.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** @type {import("eslint").Linter.Config[]} */
2
+ export const preferInterface: import("eslint").Linter.Config[];
3
+ export default preferInterface;
4
+ //# sourceMappingURL=prefer-interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prefer-interface.d.ts","sourceRoot":"","sources":["../../../eslint/styles/prefer-interface.js"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,8BADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAOzC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof import("eslint-config-prettier") | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
2
+ export default _default;
3
+ //# sourceMappingURL=eslint.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/prefer-interface.test/eslint.config.js"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export type ShouldError = {
2
+ name: string;
3
+ };
4
+ export interface ShouldWork {
5
+ name: string;
6
+ }
7
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/prefer-interface.test/main.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,4 @@
1
+ /** @type {import("prettier").Config} */
2
+ export const config: import("prettier").Config;
3
+ export default config;
4
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../prettier/base.js"],"names":[],"mappings":"AAoBA,wCAAwC;AACxC,qBADW,OAAO,UAAU,EAAE,MAAM,CAUlC"}
@@ -0,0 +1,4 @@
1
+ /** @type {import("semantic-release").Options} */
2
+ export const config: import("semantic-release").Options;
3
+ export default config;
4
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../semantic-release/base.js"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,qBADW,OAAO,kBAAkB,EAAE,OAAO,CAsC3C"}
@@ -2,11 +2,13 @@
2
2
  "compilerOptions": {
3
3
  "checkJs": true,
4
4
  "esModuleInterop": true,
5
- "exactOptionalPropertyTypes": true,
5
+ // We decided to turn off `exactOptionalPropertyTypes` because it's too strict
6
+ // by complaining about too much unproblematic code. We may revisit this decision later.
7
+ "exactOptionalPropertyTypes": false,
6
8
  "forceConsistentCasingInFileNames": true,
7
9
  "isolatedModules": true,
10
+ "lib": ["DOM", "ESNext"],
8
11
  "module": "NodeNext",
9
- "noEmit": true, // If code should be emitted, it's recommended to create a separate tsconfig.build.json file
10
12
  "noImplicitOverride": true,
11
13
  "noImplicitReturns": true,
12
14
  "noPropertyAccessFromIndexSignature": true,
@@ -15,6 +17,10 @@
15
17
  "skipLibCheck": true,
16
18
  "strict": true,
17
19
  "target": "ESNext"
20
+ // TODO: Turn on the following settings once TS 5.7 is released, see also https://nodejs.org/docs/latest/api/typescript.html#typescript-features
21
+ // "allowImportingTsExtensions": true,
22
+ // "rewriteRelativeImportExtensions": true,
23
+ // "verbatimModuleSyntax": true
18
24
  },
19
25
  "$schema": "https://json.schemastore.org/tsconfig"
20
26
  }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./lib.json",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "emitDeclarationOnly": true,
6
+ "outDir": "${configDir}/types"
7
+ },
8
+ "$schema": "https://json.schemastore.org/tsconfig"
9
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./base.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "declarationMap": true,
6
+ "outDir": "${configDir}/dist",
7
+ "sourceMap": true
8
+ },
9
+ "$schema": "https://json.schemastore.org/tsconfig"
10
+ }