diff options
Diffstat (limited to 'webui/.eslintrc.js')
-rw-r--r-- | webui/.eslintrc.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/webui/.eslintrc.js b/webui/.eslintrc.js new file mode 100644 index 00000000..7adbb8d5 --- /dev/null +++ b/webui/.eslintrc.js @@ -0,0 +1,37 @@ +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', + }, + ], + }, +}; |