diff options
author | crupest <crupest@outlook.com> | 2023-07-11 01:01:48 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-07-11 01:01:48 +0800 |
commit | d46b1aed549938c9f5e3e658b4098e71b5e2acf7 (patch) | |
tree | 0deae7f40692345c8e4b1473cdddbd13e0e5586d /FrontEnd/.eslintrc.cjs | |
parent | d9b83e4e8215168dda03b04168d7e30ce5fe779f (diff) | |
download | timeline-d46b1aed549938c9f5e3e658b4098e71b5e2acf7.tar.gz timeline-d46b1aed549938c9f5e3e658b4098e71b5e2acf7.tar.bz2 timeline-d46b1aed549938c9f5e3e658b4098e71b5e2acf7.zip |
Lint error, get away!
Diffstat (limited to 'FrontEnd/.eslintrc.cjs')
-rw-r--r-- | FrontEnd/.eslintrc.cjs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/FrontEnd/.eslintrc.cjs b/FrontEnd/.eslintrc.cjs new file mode 100644 index 00000000..a9cd8e03 --- /dev/null +++ b/FrontEnd/.eslintrc.cjs @@ -0,0 +1,24 @@ +module.exports = {
+ root: true,
+ extends: [
+ "eslint:recommended",
+ "plugin:react/recommended",
+ "plugin:react-hooks/recommended",
+ "plugin:react/jsx-runtime",
+ "plugin:@typescript-eslint/eslint-recommended",
+ "plugin:@typescript-eslint/recommended",
+ "plugin:@typescript-eslint/recommended-requiring-type-checking",
+ "prettier",
+ ],
+ plugins: ["@typescript-eslint", "prettier", "react", "react-hooks"],
+ parser: "@typescript-eslint/parser",
+ parserOptions: {
+ project: true,
+ tsconfigRootDir: __dirname
+ },
+ settings: {
+ react: {
+ version: "detect",
+ },
+ },
+};
|