diff options
author | ludovicm67 <ludovicmuller1@gmail.com> | 2020-02-12 23:39:23 +0100 |
---|---|---|
committer | ludovicm67 <ludovicmuller1@gmail.com> | 2020-02-12 23:39:23 +0100 |
commit | ab09c03a1e55d5c2e35f332f0e5f6335c1670427 (patch) | |
tree | 3680c4915fce4a248db94a85f90ca38d44d2d0e1 /webui/.eslintrc.js | |
parent | c48a4dc79464d8b5f1d0912bc2a14c02d9509cee (diff) | |
download | git-bug-ab09c03a1e55d5c2e35f332f0e5f6335c1670427.tar.gz |
webui: format some files
Diffstat (limited to 'webui/.eslintrc.js')
-rw-r--r-- | webui/.eslintrc.js | 59 |
1 files changed, 32 insertions, 27 deletions
diff --git a/webui/.eslintrc.js b/webui/.eslintrc.js index 2b4a60de..7adbb8d5 100644 --- a/webui/.eslintrc.js +++ b/webui/.eslintrc.js @@ -1,32 +1,37 @@ module.exports = { extends: [ - "react-app", - "prettier/@typescript-eslint", - "plugin:prettier/recommended" - ], - plugins: [ - "graphql" + '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" - } - ] - } + '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', + }, + ], + }, }; |