Skip to content

Commit fb13185

Browse files
authored
Upgrade plugin to typescript/eslint 8 (#9)
* Upgrade plugin to typescript/eslint 8 * Add note about different version usages * Fix trailing spaces
1 parent c2583be commit fb13185

9 files changed

+1066
-881
lines changed

.eslintrc.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"root": true,
33
"parser": "@typescript-eslint/parser",
44
"extends": [
5-
"airbnb-typescript/base",
65
"plugin:@typescript-eslint/recommended",
76
"plugin:eslint-plugin/recommended",
87
"prettier"
@@ -156,7 +155,10 @@
156155
"parserOptions": {
157156
"ecmaVersion": 2022,
158157
"sourceType": "module",
159-
"project": "tsconfig.json"
158+
"projectService": {
159+
"allowDefaultProject": ["*.js"],
160+
"defaultProject": "tsconfig.json"
161+
}
160162
},
161163
"env": {
162164
"node": true,

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
npm install -D eslint-plugin-proper-tests
1313
```
1414

15+
> [!NOTE]
16+
> For `@typescript-eslint` v7 use version ^1.0.0 of this plugin. For `@typescript-eslint` v8 use version ^2.0.0 of this plugin.
17+
1518
## Usage
1619

1720
Use the `recommended` shared config in your `.eslintrc` configuration file:

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Config } from '@jest/types';
33
// eslint-disable-next-line import/no-extraneous-dependencies
44
import { pathsToModuleNameMapper } from 'ts-jest';
55

6-
// eslint-disable-next-line @typescript-eslint/no-var-requires
6+
// eslint-disable-next-line @typescript-eslint/no-require-imports
77
const { compilerOptions } = require('./tsconfig.json');
88

99
process.env.TZ = 'UTC';

0 commit comments

Comments
 (0)