Files
tuliprox/frontend/eslintrc.json
T
2023-11-01 09:51:36 +01:00

55 lines
1.1 KiB
JSON

{
"env": {
"jest/globals": true
},
"parser": "@typescript-eslint/parser",
"extends": [
"react-app",
"react-app/jest",
"eslint-config-prettier",
"plugin:react/recommended"
],
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"fragment": "Fragment",
"version": "detect",
"flowVersion": "detect"
}
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"import",
"node",
"react"
],
"rules": {
"consistent-this": [
"error",
"self"
],
"@typescript-eslint/no-this-alias": [
"error",
{
"allowDestructuring": false,
"allowedNames": [
"self"
]
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"react/display-name": "off",
"react/prop-types": "off"
},
"ignorePatterns": [ "*.test.tsc", "*.scss", "*.css" ]
}