2020-02-12 00:11:08 +03:00
|
|
|
module.exports = {
|
|
|
|
extends: [
|
2020-02-13 01:39:23 +03:00
|
|
|
'react-app',
|
|
|
|
'prettier/@typescript-eslint',
|
|
|
|
'plugin:prettier/recommended',
|
2020-02-12 00:11:08 +03:00
|
|
|
],
|
2020-02-13 01:39:23 +03:00
|
|
|
plugins: ['graphql'],
|
2020-02-12 00:11:08 +03:00
|
|
|
rules: {
|
2020-02-13 01:39:23 +03:00
|
|
|
'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',
|
|
|
|
},
|
|
|
|
],
|
2020-02-13 22:00:03 +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'],
|
2020-02-12 00:11:08 +03:00
|
|
|
};
|