From 2c7484eb04503f84693a0f80b4c6de40ad4afb85 Mon Sep 17 00:00:00 2001 From: prototypa Date: Sun, 6 Nov 2022 14:41:48 -0500 Subject: [PATCH] allows mixed tabs and spaces when the spaces are used for alignment --- .eslintrc.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 9caa5d3..5b067cd 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -11,6 +11,12 @@ module.exports = { }, rules: {}, overrides: [ + { + files: ['*.js'], + rules: { + 'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'], + }, + }, { files: ['*.astro'], parser: 'astro-eslint-parser', @@ -18,7 +24,9 @@ module.exports = { parser: '@typescript-eslint/parser', extraFileExtensions: ['.astro'], }, - rules: {}, + rules: { + 'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'], + }, }, { files: ['*.ts'],