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

Commit

Permalink
fix: add estlint on CI task + refactor code removing unused code and … (
Browse files Browse the repository at this point in the history
#67)

* fix: add estlint on CI task + refactor code removing unused code and optimizing.

* fix: force install
  • Loading branch information
elribonazo authored Dec 23, 2023
1 parent 010c085 commit d065c5d
Show file tree
Hide file tree
Showing 37 changed files with 7,989 additions and 8,625 deletions.
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

0 comments on commit d065c5d

Please sign in to comment.