1module.exports = {
2 extends: [
3 'react-app',
4 'prettier/@typescript-eslint',
5 'plugin:prettier/recommended',
6 ],
7 plugins: ['graphql'],
8 rules: {
9 'graphql/template-strings': [
10 'error',
11 {
12 schemaJson: require('./src/schema.json'),
13 env: 'literal',
14 },
15 ],
16 'import/order': [
17 'error',
18 {
19 alphabetize: { order: 'asc' },
20 pathGroups: [
21 {
22 pattern: '@material-ui/**',
23 group: 'external',
24 position: 'after',
25 },
26 {
27 pattern: '*.generated',
28 group: 'sibling',
29 position: 'after',
30 },
31 ],
32 pathGroupsExcludedImportTypes: ["builtin"],
33 groups: [['builtin', 'external'], ['internal', 'parent'], ['sibling', 'index']],
34 'newlines-between': 'always',
35 },
36 ],
37 },
38 settings: {
39 'import/internal-regex': '^src/',
40 },
41};