Skip to content

Commit

Permalink
Integrate eslint with eslint-config-standard
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Jun 21, 2022
1 parent 7b949a8 commit 204f7d1
Show file tree
Hide file tree
Showing 15 changed files with 4,025 additions and 463 deletions.
37 changes: 37 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
module.exports = {
env: {
browser: true,
es2020: true
},
extends: 'standard',
globals: {
Thenable: 'readonly'
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: '2020',
sourceType: 'module'
},
plugins: [
'@typescript-eslint',
'import',
'unused-imports'
],
rules: {
indent: ['error', 4, {
SwitchCase: 1
}],
'space-before-function-paren': ['error', {
anonymous: 'always',
named: 'never',
asyncArrow: 'always'
}],
semi: ['error', 'always'],
'no-extra-semi': 'off',
'@typescript-eslint/no-extra-semi': ['error'],
'no-dupe-class-members': 'off',
'no-redeclare': 'warn',
'no-useless-constructor': 'warn',
'no-void': 'warn'
}
};
4 changes: 3 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ jobs:
- name: Build
shell: bash
run: |
npm i && npm run build
npm i
npm run build
npm run lint
Loading

0 comments on commit 204f7d1

Please sign in to comment.