@joshuaavalon/eslint-config-typescript 7.1.3 → 8.0.1

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/README.md CHANGED
@@ -14,23 +14,26 @@ npm i -D eslint @joshuaavalon/eslint-config-typescript
14
14
  ```js
15
15
  import globals from "globals";
16
16
  import typescript from "typescript-eslint";
17
- import tsRules from "@joshuaavalon/eslint-config-typescript";
17
+ import jsConfig from "@joshuaavalon/eslint-config-javascript";
18
+ import tsConfig from "@joshuaavalon/eslint-config-typescript";
18
19
 
19
- {
20
- ...tsRules,
21
- ignores: ["node_modules", "dist"],
22
- files: ["**/*.ts"],
23
- languageOptions: {
24
- parser: typescript.parser,
25
- parserOptions: {
26
- project: true,
27
- tsconfigDirName: import.meta.dirname
28
- },
29
- globals: {
30
- ...globals.node,
31
- ...globals.browser,
32
- ...globals.nodeBuiltin
20
+ [
21
+ {
22
+ ...tsConfig,
23
+ ignores: ["node_modules", "dist"],
24
+ files: ["**/*.ts"],
25
+ languageOptions: {
26
+ parser: typescript.parser,
27
+ parserOptions: {
28
+ projectService: true,
29
+ tsconfigDirName: import.meta.dirname
30
+ },
31
+ globals: {
32
+ ...globals.node,
33
+ ...globals.browser,
34
+ ...globals.nodeBuiltin
35
+ }
33
36
  }
34
37
  }
35
- }
38
+ ];
36
39
  ```
package/dist/cjs/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var typescript = require('typescript-eslint');
4
- var jsRules = require('@joshuaavalon/eslint-config-javascript');
4
+ var jsConfig = require('@joshuaavalon/eslint-config-javascript');
5
5
 
6
6
  /** @type {import("eslint").Linter.RulesRecord} */
