Skip to content

Commit 79bb864

Browse files
authored
test: reconfigure ESLint for upcomming updates (#202)
The config is effectively the same, it's just changed to work with newer versions of ESLint and TS plugin.
1 parent dac8cd9 commit 79bb864

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
!/.eslintrc
22
/__snapshots__
3+
/babel-register/
34
/bin
45
/declarations
56
/dist
67
/lib
8+
/node_modules

.eslintrc.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,20 @@ module.exports = {
6363
],
6464

6565
// Class related.
66-
"@typescript-eslint/member-naming": [
66+
"@typescript-eslint/naming-convention": [
6767
"error",
68-
{ private: "^_", protected: "^_", public: "^[^_]" }
68+
{
69+
selector: "memberLike",
70+
modifiers: ["private", "protected"],
71+
format: null,
72+
leadingUnderscore: "require"
73+
},
74+
{
75+
selector: "memberLike",
76+
modifiers: ["public"],
77+
format: null,
78+
leadingUnderscore: "forbid"
79+
}
6980
],
7081
"@typescript-eslint/no-parameter-properties": "off",
7182
"@typescript-eslint/no-useless-constructor": "error",

tsconfig.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
"strict": true,
1414
"target": "esnext"
1515
},
16-
"exclude": ["node_modules", "**/__tests__/*"],
17-
"include": ["."]
16+
"exclude": ["node_modules"],
17+
"include": [
18+
"*.js",
19+
"*.json",
20+
"*.ts",
21+
".*.js",
22+
".*.json",
23+
".*.ts",
24+
"@types",
25+
"babel-preset",
26+
"public",
27+
"src",
28+
"test"
29+
]
1830
}

0 commit comments

Comments
 (0)