-
-
Notifications
You must be signed in to change notification settings - Fork 156
Closed
Description
In the docs for semi, you state that always was the default option.
| * `"always"` (default) requires semicolons at the end of statements |
However, when I use the following configuration in .eslintrc.js:
const stylistic = require("@stylistic/eslint-plugin");
const customized = stylistic.configs.customize({
indent: 2,
quotes: "double",
});
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2024,
sourceType: "module",
},
env: {
browser: true,
jquery: true,
},
extends: "eslint:recommended",
plugins: [
"@stylistic",
],
rules: {
...customized.rules,
"no-unused-vars": "warn",
},
};I get errors for having semicolons ("Extra semicolon"), such that I manually have to set
const customized = stylistic.configs.customize({
indent: 2,
quotes: "double",
semi: "always",
});I don't know but maybe this is related to this line?
| 'semi': 0, |
Metadata
Metadata
Assignees
Labels
No labels