diff options
Diffstat (limited to 'webui/.eslintrc.js')
-rw-r--r-- | webui/.eslintrc.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/webui/.eslintrc.js b/webui/.eslintrc.js new file mode 100644 index 00000000..2b4a60de --- /dev/null +++ b/webui/.eslintrc.js @@ -0,0 +1,32 @@ +module.exports = { + extends: [ + "react-app", + "prettier/@typescript-eslint", + "plugin:prettier/recommended" + ], + plugins: [ + "graphql" + ], + rules: { + "graphql/template-strings": ["error", { + "schemaJson": require("./src/schema.json"), + "env": "literal" + }], + "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" + } + ] + } +}; |