Replace rules.indent array with number

ESLint 7.12.0 indent rule configuration now only accepts a number value. The array provided returns a runtime error.
This commit is contained in:
mikemitchell574 2020-10-24 11:00:39 -04:00 committed by GitHub
parent 2d5be7b730
commit 2e057065b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -328,7 +328,7 @@ Here's an example of an `.eslintrc` file:
}, },
"rules": { "rules": {
"no-console": 0, "no-console": 0,
"indent": ["warning", 2] "indent": 2
} }
} }
``` ```