mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 23:37:48 +01:00
completely split eslint config
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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"));
|
||||||
|
|||||||
Reference in New Issue
Block a user