2020-02-12 00:11:08 +03:00
|
|
|
module.exports = {
|
2022-02-22 23:59:18 +03:00
|
|
|
extends: ['react-app', 'prettier', 'plugin:prettier/recommended'],
|
2020-02-12 00:11:08 +03:00
|
|
|
rules: {
|
2020-02-13 01:39:23 +03:00
|
|
|
'import/order': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
alphabetize: { order: 'asc' },
|
|
|
|
pathGroups: [
|
|
|
|
{
|
|
|
|
pattern: '@material-ui/**',
|
|
|
|
group: 'external',
|
|
|
|
position: 'after',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pattern: '*.generated',
|
|
|
|
group: 'sibling',
|
|
|
|
position: 'after',
|
|
|
|
},
|
|
|
|
],
|
2022-02-22 23:59:18 +03:00
|
|
|
pathGroupsExcludedImportTypes: ['builtin'],
|
|
|
|
groups: [
|
|
|
|
['builtin', 'external'],
|
|
|
|
['internal', 'parent'],
|
|
|
|
['sibling', 'index'],
|
|
|
|
],
|
2020-02-13 01:39:23 +03:00
|
|
|
'newlines-between': 'always',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-02-13 22:00:03 +03:00
|
|
|
settings: {
|
|
|
|
'import/internal-regex': '^src/',
|
|
|
|
},
|
2021-03-18 20:00:16 +03:00
|
|
|
ignorePatterns: ['**/*.generated.tsx'],
|
2022-02-22 23:59:18 +03:00
|
|
|
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['*.graphql'],
|
|
|
|
parser: '@graphql-eslint/eslint-plugin',
|
|
|
|
plugins: ['@graphql-eslint'],
|
|
|
|
rules: {
|
|
|
|
'@graphql-eslint/known-type-names': 'error',
|
|
|
|
},
|
|
|
|
parserOptions: {
|
|
|
|
schema: './src/schema.json',
|
|
|
|
operations: './src/**/*.graphql'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
2020-02-12 00:11:08 +03:00
|
|
|
};
|