mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 11:25:17 +00:00
Chore: Add eslint simple-sort plugin
This commit is contained in:
parent
11f5c5a852
commit
dfbe582cd7
@ -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',
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user