Tweaked eslint rules
Tweaked default rule to instead prefer no space between function head and parameters. Added a few rules concerning ternaries. Switched to tabbed indentation for consistency.
function withoutSpace(x) {
// ...
}
function withSpace (x) {
// ...
}
Edited by Skriv
Merge request reports
Activity
mentioned in merge request !4123 (merged)
mentioned in commit c8c1a5bc
@Pregmodder Maybe eslint is not run with fc-pregmod as its root directory? In vscode I added these settings to my settings.json (vscode settings)
"eslint.workingDirectories": [ "./fc-pregmod", // Does not change the process's working directory { "directory": "./fc-pregmod", "changeProcessCWD": true } ], "eslint.options": { "configFile": "{path here}/.eslintrc.json", },
I think these are settings provided by the extension "ESLint" by Dirk Baeumer, not entirely sure tbh
Edited by Skriv
Please register or sign in to reply