Skip to content

Commit ec6f9de

Browse files
committed
feat(typescript): switch to @stylistic/eslint-plugin-ts
BREAKING CHANGE: you must now install `@stylistic/eslint-plugin-ts`
1 parent e93ef65 commit ec6f9de

4 files changed

Lines changed: 164 additions & 2 deletions

File tree

@typescript-eslint.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const config = {
33
parser: '@typescript-eslint/parser',
44
parserOptions: { sourceType: 'module' },
5-
plugins: ['@typescript-eslint', 'prettier'],
5+
plugins: ['@typescript-eslint', '@stylistic/ts', 'prettier'],
66
extends: [
77
'plugin:@typescript-eslint/recommended-type-checked',
88
'plugin:@typescript-eslint/stylistic-type-checked',
@@ -17,7 +17,7 @@ const config = {
1717
'@typescript-eslint/default-param-last': 'error',
1818
'@typescript-eslint/explicit-member-accessibility': 'error',
1919
'@typescript-eslint/explicit-module-boundary-types': 'error',
20-
'@typescript-eslint/lines-between-class-members': [
20+
'@stylistic/ts/lines-between-class-members': [
2121
'error',
2222
'always',
2323
{ exceptAfterSingleLine: true }

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Below is a complete list of the configs provided, and their dependencies:
7272
- `ackama/@typescript-eslint`
7373
- `@typescript-eslint/parser`
7474
- `@typescript-eslint/eslint-plugin`
75+
- `@stylistic/eslint-plugin-ts`
7576
- `eslint-plugin-prettier`
7677
- `ackama/flowtype`
7778
- `@babel/eslint-parser`

package-lock.json

Lines changed: 156 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"@semantic-release/changelog": "^6.0.0",
7979
"@semantic-release/git": "^10.0.0",
8080
"@stylistic/eslint-plugin-js": "^2.6.1",
81+
"@stylistic/eslint-plugin-ts": "^2.6.1",
8182
"@types/eslint": "^8.0.0",
8283
"@types/jest": "^29.0.0",
8384
"@types/node": "^20.0.0",
@@ -109,6 +110,7 @@
109110
"@babel/eslint-parser": "^7.0.0",
110111
"@eslint-community/eslint-plugin-eslint-comments": ">= 4",
111112
"@stylistic/eslint-plugin-js": ">= 2.0.0",
113+
"@stylistic/eslint-plugin-ts": ">= 2.0.0",
112114
"@typescript-eslint/eslint-plugin": "^7.0.0",
113115
"@typescript-eslint/parser": "^7.0.0",
114116
"eslint": ">= 8.0",
@@ -127,6 +129,9 @@
127129
"@babel/eslint-parser": {
128130
"optional": true
129131
},
132+
"@stylistic/eslint-plugin-ts": {
133+
"optional": true
134+
},
130135
"@typescript-eslint/eslint-plugin": {
131136
"optional": true
132137
},

0 commit comments

Comments
 (0)