55 lines
1.2 KiB
JavaScript
55 lines
1.2 KiB
JavaScript
module.exports = {
|
|
extends: [
|
|
'next',
|
|
'plugin:prettier/recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
],
|
|
settings: {
|
|
next: {
|
|
rootDir: 'src/frontend/app/desk',
|
|
},
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'error',
|
|
'block-scoped-var': 'error',
|
|
'no-alert': 'error',
|
|
'import/no-duplicates': ['error', { considerQueryString: false }],
|
|
'import/order': [
|
|
'error',
|
|
{
|
|
alphabetize: {
|
|
order: 'asc',
|
|
},
|
|
groups: [
|
|
'builtin',
|
|
'external',
|
|
'internal',
|
|
'parent',
|
|
'sibling',
|
|
'index',
|
|
],
|
|
pathGroups: [
|
|
{
|
|
pattern: '+@/**',
|
|
group: 'internal',
|
|
},
|
|
],
|
|
pathGroupsExcludedImportTypes: ['builtin'],
|
|
'newlines-between': 'always',
|
|
},
|
|
],
|
|
'no-unused-vars': [
|
|
'error',
|
|
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
|
|
],
|
|
'react-hooks/rules-of-hooks': 'error',
|
|
'react-hooks/exhaustive-deps': 'error',
|
|
'sort-imports': [
|
|
'error',
|
|
{
|
|
ignoreDeclarationSort: true,
|
|
},
|
|
],
|
|
},
|
|
};
|