Open
Description
Let's say I have a simple code like this:
function testFunction(){
test = 0;
if(test == 0){
test = 1;
}
test = 2;
}
And I have the following rule:
"@stylistic/padding-line-between-statements": ["error", { blankLine: "never", prev: "if", next: "expression" },
],
"@stylistic/max-statements-per-line": ["error", { "max": 1, "ignoredNodes": ["BreakStatement"] }],
When I go into the highlighted error and click on "Quick Fix -> Fix this (...) problem", it works correctly, and the code them becomes this, which is correct:
function testFunction(){
test = 0;
if(test == 0){
test = 1;
}
test = 2;
}
However, if I click on "Fix all auto-fixable problems", for some reason the newline is removed and it becomes this:
function testFunction(){
test = 0;
if(test == 0){
test = 1;
} test = 2;
}
This error occurs regardless if prettier is enabled or disabled.
Dependencies:
"@nuxt/eslint": "^1.2.0",
"eslint-plugin-vue-scoped-css": "^2.8.1",
"@nuxt/devtools": "latest",
"lint-staged": "^15.4.3",
"@nuxt/eslint": "^0.6.0",
"@nuxt/eslint-config": "^0.6.0",
"@nuxtjs/eslint-module": "^4.1.0",
"@stylistic/eslint-plugin-js": "^2.9.0",
"eslint": "^9.13.0",
"eslint-plugin-nuxt": "^4.0.0",
"prettier": "^3.3.3",
"typescript": "^5.6.3"