diff options
| author | Ting Shu Lin <[email protected]> | 2020-08-01 01:02:45 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-08-01 01:02:45 +0900 |
| commit | 7ab3d045e530ca72d9dabd067123b8854456c706 (patch) | |
| tree | 8e93cf823843ea1e5e6f08ced0c11fe43e29579d /.eslintrc.js | |
| parent | Create LICENSE (diff) | |
| download | holo-schedule-7ab3d045e530ca72d9dabd067123b8854456c706.tar.xz holo-schedule-7ab3d045e530ca72d9dabd067123b8854456c706.zip | |
Add ESLint (#1)
* add eslint
* eslint init
* add lint command
* update eslint rules
* eslint auto-fix
Diffstat (limited to '.eslintrc.js')
| -rw-r--r-- | .eslintrc.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..463b2ee --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,21 @@ +module.exports = { + env: { + es2020: true, + node: true, + }, + extends: [ + 'standard', + ], + parser: '@typescript-eslint/parser', + parserOptions: { + ecmaVersion: 11, + sourceType: 'module', + }, + plugins: [ + '@typescript-eslint', + ], + rules: { + 'comma-dangle': ['error', 'always-multiline'], + 'space-before-function-paren': ['error', 'never'], + }, +} |