Updating eslintrc

This commit is contained in:
Jamie Hewitt 2022-08-22 16:42:12 +03:00
parent 0bcb74e464
commit ca7ea96dfa

View File

@ -1,14 +1,4 @@
{ {
"extends": ["eslint:recommended", "prettier"],
"env": { "es6": true, "browser": true, "node": true, "jest": true },
"settings": {
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": ["**/*.ts", "**/*.test.ts", "**/*.tsx"],
"parser": "@typescript-eslint/parser", "parser": "@typescript-eslint/parser",
"parserOptions": { "parserOptions": {
"project": ["./tsconfig.json"] "project": ["./tsconfig.json"]
@ -16,17 +6,11 @@
"extends": [ "extends": [
"plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended", "plugin:prettier/recommended"
"prettier"
], ],
"plugins": ["@typescript-eslint", "prettier"], "plugins": ["@typescript-eslint", "prettier"],
"rules": { "rules": {
"react/prop-types": "off", "@typescript-eslint/explicit-function-return-type": "off"
"react/no-unused-prop-types": "off", },
"@typescript-eslint/explicit-function-return-type": "off", "env": { "es6": true, "node": true }
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "error"
}
}
]
} }