From d46b1aed549938c9f5e3e658b4098e71b5e2acf7 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 11 Jul 2023 01:01:48 +0800 Subject: Lint error, get away! --- FrontEnd/.eslintrc.cjs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 FrontEnd/.eslintrc.cjs (limited to 'FrontEnd/.eslintrc.cjs') 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", + }, + }, +}; -- cgit v1.2.3