Skip to content

Commit

Permalink
test: reconfigure ESLint for upcomming updates (#202)
Browse files Browse the repository at this point in the history
The config is effectively the same, it's just changed to work with newer
versions of ESLint and TS plugin.
  • Loading branch information
Thomaash authored Jun 6, 2020
1 parent dac8cd9 commit 79bb864
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
!/.eslintrc
/__snapshots__
/babel-register/
/bin
/declarations
/dist
/lib
/node_modules
15 changes: 13 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,20 @@ module.exports = {
],

// Class related.
"@typescript-eslint/member-naming": [
"@typescript-eslint/naming-convention": [
"error",
{ private: "^_", protected: "^_", public: "^[^_]" }
{
selector: "memberLike",
modifiers: ["private", "protected"],
format: null,
leadingUnderscore: "require"
},
{
selector: "memberLike",
modifiers: ["public"],
format: null,
leadingUnderscore: "forbid"
}
],
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-useless-constructor": "error",
Expand Down
16 changes: 14 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@
"strict": true,
"target": "esnext"
},
"exclude": ["node_modules", "**/__tests__/*"],
"include": ["."]
"exclude": ["node_modules"],
"include": [
"*.js",
"*.json",
"*.ts",
".*.js",
".*.json",
".*.ts",
"@types",
"babel-preset",
"public",
"src",
"test"
]
}

0 comments on commit 79bb864

Please sign in to comment.