32 lines
787 B
JavaScript
32 lines
787 B
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
project: ["./tsconfig.json"],
|
|
},
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
"plugin:react/recommended",
|
|
"plugin:prettier/recommended",
|
|
],
|
|
plugins: ["@typescript-eslint", "react", "react-hooks", "prettier"],
|
|
rules: {
|
|
"prettier/prettier": "error",
|
|
|
|
"react/prop-types": "off",
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"react-hooks/exhaustive-deps": "error",
|
|
|
|
// Turn off these rules
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: "detect",
|
|
},
|
|
},
|
|
};
|