aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/.eslintrc.js
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-07-14 23:01:33 +0800
committercrupest <crupest@outlook.com>2023-07-14 23:01:33 +0800
commitc833176b638eeb1cdc8b30d4aef632a25ede3777 (patch)
tree3e67b72f7431734d7e8973faea90b56d8119c5ba /FrontEnd/.eslintrc.js
parent810185b8df1fd191cd4a5e7eb92e1986000880b1 (diff)
downloadtimeline-c833176b638eeb1cdc8b30d4aef632a25ede3777.tar.gz
timeline-c833176b638eeb1cdc8b30d4aef632a25ede3777.tar.bz2
timeline-c833176b638eeb1cdc8b30d4aef632a25ede3777.zip
...
Diffstat (limited to 'FrontEnd/.eslintrc.js')
-rw-r--r--FrontEnd/.eslintrc.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/FrontEnd/.eslintrc.js b/FrontEnd/.eslintrc.js
new file mode 100644
index 00000000..6fcccd3e
--- /dev/null
+++ b/FrontEnd/.eslintrc.js
@@ -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: ["./tsconfig.json", "tools/tsconfig.json"],
+ tsconfigRootDir: __dirname
+ },
+ settings: {
+ react: {
+ version: "detect",
+ },
+ },
+};