Chore: Add eslint simple-sort plugin

This commit is contained in:
Gustav Hansen 2023-06-12 15:22:11 +02:00
parent 11f5c5a852
commit dfbe582cd7

View File

@ -31,6 +31,22 @@ module.exports = {
'react/jsx-no-constructed-context-values': 'warn',
'react/jsx-no-useless-fragment': 'warn',
'react/no-unstable-nested-components': 'warn',
'import/order': [
'error',
{
groups: [
['external', 'internal', 'builtin'],
'parent',
['sibling', 'index'],
'object',
'type',
],
pathGroups: [{ pattern: 'react', group: 'external', position: 'before' }],
pathGroupsExcludedImportTypes: ['react'],
'newlines-between': 'always',
alphabetize: { order: 'asc', caseInsensitive: true },
},
],
'no-restricted-imports': [
'error',
{