23 lines
526 B
JavaScript
23 lines
526 B
JavaScript
import next from 'eslint-config-next';
|
|
import importPlugin from 'eslint-plugin-import';
|
|
|
|
export default [
|
|
next,
|
|
{
|
|
plugins: {
|
|
import: importPlugin,
|
|
},
|
|
rules: {
|
|
'import/order': [
|
|
'error',
|
|
{
|
|
groups: ['builtin', 'external', 'internal', ['parent', 'sibling', 'index']],
|
|
'newlines-between': 'always',
|
|
alphabetize: { order: 'asc', caseInsensitive: true },
|
|
},
|
|
],
|
|
semi: ['error', 'always'],
|
|
quotes: ['error', 'double'],
|
|
},
|
|
},
|
|
];
|