37 lines
809 B
JavaScript
37 lines
809 B
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true
|
|
},
|
|
extends: [
|
|
"plugin:react/recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"prettier/@typescript-eslint",
|
|
"plugin:prettier/recommended"
|
|
],
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true
|
|
},
|
|
ecmaVersion: 2018,
|
|
sourceType: "module",
|
|
},
|
|
rules: {
|
|
"react/no-unknown-property": ["error", { ignore: ["class"] }],
|
|
},
|
|
settings: {
|
|
react: {
|
|
pragma: "h",
|
|
version: "detect"
|
|
},
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ["*.js"],
|
|
rules: {
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
}
|
|
}
|
|
]
|
|
};
|