This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add estlint on CI task + refactor code removing unused code and … (
#67) * fix: add estlint on CI task + refactor code removing unused code and optimizing. * fix: force install
- Loading branch information
1 parent
010c085
commit d065c5d
Showing
37 changed files
with
7,989 additions
and
8,625 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,42 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": "standard-with-typescript", | ||
"plugins": ['unused-imports'], | ||
"overrides": [ | ||
{ | ||
"env": { | ||
"node": true | ||
}, | ||
"files": [ | ||
".eslintrc.{js,cjs}" | ||
], | ||
"parserOptions": { | ||
"sourceType": "script" | ||
} | ||
} | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
'no-async-promise-executor': 'warn', | ||
'@typescript-eslint/no-empty-interface': 'warn', | ||
'@typescript-eslint/restrict-template-expressions': 'warn', | ||
'@typescript-eslint/no-confusing-void-expression': 'warn', | ||
'@typescript-eslint/return-await': 'warn', | ||
'@typescript-eslint/strict-boolean-expressions': 'warn', | ||
'@typescript-eslint/consistent-type-assertions': 'warn', | ||
'@typescript-eslint/ban-types': 'warn', | ||
'@typescript-eslint/await-thenable': 'warn', | ||
'@typescript-eslint/explicit-function-return-type': 'warn', | ||
"@typescript-eslint/no-unsafe-argument": 'warn', | ||
'@typescript-eslint/no-non-null-assertion': 'warn', | ||
'unused-imports/no-unused-imports': 'error', | ||
'unused-imports/no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: true }], | ||
} | ||
} |
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
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
Oops, something went wrong.