diff --git a/.eslintrc.json b/.eslintrc.json index 1daec756bd..c509a5bc18 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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" } diff --git a/package.json b/package.json index c368718a31..10952e97d1 100644 --- a/package.json +++ b/package.json @@ -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": [