@joshuaavalon/eslint-config-typescript 7.0.1 → 7.1.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.
package/dist/cjs/index.js CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  var typescript = require('typescript-eslint');
4
4
  var jsRules = require('@joshuaavalon/eslint-config-javascript');
5
- var formatRules = require('@joshuaavalon/eslint-config-javascript/stylistic');
6
5
 
7
6
  /** @type {import("eslint").Linter.RulesRecord} */
8
7
  const extensionRules = {
@@ -39,7 +38,7 @@ const extensionRules = {
39
38
  };
40
39
 
41
40
  /** @type {import("eslint").Linter.RulesRecord} */
42
- const rules = {
41
+ const rules$1 = {
43
42
  "no-undef": "off",
44
43
  "@typescript-eslint/adjacent-overload-signatures": "error",
45
44
  "@typescript-eslint/array-type": "error",
@@ -160,6 +159,13 @@ const rules = {
160
159
  "no-duplicate-imports": ["off"]
161
160
  };
162
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
+
163
169
  /** @type {import("eslint").Linter.FlatConfig} */
164
170
  const config = {
165
171
  plugins: {
@@ -168,8 +174,8 @@ const config = {
168
174
  },
169
175
  rules: {
170
176
  ...jsRules.rules,
171
- ...rules,
172
- ...formatRules
177
+ ...rules$1,
178
+ ...rules
173
179
  }
174
180
  };
175
181
 
package/dist/esm/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import typescript from 'typescript-eslint';
2
2
  import jsRules from '@joshuaavalon/eslint-config-javascript';
3
- import formatRules from '@joshuaavalon/eslint-config-javascript/stylistic';
4
3
 
5
4
  /** @type {import("eslint").Linter.RulesRecord} */
6
5
  const extensionRules = {
@@ -37,7 +36,7 @@ const extensionRules = {
37
36
  };
38
37
 
39
38
  /** @type {import("eslint").Linter.RulesRecord} */
40
- const rules = {
39
+ const rules$1 = {
41
40
  "no-undef": "off",
42
41
  "@typescript-eslint/adjacent-overload-signatures": "error",
43
42
  "@typescript-eslint/array-type": "error",
@@ -158,6 +157,13 @@ const rules = {
158
157
  "no-duplicate-imports": ["off"]
159
158
  };
160
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
+
161
167
  /** @type {import("eslint").Linter.FlatConfig} */
162
168
  const config = {
163
169
  plugins: {
@@ -166,8 +172,8 @@ const config = {
166
172
  },
167
173
  rules: {
168
174
  ...jsRules.rules,
169
- ...rules,
170
- ...formatRules
175
+ ...rules$1,
176
+ ...rules
171
177
  }
172
178
  };
173
179
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joshuaavalon/eslint-config-typescript",
3
- "version": "7.0.1",
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.1",
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
  }