-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate eslint with eslint-config-standard
- Loading branch information
Showing
15 changed files
with
4,025 additions
and
463 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,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' | ||
} | ||
}; |
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 |
---|---|---|
|
@@ -17,4 +17,6 @@ jobs: | |
- name: Build | ||
shell: bash | ||
run: | | ||
npm i && npm run build | ||
npm i | ||
npm run build | ||
npm run lint |
Oops, something went wrong.