7
7
  const extensionRules = {
@@ -17,12 +17,10 @@ const extensionRules = {
17
17
  "@typescript-eslint/no-implied-eval": "error",
18
18
  "no-loop-func": "off",
19
19
  "@typescript-eslint/no-loop-func": "error",
20
- "no-loss-of-precision": "off",
21
- "@typescript-eslint/no-loss-of-precision": "error",
22
20
  "no-redeclare": "off",
23
21
  "@typescript-eslint/no-redeclare": "error",
24
22
  "no-throw-literal": "off",
25
- "@typescript-eslint/no-throw-literal": "off",
23
+ "@typescript-eslint/only-throw-error": "error",
26
24
  "no-unused-expressions": "off",
27
25
  "@typescript-eslint/no-unused-expressions": "error",
28
26
  "no-unused-vars": "off",
@@ -39,11 +37,27 @@ const extensionRules = {
39
37
 
40
38
  /** @type {import("eslint").Linter.RulesRecord} */
41
39
  const rules$1 = {
40
+ "constructor-super": "off",
41
+ "no-invalid-this": "off",
42
42
  "no-undef": "off",
43
+ "no-const-assign": "off",
44
+ "no-this-before-super": "off",
45
+ "no-dupe-args": "off",
46
+ "no-unreachable": "off",
47
+ "getter-return": "off",
48
+ "no-dupe-keys": "off",
49
+ "no-func-assign": "off",
50
+ "no-dupe-class-members": "off",
51
+ "no-obj-calls": "off",
52
+ "no-setter-return": "off",
53
+ "no-unsafe-negation": "off",
54
+ "no-import-assign": "off",
43
55
  "@typescript-eslint/adjacent-overload-signatures": "error",
44
56
  "@typescript-eslint/array-type": "error",
45
57
  "@typescript-eslint/await-thenable": "error",
46
- "@typescript-eslint/ban-types": "error",
58
+ "@typescript-eslint/no-empty-object-type": "error",
59
+ "@typescript-eslint/no-unsafe-function-type": "error",
60
+ "@typescript-eslint/no-wrapper-object-types": "error",
47
61
  "@typescript-eslint/consistent-generic-constructors": "error",
48
62
  "@typescript-eslint/consistent-type-exports": "error",
49
63
  "@typescript-eslint/consistent-type-imports": "error",
@@ -134,7 +148,6 @@ const rules$1 = {
134
148
  "@typescript-eslint/no-unsafe-member-access": "off",
135
149
  "@typescript-eslint/no-unsafe-return": "off",
136
150
  "@typescript-eslint/no-useless-empty-export": "error",
137
- "@typescript-eslint/no-var-requires": "error",
138
151
  "@typescript-eslint/non-nullable-type-assertion-style": "error",
139
152
  "@typescript-eslint/parameter-properties": "error",
140
153
  "@typescript-eslint/prefer-as-const": "error",
@@ -166,14 +179,14 @@ const rules = {
166
179
  "@stylistic/type-named-tuple-spacing": ["error"]
167
180
  };
168
181
 
169
- /** @type {import("eslint").Linter.FlatConfig} */
182
+ /** @type {import("eslint").Linter.Config} */
170
183
  const config = {
171
184
  plugins: {
172
- ...jsRules.plugins,
185
+ ...jsConfig.plugins,
173
186
  "@typescript-eslint": typescript.plugin
174
187
  },
175
188
  rules: {
176
- ...jsRules.rules,
189
+ ...jsConfig.rules,
177
190
  ...rules$1,
178
191
  ...rules
179
192
  }
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import typescript from 'typescript-eslint';
2
- import jsRules from '@joshuaavalon/eslint-config-javascript';
2
+ import jsConfig from '@joshuaavalon/eslint-config-javascript';
3
3
 
4
4
  /** @type {import("eslint").Linter.RulesRecord} */
5
5
  const extensionRules = {
@@ -15,12 +15,10 @@ const extensionRules = {
15
15
  "@typescript-eslint/no-implied-eval": "error",
16
16
  "no-loop-func": "off",
17
17
  "@typescript-eslint/no-loop-func": "error",
18
- "no-loss-of-precision": "off",
19
- "@typescript-eslint/no-loss-of-precision": "error",
20
18
  "no-redeclare": "off",
21
19
  "@typescript-eslint/no-redeclare": "error",
22
20
  "no-throw-literal": "off",
23
- "@typescript-eslint/no-throw-literal": "off",
21
+ "@typescript-eslint/only-throw-error": "error",
24
22
  "no-unused-expressions": "off",
25
23
  "@typescript-eslint/no-unused-expressions": "error",
26
24
  "no-unused-vars": "off",
@@ -37,11 +35,27 @@ const extensionRules = {
37
35
 
38
36
  /** @type {import("eslint").Linter.RulesRecord} */
39
37
  const rules$1 = {
38
+ "constructor-super": "off",
39
+ "no-invalid-this": "off",
40
40
  "no-undef": "off",
41
+ "no-const-assign": "off",
42
+ "no-this-before-super": "off",
43
+ "no-dupe-args": "off",
44
+ "no-unreachable": "off",
45
+ "getter-return": "off",
46
+ "no-dupe-keys": "off",
47
+ "no-func-assign": "off",
48
+ "no-dupe-class-members": "off",
49
+ "no-obj-calls": "off",
50
+ "no-setter-return": "off",
51
+ "no-unsafe-negation": "off",
52
+ "no-import-assign": "off",
41
53
  "@typescript-eslint/adjacent-overload-signatures": "error",
42
54
  "@typescript-eslint/array-type": "error",
43
55
  "@typescript-eslint/await-thenable": "error",
44
- "@typescript-eslint/ban-types": "error",
56
+ "@typescript-eslint/no-empty-object-type": "error",
57
+ "@typescript-eslint/no-unsafe-function-type": "error",
58
+ "@typescript-eslint/no-wrapper-object-types": "error",
45
59
  "@typescript-eslint/consistent-generic-constructors": "error",
46
60
  "@typescript-eslint/consistent-type-exports": "error",
47
61
  "@typescript-eslint/consistent-type-imports": "error",
@@ -132,7 +146,6 @@ const rules$1 = {
132
146
  "@typescript-eslint/no-unsafe-member-access": "off",
133
147
  "@typescript-eslint/no-unsafe-return": "off",
134
148
  "@typescript-eslint/no-useless-empty-export": "error",
135
- "@typescript-eslint/no-var-requires": "error",
136
149
  "@typescript-eslint/non-nullable-type-assertion-style": "error",
137
150
  "@typescript-eslint/parameter-properties": "error",
138
151
  "@typescript-eslint/prefer-as-const": "error",
@@ -164,14 +177,14 @@ const rules = {
164
177
  "@stylistic/type-named-tuple-spacing": ["error"]
165
178
  };
166
179
 
167
- /** @type {import("eslint").Linter.FlatConfig} */
180
+ /** @type {import("eslint").Linter.Config} */
168
181
  const config = {
169
182
  plugins: {
170
- ...jsRules.plugins,
183
+ ...jsConfig.plugins,
171
184
  "@typescript-eslint": typescript.plugin
172
185
  },
173
186
  rules: {
174
- ...jsRules.rules,
187
+ ...jsConfig.rules,
175
188
  ...rules$1,
176
189
  ...rules
177
190
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joshuaavalon/eslint-config-typescript",
3
- "version": "7.1.3",
3
+ "version": "8.0.1",
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.1.3",
38
- "typescript-eslint": "^7.2.0"
37
+ "@joshuaavalon/eslint-config-javascript": "^8.0.1",
38
+ "typescript-eslint": "^8.0.0-alpha.60"
39
39
  },
40
40
  "peerDependencies": {
41
- "eslint": "^8.57.0"
41
+ "eslint": "^9.8.0"
42
42
  }
43
43
  }