1module.exports = {
2 extends: ['react-app'],
3 rules: {
4 'import/order': [
5 'error',
6 {
7 alphabetize: { order: 'asc' },
8 pathGroups: [
9 {
10 pattern: '@material-ui/**',
11 group: 'external',
12 position: 'after',
13 },
14 {
15 pattern: '*.generated',
16 group: 'sibling',
17 position: 'after',
18 },
19 ],
20 pathGroupsExcludedImportTypes: ['builtin'],
21 groups: [
22 ['builtin', 'external'],
23 ['internal', 'parent'],
24 ['sibling', 'index'],
25 ],
26 'newlines-between': 'always',
27 },
28 ],
29 },
30 settings: {
31 'import/internal-regex': '^src/',
32 },
33 ignorePatterns: ['**/*.generated.tsx'],
34
35 overrides: [
36 {
37 files: ['*.graphql'],
38 parser: '@graphql-eslint/eslint-plugin',
39 plugins: ['@graphql-eslint'],
40 rules: {
41 '@graphql-eslint/known-type-names': 'error',
42 },
43 parserOptions: {
44 schema: './src/schema.json',
45 operations: './src/**/*.graphql',
46 },
47 },
48 ],
49};