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 20, 2022
1 parent 1febee5 commit de8ebda
Show file tree
Hide file tree
Showing 15 changed files with 4,071 additions and 451 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 de8ebda

Please sign in to comment.