allows mixed tabs and spaces when the spaces are used for alignment

This commit is contained in:
prototypa
2022-11-06 14:41:48 -05:00
parent 41317ac259
commit 2c7484eb04

View File

@ -11,6 +11,12 @@ module.exports = {
}, },
rules: {}, rules: {},
overrides: [ overrides: [
{
files: ['*.js'],
rules: {
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
},
},
{ {
files: ['*.astro'], files: ['*.astro'],
parser: 'astro-eslint-parser', parser: 'astro-eslint-parser',
@ -18,7 +24,9 @@ module.exports = {
parser: '@typescript-eslint/parser', parser: '@typescript-eslint/parser',
extraFileExtensions: ['.astro'], extraFileExtensions: ['.astro'],
}, },
rules: {}, rules: {
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
},
}, },
{ {
files: ['*.ts'], files: ['*.ts'],