Skip to content

Commit 4ea2342

Browse files
committed
[chore] update tools
1 parent b3c2338 commit 4ea2342

File tree

7 files changed

+4565
-5154
lines changed

7 files changed

+4565
-5154
lines changed

.eslintrc.js

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,16 @@
1+
/* eslint-env node */
2+
13
module.exports = {
24
env: {
35
browser: true,
4-
es6: true,
5-
},
6-
extends: 'eslint:recommended',
7-
globals: {
8-
chrome: true,
9-
chromep: true,
6+
es2020: true,
107
},
8+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
9+
parser: '@typescript-eslint/parser',
1110
parserOptions: {
12-
ecmaVersion: 2018,
11+
ecmaVersion: 11,
1312
sourceType: 'module',
1413
},
15-
rules: {
16-
'comma-dangle': [
17-
'error',
18-
{
19-
arrays: 'always-multiline',
20-
objects: 'always-multiline',
21-
imports: 'always-multiline',
22-
exports: 'always-multiline',
23-
functions: 'always-multiline',
24-
},
25-
],
26-
'no-console': 'off',
27-
quotes: ['error', 'single'],
28-
semi: ['error', 'never'],
29-
},
14+
plugins: ['@typescript-eslint'],
15+
rules: {},
3016
}

.prettierrc.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
semi: false
2+
tabWidth: 2
3+
trailingComma: "all"
4+
singleQuote: true
5+
arrowParens: "always"
6+
proseWrap: "always"

0 commit comments

Comments
 (0)