Skip to content

Commit

Permalink
Add @typescript-eslint/comma-spacing rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Feb 2, 2020
1 parent 7f7a4c3 commit f599da9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions index.js
Expand Up @@ -85,6 +85,14 @@ module.exports = {
allowSingleLine: false
}
],
'comma-spacing': 'off',
'@typescript-eslint/comma-spacing': [
'error',
{
before: false,
after: true
}
],
'default-param-last': 'off',
'@typescript-eslint/default-param-last': 'error',
'@typescript-eslint/consistent-type-assertions': [
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -43,15 +43,15 @@
"simple"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.17.0",
"@typescript-eslint/parser": "^2.17.0",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"@typescript-eslint/parser": "^2.18.0",
"ava": "^2.4.0",
"eslint": "^6.8.0",
"temp-write": "^4.0.0",
"typescript": "^3.7.5"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": ">=2.17.0",
"@typescript-eslint/eslint-plugin": ">=2.18.0",
"eslint": ">=6.6.0",
"typescript": ">=3.5.3"
}
Expand Down

0 comments on commit f599da9

Please sign in to comment.