Skip to content

Commit

Permalink
feat(eslint): upgrade typescript-eslint/eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tarasyuk committed Nov 2, 2020
1 parent 4a7b6dc commit 2437ce5
Show file tree
Hide file tree
Showing 4 changed files with 583 additions and 556 deletions.
10 changes: 7 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": "error",

"camelcase": "off",
"brace-style": "off",
"@typescript-eslint/brace-style": ["error", "stroustrup", { "allowSingleLine": true }],

"@typescript-eslint/naming-convention": [
"error",
{ "selector": "typeLike", "format": ["PascalCase"], "filter": { "regex": "^(__String|[A-Za-z]+_[A-Za-z]+)$", "match": false } },
Expand All @@ -32,6 +34,10 @@
],

"@typescript-eslint/consistent-type-definitions": ["error", "interface"],

"no-duplicate-imports": "off",
"@typescript-eslint/no-duplicate-imports": "error",

"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-this-alias": "error",
Expand Down Expand Up @@ -86,7 +92,6 @@
"jsdoc/check-alignment": "error",

// eslint
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"constructor-super": "error",
"curly": ["error", "multi-line"],
"dot-notation": "error",
Expand All @@ -95,7 +100,6 @@
"new-parens": "error",
"no-caller": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-empty": "error",
"no-eval": "error",
"no-extra-bind": "error",
Expand Down
Loading

0 comments on commit 2437ce5

Please sign in to comment.