Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

fix: add estlint on CI task + refactor code removing unused code and … #67

Merged
merged 2 commits into from
Dec 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .eslintrc.js
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 }],
}
}
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ jobs:
GITHUB_COMMITER_EMAIL: ${{ secrets.GITHUB_COMMITER_EMAIL }}
CI: true
run: |
npm install
npm install --force
chmod +x coverage.sh
./coverage.sh
npm run build
npm run lint
npm run coverage
- name: Coverage Comment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
GITHUB_COMMITER_EMAIL: ${{ secrets.GITHUB_COMMITER_EMAIL }}
CI: true
run: |
npm install
npm install --force
npm run build
npm run release
npm run docs
Expand Down
Loading