Skip to content

Commit cd79357

Browse files
committedApr 7, 2021
tweak eslintrc, no need to lint code formatting
1 parent 28a808b commit cd79357

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed
 

‎.eslintrc.json

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
{
2+
"root": true,
23
"env": {
3-
"node": true
4+
"browser": true,
5+
"es2017": true
46
},
5-
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
67
"parser": "@typescript-eslint/parser",
78
"parserOptions": {
8-
"ecmaVersion": 12,
99
"sourceType": "module"
1010
},
1111
"plugins": ["@typescript-eslint"],
12+
"extends": [
13+
"eslint:recommended",
14+
"plugin:@typescript-eslint/recommended",
15+
"plugin:@typescript-eslint/recommended"
16+
],
1217
"rules": {
1318
"linebreak-style": ["error", "unix"],
14-
"quotes": ["off", "single"],
15-
"semi": ["error", "always"],
1619
"no-duplicate-imports": ["error"],
1720
"no-var": "off",
1821
"prefer-const": "off",
@@ -33,7 +36,6 @@
3336
"no-constant-condition": "off",
3437
"no-prototype-builtins": "off",
3538
"no-extra-boolean-cast": "off",
36-
"@typescript-eslint/ban-types": "error",
3739
"no-async-promise-executor": "off",
3840
"@typescript-eslint/adjacent-overload-signatures": "off"
3941
}

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"scripts": {
3535
"format": "prettier --write .",
3636
"check-format": "prettier --check .",
37-
"lint": "eslint . --ext .ts --format visualstudio",
37+
"lint": "eslint . --ext .ts",
3838
"lint-fix": "eslint . --ext .ts --fix"
3939
},
4040
"workspaces": [

0 commit comments

Comments
 (0)