aboutsummaryrefslogtreecommitdiffstats
path: root/webui/.eslintrc
diff options
context:
space:
mode:
Diffstat (limited to 'webui/.eslintrc')
-rw-r--r--webui/.eslintrc25
1 files changed, 23 insertions, 2 deletions
diff --git a/webui/.eslintrc b/webui/.eslintrc
index 112028d8..3c6e976f 100644
--- a/webui/.eslintrc
+++ b/webui/.eslintrc
@@ -1,4 +1,25 @@
{
- "extends": ["react-app", "plugin:prettier/recommended"],
- "ignorePatterns": ["src/fragmentTypes.js"]
+ "extends": [
+ "react-app",
+ "prettier/@typescript-eslint",
+ "plugin:prettier/recommended"
+ ],
+ "rules": {
+ "import/order": [
+ "error", {
+ "alphabetize": {"order": "asc"},
+ "pathGroups": [{
+ "pattern": "@material-ui/**",
+ "group": "external",
+ "position": "after"
+ }, {
+ "pattern": "*.generated",
+ "group": "sibling",
+ "position": "after"
+ }],
+ "groups": [["builtin", "external"], "parent", ["sibling", "index"]],
+ "newlines-between": "always"
+ }
+ ]
+ }
}