This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* eslint integration * configure the rules and warnings * update ci script
- Loading branch information
Denys Vuika
authored
May 28, 2021
1 parent
2df3084
commit c48f6bb
Showing
9 changed files
with
965 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# don't ever lint node_modules | ||
node_modules | ||
# don't lint build output (make sure it's set to your correct build folder name) | ||
dist | ||
# don't lint nyc coverage output | ||
coverage | ||
|
||
test/performance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true, | ||
browser: true | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
plugins: [ | ||
'@typescript-eslint', | ||
], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
], | ||
// TODO: consider removing these rules and improving the source code | ||
rules: { | ||
'prefer-const': 1, | ||
'no-useless-escape': 1, | ||
'prefer-rest-params': 1, | ||
'prefer-spread': 1, | ||
'no-prototype-builtins': 1, | ||
'@typescript-eslint/explicit-module-boundary-types': 1, | ||
'@typescript-eslint/ban-ts-comment': 1, | ||
'@typescript-eslint/ban-types': 1, | ||
'@typescript-eslint/no-var-requires': 1, | ||
'@typescript-eslint/no-explicit-any': 1, | ||
'@typescript-eslint/no-empty-function': 1, | ||
'@typescript-eslint/no-namespace': 1, | ||
'@typescript-eslint/no-inferrable-types': 1, | ||
'@typescript-eslint/no-unused-vars': 1 | ||
} | ||
}; |
Oops, something went wrong.