Skip to content

Commit

Permalink
Upgrade plugin to typescript/eslint 8 (#9)
Browse files Browse the repository at this point in the history
* Upgrade plugin to typescript/eslint 8

* Add note about different version usages

* Fix trailing spaces
  • Loading branch information
maks-rafalko authored Oct 12, 2024
1 parent c2583be commit fb13185
Show file tree
Hide file tree
Showing 9 changed files with 1,066 additions and 881 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"plugin:eslint-plugin/recommended",
"prettier"
Expand Down Expand Up @@ -156,7 +155,10 @@
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module",
"project": "tsconfig.json"
"projectService": {
"allowDefaultProject": ["*.js"],
"defaultProject": "tsconfig.json"
}
},
"env": {
"node": true,
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
npm install -D eslint-plugin-proper-tests
```

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

Use the `recommended` shared config in your `.eslintrc` configuration file:
Expand Down
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Config } from '@jest/types';
// eslint-disable-next-line import/no-extraneous-dependencies
import { pathsToModuleNameMapper } from 'ts-jest';

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

process.env.TZ = 'UTC';
Expand Down
Loading

0 comments on commit fb13185

Please sign in to comment.