diff --git a/frontend/.eslintrc.json b/frontend/.eslintrc.json new file mode 100644 index 0000000..63f4953 --- /dev/null +++ b/frontend/.eslintrc.json @@ -0,0 +1,39 @@ +{ + "root": true, + "env": { + "browser": true, + "es2022": true, + "node": true + }, + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:solid/recommended", + "prettier" + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "plugins": [ + "@typescript-eslint", + "solid" + ], + "rules": { + "@typescript-eslint/explicit-function-return-type": "warn", + "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], + "@typescript-eslint/no-explicit-any": "warn", + "prefer-const": "error", + "no-var": "error", + "object-shorthand": "error", + "prefer-template": "error", + "no-console": ["warn", { "allow": ["warn", "error"] }] + }, + "ignorePatterns": [ + "dist", + "node_modules", + "*.config.js", + "*.config.ts" + ] +} diff --git a/frontend/.prettierrc b/frontend/.prettierrc new file mode 100644 index 0000000..445a8aa --- /dev/null +++ b/frontend/.prettierrc @@ -0,0 +1,8 @@ +{ + "semi": false, + "singleQuote": true, + "tabWidth": 2, + "trailingComma": "es5", + "printWidth": 100, + "bracketSpacing": true +}