Skip to content

Commit

Permalink
fix: migrate to @stylistic/ts/member-delimiter-style (fixes #86)
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Nov 11, 2024
1 parent ce2c691 commit 11e577d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
43 changes: 22 additions & 21 deletions configurations/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,32 @@ module.exports.recommended = {
},
},
plugins: {
'@stylistic/ts': require('@stylistic/eslint-plugin-ts'),
'@typescript-eslint': require('@typescript-eslint/eslint-plugin'),
canonical: require('eslint-plugin-canonical'),
},
rules: {
'@stylistic/ts/member-delimiter-style': [
2,
{
multiline: {
delimiter: 'comma',
requireLast: true,
},
overrides: {
interface: {
multiline: {
delimiter: 'semi',
requireLast: true,
},
},
},
singleline: {
delimiter: 'comma',
requireLast: true,
},
},
],
'@typescript-eslint/adjacent-overload-signatures': 2,
'@typescript-eslint/array-type': [
2,
Expand Down Expand Up @@ -61,27 +83,6 @@ module.exports.recommended = {
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-member-accessibility': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/member-delimiter-style': [
2,
{
multiline: {
delimiter: 'comma',
requireLast: true,
},
overrides: {
interface: {
multiline: {
delimiter: 'semi',
requireLast: true,
},
},
},
singleline: {
delimiter: 'comma',
requireLast: true,
},
},
],
'@typescript-eslint/member-ordering': 0,
'@typescript-eslint/method-signature-style': [2, 'property'],
'@typescript-eslint/naming-convention': [
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"dependencies": {
"@graphql-eslint/eslint-plugin": "^3.20.1",
"@next/eslint-plugin-next": "^14.2.15",
"@stylistic/eslint-plugin-ts": "^2.10.1",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"eslint-config-prettier": "^9.1.0",
Expand Down

0 comments on commit 11e577d

Please sign in to comment.