Skip to content

Commit 91625df

Browse files
committed
chore: project
1 parent 7e221bb commit 91625df

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.eslintrc.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
module.exports = {
2-
env: {
3-
browser: true
4-
},
2+
extends: ['plugin:prettier/recommended'],
3+
plugins: ['prettier', '@typescript-eslint'],
54
parser: '@typescript-eslint/parser',
65
parserOptions: {
76
createDefaultProgram: true,
8-
project: 'tsconfig.json',
9-
sourceType: 'module'
7+
project: './tsconfig.json'
108
},
11-
plugins: ['@typescript-eslint'],
129
rules: {
10+
'prettier/prettier': 'warn',
1311
'@typescript-eslint/adjacent-overload-signatures': 'error',
1412
'@typescript-eslint/array-type': 'error',
1513
'@typescript-eslint/await-thenable': 'error',
@@ -33,7 +31,7 @@ module.exports = {
3331
FunctionExpression: {
3432
parameters: 'first'
3533
},
36-
SwitchCase:1
34+
SwitchCase: 1
3735
}
3836
],
3937
'@typescript-eslint/interface-name-prefix': 'off',
@@ -143,7 +141,7 @@ module.exports = {
143141
'no-irregular-whitespace': 'off',
144142
'no-multiple-empty-lines': 'off',
145143
'no-new-wrappers': 'error',
146-
'no-redeclare': 'error',
144+
'no-redeclare': ['error', { builtinGlobals: false }],
147145
'no-regex-spaces': 'error',
148146
'no-return-await': 'error',
149147
'no-shadow': [

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"printWidth": 200,
33
"semi": true,
44
"tabWidth": 4,
5-
"singleQuote": true
5+
"singleQuote": true,
6+
"trailingComma": "none"
67
}

0 commit comments

Comments
 (0)