Currently, my ESLint setup includes the Airbnb plugin (eslint-config-airbnb
) along with the Babel parser. I recently decided to enforce the rule of using Tab characters for indentation instead of spaces.
This is how my .eslintrc
file looks like:
{
"parser": "babel-eslint",
"extends": "airbnb",
"plugins": [
"react",
"jsx-a11y",
"import"
],
"rules":{
"indent": [2, "tab"]
}
}
However, I'm encountering an error highlighting every time I tab indent:
Error: Unexpected tab character
For reference, I am using Atom IDE along with the autolinter plugins linter
and linter-eslint
.