diff options
author | Quentin Gliech <quentingliech@gmail.com> | 2020-02-11 22:11:08 +0100 |
---|---|---|
committer | Quentin Gliech <quentingliech@gmail.com> | 2020-02-11 22:11:08 +0100 |
commit | b70b4ba4b17d02d9744bd72494549f5cf7d980f8 (patch) | |
tree | 0df79bf22bc556389b95348302d89d4950a42899 /webui/.eslintrc.js | |
parent | 465f7ca73d7093eeeecb6553c804d8cfb06e6652 (diff) | |
download | git-bug-b70b4ba4b17d02d9744bd72494549f5cf7d980f8.tar.gz |
webui: lint graphql files
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" + } + ] + } +}; |