45 lines
986 B
Plaintext
Executable File
45 lines
986 B
Plaintext
Executable File
{
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"project": "./tsconfig.eslint.json",
|
|
"tsconfigRootDir": "./",
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
}
|
|
},
|
|
"plugins": ["@typescript-eslint", "prettier"],
|
|
"extends": [
|
|
"prettier",
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
],
|
|
"rules": {
|
|
"no-nested-ternary": 0,
|
|
"no-console": 0,
|
|
"react/prop-types": 0,
|
|
"react/jsx-filename-extension": [
|
|
1,
|
|
{
|
|
"extensions": [".js", ".jsx", ".tsx", ".ts"]
|
|
}
|
|
],
|
|
"prettier/prettier": [
|
|
"error",
|
|
{
|
|
"trailingComma": "es5",
|
|
"singleQuote": true,
|
|
"printWidth": 120
|
|
}
|
|
],
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"react-hooks/exhaustive-deps": "warn",
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
}
|
|
}
|
|
}
|