To use esling and prettier with nvim ale on a project:
.eslintrc.js or .eslintrc.json module.exports = {
env: {
browser: true,
node: true,
},
extends: ['eslint:recommended'],
rules: {
// Add your ESLint rules here
},
};
.prettierrc or prettier.config.js {
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 2,
"semi": true
}
prettier at the end of the extends array in .eslintrc
{
"extends": [
"some-other-config-you-use",
"prettier"
]
}