aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/.eslintrc.cjs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-10-23 23:53:15 +0800
committercrupest <crupest@outlook.com>2022-10-23 23:53:15 +0800
commit83f4fc8ab07a7f4cd3bba8042d600d7a4543bcaf (patch)
tree24a034a5fb23b71c51ea135efaa23ff24f7016a5 /FrontEnd/.eslintrc.cjs
parent4a12e66fcba50cd566a4ab8c072a50ed0751dc0b (diff)
downloadtimeline-83f4fc8ab07a7f4cd3bba8042d600d7a4543bcaf.tar.gz
timeline-83f4fc8ab07a7f4cd3bba8042d600d7a4543bcaf.tar.bz2
timeline-83f4fc8ab07a7f4cd3bba8042d600d7a4543bcaf.zip
It's been a long time not developing this. Still need some time to get
it work again.
Diffstat (limited to 'FrontEnd/.eslintrc.cjs')
-rw-r--r--FrontEnd/.eslintrc.cjs39
1 files changed, 39 insertions, 0 deletions
diff --git a/FrontEnd/.eslintrc.cjs b/FrontEnd/.eslintrc.cjs
new file mode 100644
index 00000000..62490975
--- /dev/null
+++ b/FrontEnd/.eslintrc.cjs
@@ -0,0 +1,39 @@
+module.exports = {
+ root: true,
+ env: {
+ browser: true,
+ es2022: true,
+ },
+ extends: [
+ "eslint:recommended",
+ "plugin:react/recommended",
+ "plugin:@typescript-eslint/eslint-recommended",
+ "plugin:@typescript-eslint/recommended",
+ "plugin:@typescript-eslint/recommended-requiring-type-checking",
+ "plugin:prettier/recommended",
+ "plugin:react-hooks/recommended",
+ ],
+ parser: "@typescript-eslint/parser",
+ parserOptions: {
+ tsconfigRootDir: __dirname,
+ project: ["./tsconfig.json"],
+ },
+ plugins: ["react", "@typescript-eslint", "react-hooks"],
+ settings: {
+ react: {
+ version: "detect",
+ },
+ },
+ rules: {
+ "react/prop-types": "off",
+ "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
+ "@typescript-eslint/explicit-function-return-type": [
+ "warn",
+ {
+ allowExpressions: true,
+ allowTypedFunctionExpressions: true,
+ allowHigherOrderFunctions: true,
+ },
+ ],
+ },
+};