We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
import/order
sort-imports
1 parent 8dbc250 commit be88ce0Copy full SHA for be88ce0
src/config/helpers/build-eslint.js
@@ -40,7 +40,6 @@ const buildConfig = ({withReact = false} = {}) => {
40
ifReact('plugin:react-hooks/recommended'),
41
].filter(Boolean),
42
rules: {
43
- 'prettier/prettier': 'error',
44
'import/prefer-default-export': 'off',
45
'import/no-extraneous-dependencies': [
46
'error',
@@ -55,7 +54,21 @@ const buildConfig = ({withReact = false} = {}) => {
55
54
optionalDependencies: false,
56
},
57
],
+ 'import/order': [
58
+ 'error',
59
+ {
60
+ alphabetize: {order: 'asc'},
61
+ 'newlines-between': 'always',
62
+ pathGroups: [
63
+ {pattern: 'src/**/*', group: 'parent', position: 'before'},
64
+ {pattern: 'assets/**/*', group: 'parent', position: 'before'},
65
+ ],
66
+ pathGroupsExcludedImportTypes: ['builtin'],
67
+ },
68
69
'no-void': ['error', {allowAsStatement: true}],
70
+ 'prettier/prettier': 'error',
71
+ 'sort-imports': ['error', {ignoreDeclarationSort: true}],
72
...parserRules(false, isReact),
73
74
overrides: [
0 commit comments