build: added import/extensions rule

This commit is contained in:
alina 🌸 2024-09-08 00:34:52 +03:00
parent 5b00ce4a63
commit 743fd6223c
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -64,6 +64,7 @@ export default antfu({
'import/order': ['error', { 'newlines-between': 'always' }],
'antfu/if-newline': 'off',
'import/no-relative-packages': 'error',
'import/extensions': ['error', 'ignorePackages'],
'style/max-statements-per-line': ['error', { max: 2 }],
'ts/no-redeclare': 'off',
'eslint-comments/no-unlimited-disable': 'off',
@ -125,4 +126,9 @@ export default antfu({
'node/prefer-global/buffer': ['error', 'never'],
'no-console': 'off',
},
}, {
files: ['e2e/**', '.config/**'],
rules: {
'import/extensions': 'off',
},
})