ESLint sharable config: prettier & standard for Vue
While maintaining a larger number of projects with different versions of Node.js, Vue.js,modules, and linters, we can't recommend installing any global packages or binaries at all. Thus ESLint and it's config get installed as configured devDependency within their projects package.json. Editors are configured to use local eslint
if found to overcome compatibility issues throughout different projects.
This package aims to avoid boilerplate and cope&paste with dozens of dotfiles in that scenario.
Install all required plugins together with the ESLint and Prettier binaries as direct dependencies by adding this package to your devDependencies.
This is not following the proposed best-practice (see roadmap below), but works.
yarn:
yarn add @uscreen.de/eslint-config-prettystandard-vue -D
npm:
npm install @uscreen.de/eslint-config-prettystandard-vue -D
Add or modify your .eslintrc.js
to extend @uscreen.de/eslint-config-prettystandard-vue
, for example:
module.exports = {
extends: ['@uscreen.de/eslint-config-prettystandard-vue']
}
This includes Prettier configuration, so you don't need to apply any extra .prettierrc
.
- declare plugin deps properly:
Format according to https://keepachangelog.com
- eslint 8.5.x
- prettier 2.5.x
- vue-eslint-parser replaces @babel/eslint-parser
- Readme with instructions
- initially bootstrapped
Licensed under MIT.
Maintained, Supported and Sponsored by u|screen