tweak eslintrc, no need to lint code formatting
parent
28a808be80
commit
cd79357742
|
@ -1,18 +1,21 @@
|
|||
{
|
||||
"root": true,
|
||||
"env": {
|
||||
"node": true
|
||||
"browser": true,
|
||||
"es2017": true
|
||||
},
|
||||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 12,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": ["@typescript-eslint"],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:@typescript-eslint/recommended"
|
||||
],
|
||||
"rules": {
|
||||
"linebreak-style": ["error", "unix"],
|
||||
"quotes": ["off", "single"],
|
||||
"semi": ["error", "always"],
|
||||
"no-duplicate-imports": ["error"],
|
||||
"no-var": "off",
|
||||
"prefer-const": "off",
|
||||
|
@ -33,7 +36,6 @@
|
|||
"no-constant-condition": "off",
|
||||
"no-prototype-builtins": "off",
|
||||
"no-extra-boolean-cast": "off",
|
||||
"@typescript-eslint/ban-types": "error",
|
||||
"no-async-promise-executor": "off",
|
||||
"@typescript-eslint/adjacent-overload-signatures": "off"
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
"scripts": {
|
||||
"format": "prettier --write .",
|
||||
"check-format": "prettier --check .",
|
||||
"lint": "eslint . --ext .ts --format visualstudio",
|
||||
"lint": "eslint . --ext .ts",
|
||||
"lint-fix": "eslint . --ext .ts --fix"
|
||||
},
|
||||
"workspaces": [
|
||||
|
|
Loading…
Reference in New Issue