completely split eslint config

This commit is contained in:
2020-10-10 23:07:35 +03:00
committed by Stepan Usatiuk
parent 442e882b72
commit e4b8ed0702
2 changed files with 17 additions and 1 deletions

View File

@@ -1,11 +1,23 @@
{ {
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [ "plugins": [
"@typescript-eslint",
"prettier",
"import",
"jest", "jest",
"react", "react",
"react-hooks", "react-hooks",
"html" "html"
], ],
"extends": [ "extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier/@typescript-eslint",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:jest/recommended", "plugin:jest/recommended",
"plugin:react-hooks/recommended", "plugin:react-hooks/recommended",
"plugin:react/recommended" "plugin:react/recommended"
@@ -17,6 +29,7 @@
"ecmaFeatures": { "ecmaFeatures": {
"jsx": true "jsx": true
}, },
"sourceType": "module",
"project": "./tsconfig.json" "project": "./tsconfig.json"
}, },
"settings": { "settings": {
@@ -34,5 +47,8 @@
] ]
} }
} }
},
"rules": {
"@typescript-eslint/require-await": "warn"
} }
} }

View File

@@ -1,4 +1,4 @@
import * as React from "react"; import * as React from "react";
import { render } from "react-dom"; import { render } from "react-dom";
render(<h1>Hello World</h1>, document.getElementById("root")); render(<h1>Hello World</h1>, document.getElementById("root"));