tweak eslintrc, no need to lint code formatting

pull/8589/head
Niklas Fiekas 2021-04-07 15:57:35 +02:00
parent 28a808be80
commit cd79357742
2 changed files with 9 additions and 7 deletions

View File

@ -1,18 +1,21 @@
{ {
"root": true,
"env": { "env": {
"node": true "browser": true,
"es2017": true
}, },
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"parser": "@typescript-eslint/parser", "parser": "@typescript-eslint/parser",
"parserOptions": { "parserOptions": {
"ecmaVersion": 12,
"sourceType": "module" "sourceType": "module"
}, },
"plugins": ["@typescript-eslint"], "plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": { "rules": {
"linebreak-style": ["error", "unix"], "linebreak-style": ["error", "unix"],
"quotes": ["off", "single"],
"semi": ["error", "always"],
"no-duplicate-imports": ["error"], "no-duplicate-imports": ["error"],
"no-var": "off", "no-var": "off",
"prefer-const": "off", "prefer-const": "off",
@ -33,7 +36,6 @@
"no-constant-condition": "off", "no-constant-condition": "off",
"no-prototype-builtins": "off", "no-prototype-builtins": "off",
"no-extra-boolean-cast": "off", "no-extra-boolean-cast": "off",
"@typescript-eslint/ban-types": "error",
"no-async-promise-executor": "off", "no-async-promise-executor": "off",
"@typescript-eslint/adjacent-overload-signatures": "off" "@typescript-eslint/adjacent-overload-signatures": "off"
} }

View File

@ -34,7 +34,7 @@
"scripts": { "scripts": {
"format": "prettier --write .", "format": "prettier --write .",
"check-format": "prettier --check .", "check-format": "prettier --check .",
"lint": "eslint . --ext .ts --format visualstudio", "lint": "eslint . --ext .ts",
"lint-fix": "eslint . --ext .ts --fix" "lint-fix": "eslint . --ext .ts --fix"
}, },
"workspaces": [ "workspaces": [