Skip to content

Commit 7a1ddfe

Browse files
author
Josh Goldberg
authored
Extended .eslintrc.js from typescript-eslint/all, not /recommended (#92)
1 parent 2d7e436 commit 7a1ddfe

File tree

2 files changed

+15
-45
lines changed

2 files changed

+15
-45
lines changed

.eslintrc.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,32 @@ module.exports = {
33
es6: true,
44
node: true,
55
},
6-
extends: ["airbnb-base", "eslint-config-prettier", "plugin:@typescript-eslint/recommended"],
6+
extends: ["airbnb-base", "eslint-config-prettier", "plugin:@typescript-eslint/all"],
7+
overrides: [
8+
{
9+
files: ["*.stubs.ts", "*.test.ts"],
10+
rules: {
11+
"@typescript-eslint/promise-function-async": 0,
12+
},
13+
},
14+
],
715
parser: "@typescript-eslint/parser",
816
parserOptions: {
917
project: "tsconfig.json",
1018
},
1119
plugins: ["@typescript-eslint"],
1220
rules: {
21+
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
1322
"@typescript-eslint/explicit-function-return-type": 0,
23+
"@typescript-eslint/generic-type-naming": 0,
1424
"@typescript-eslint/indent": 0,
1525
"@typescript-eslint/no-explicit-any": 0,
26+
"@typescript-eslint/no-extra-parens": 0,
27+
"@typescript-eslint/no-magic-numbers": 0,
1628
"@typescript-eslint/no-parameter-properties": 0,
29+
"@typescript-eslint/no-type-alias": 0,
1730
"@typescript-eslint/no-use-before-define": 0,
31+
"@typescript-eslint/prefer-for-of": 1,
1832
"@typescript-eslint/prefer-interface": 0,
1933
"default-case": 0,
2034
"guard-for-in": 0,

.eslintrc.json

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)