@joshuaavalon/eslint-config-typescript 7.0.2 → 7.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -38,7 +38,7 @@ const extensionRules = {
38
38
  };
39
39
 
40
40
  /** @type {import("eslint").Linter.RulesRecord} */
41
- const rules = {
41
+ const rules$1 = {
42
42
  "no-undef": "off",
43
43
  "@typescript-eslint/adjacent-overload-signatures": "error",
44
44
  "@typescript-eslint/array-type": "error",
@@ -159,6 +159,13 @@ const rules = {
159
159
  "no-duplicate-imports": ["off"]
160
160
  };
161
161
 
162
+ /** @type {import("@stylistic/eslint-plugin").RuleOptions} */
163
+ const rules = {
164
+ "@stylistic/type-annotation-spacing": "error",
165
+ "@stylistic/type-generic-spacing": ["error"],
166
+ "@stylistic/type-named-tuple-spacing": ["error"]
167
+ };
168
+
162
169
  /** @type {import("eslint").Linter.FlatConfig} */
163
170
  const config = {
164
171
  plugins: {
@@ -167,6 +174,7 @@ const config = {
167
174
  },
168
175
  rules: {
169
176
  ...jsRules.rules,
177
+ ...rules$1,
170
178
  ...rules
171
179
  }
172
180
  };
package/dist/esm/index.js CHANGED
@@ -36,7 +36,7 @@ const extensionRules = {
36
36
  };
37
37
 
38
38
  /** @type {import("eslint").Linter.RulesRecord} */
39
- const rules = {
39
+ const rules$1 = {
40
40
  "no-undef": "off",
41
41
  "@typescript-eslint/adjacent-overload-signatures": "error",
42
42
  "@typescript-eslint/array-type": "error",
@@ -157,6 +157,13 @@ const rules = {
157
157
  "no-duplicate-imports": ["off"]
158
158
  };
159
159
 
160
+ /** @type {import("@stylistic/eslint-plugin").RuleOptions} */
161
+ const rules = {
162
+ "@stylistic/type-annotation-spacing": "error",
163
+ "@stylistic/type-generic-spacing": ["error"],
164
+ "@stylistic/type-named-tuple-spacing": ["error"]
165
+ };
166
+
160
167
  /** @type {import("eslint").Linter.FlatConfig} */
161
168
  const config = {
162
169
  plugins: {
@@ -165,6 +172,7 @@ const config = {
165
172
  },
166
173
  rules: {
167
174
  ...jsRules.rules,
175
+ ...rules$1,
168
176
  ...rules
169
177
  }
170
178
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joshuaavalon/eslint-config-typescript",
3
- "version": "7.0.2",
3
+ "version": "7.1.0",
4
4
  "description": "Shareable ESLint Typescript config.",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.js",
@@ -34,10 +34,10 @@
34
34
  "url": "https://github.com/joshuaavalon/eslint-config/issues"
35
35
  },
36
36
  "dependencies": {
37
- "@joshuaavalon/eslint-config-javascript": "^7.0.2",
38
- "typescript-eslint": "^7.0.1"
37
+ "@joshuaavalon/eslint-config-javascript": "^7.1.0",
38
+ "typescript-eslint": "^7.2.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "eslint": "^8.56.0"
41
+ "eslint": "^8.57.0"
42
42
  }
43
43
  }