26 lines
597 B
JavaScript
26 lines
597 B
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
project: ["./tsconfig.json"],
|
|
},
|
|
plugins: ["@typescript-eslint"],
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
"plugin:react/recommended",
|
|
"plugin:react-hooks/recommended",
|
|
"prettier",
|
|
],
|
|
settings: {
|
|
react: {
|
|
createClass: "creatReactClass",
|
|
pragma: "React",
|
|
fragment: "Fragment",
|
|
version: "detect",
|
|
},
|
|
},
|
|
};
|