-
I created a project with {
"extends": [
"plugin:adonis/typescriptApp"
]
} I also have configured my {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
// For ESLint
"source.fixAll.eslint": true,
// For TSLint
"source.fixAll.tslint": true,
// For Stylelint
"source.fixAll.stylelint": true
}
} But when I save the What should I do to make eslint correctly format my |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Does Prettier ignore |
Beta Was this translation helpful? Give feedback.
-
Try it (Brazilian portuguese): .eslintrc.json {
"extends": [
"plugin:adonis/typescriptApp",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": "error",
"no-console": "error"
}
} prettier.config.js module.exports = {
trailingComma: "es5",
semi: false,
singleQuote: true,
quoteProps: "consistent",
bracketSpacing: true,
arrowParens: "always",
printWidth: 100,
tabWidth: 2,
} |
Beta Was this translation helpful? Give feedback.
Try it (Brazilian portuguese):
.eslintrc.json
prettier.config.js