Skip to content

Commit

Permalink
Add @typescript-eslint/comma-dangle rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 23, 2020
1 parent f622de7 commit 2ba5eaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ module.exports = {
allowSingleLine: false
}
],
'comma-dangle': 'off',
'@typescript-eslint/comma-dangle': [
'error',
'never'
],
'comma-spacing': 'off',
'@typescript-eslint/comma-spacing': [
'error',
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@
"simple"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.1.0",
"@typescript-eslint/parser": "^4.1.0",
"@typescript-eslint/eslint-plugin": "^4.2.0",
"@typescript-eslint/parser": "^4.2.0",
"ava": "^2.4.0",
"eslint": "^7.8.1",
"temp-write": "^4.0.0",
"typescript": "^4.0.2"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": ">=4.1.0",
"@typescript-eslint/eslint-plugin": ">=4.2.0",
"eslint": ">=7.8.0",
"typescript": ">=3.6.0"
}
Expand Down

0 comments on commit 2ba5eaf

Please sign in to comment.