aboutsummaryrefslogtreecommitdiffstats
path: root/webui/.eslintrc
diff options
context:
space:
mode:
authorQuentin Gliech <quentingliech@gmail.com>2020-02-11 20:54:01 +0100
committerQuentin Gliech <quentingliech@gmail.com>2020-02-11 20:54:38 +0100
commit9ddcb4b09215f942cb7889f9756d426ad3c90253 (patch)
treee547e20530a8c713881eb29059e5647db6e91cca /webui/.eslintrc
parente5f52401b2a839881fedef5a446f0ed21d2d34c2 (diff)
downloadgit-bug-9ddcb4b09215f942cb7889f9756d426ad3c90253.tar.gz
webui: force import order
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"
+ }
+ ]
+ }
}