build: added import/extensions
rule
This commit is contained in:
parent
5b00ce4a63
commit
743fd6223c
1 changed files with 6 additions and 0 deletions
|
@ -64,6 +64,7 @@ export default antfu({
|
||||||
'import/order': ['error', { 'newlines-between': 'always' }],
|
'import/order': ['error', { 'newlines-between': 'always' }],
|
||||||
'antfu/if-newline': 'off',
|
'antfu/if-newline': 'off',
|
||||||
'import/no-relative-packages': 'error',
|
'import/no-relative-packages': 'error',
|
||||||
|
'import/extensions': ['error', 'ignorePackages'],
|
||||||
'style/max-statements-per-line': ['error', { max: 2 }],
|
'style/max-statements-per-line': ['error', { max: 2 }],
|
||||||
'ts/no-redeclare': 'off',
|
'ts/no-redeclare': 'off',
|
||||||
'eslint-comments/no-unlimited-disable': 'off',
|
'eslint-comments/no-unlimited-disable': 'off',
|
||||||
|
@ -125,4 +126,9 @@ export default antfu({
|
||||||
'node/prefer-global/buffer': ['error', 'never'],
|
'node/prefer-global/buffer': ['error', 'never'],
|
||||||
'no-console': 'off',
|
'no-console': 'off',
|
||||||
},
|
},
|
||||||
|
}, {
|
||||||
|
files: ['e2e/**', '.config/**'],
|
||||||
|
rules: {
|
||||||
|
'import/extensions': 'off',
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue