eslint-plugin-bus-stuff v1.1.4
eslint-config-bus-stuff
This package provides a .eslintrc as an extensible shared config for Vue 2.X with TypeScript projects.
Usage
We export one ESLint configuration for your usage (with more coming soon).
eslint-config-bus-stuff:@typescript-recommended
Our recommended config contains most of our ESLint rules, including ECMAScript 6+ and React. It requires eslint:recommended
, @vue/typescript
, @vue/prettier
, @vue/prettier/@typescript-eslint
, vue/essential
, and vue/recommended
.
Install the correct versions of each package, which are listed by the command:
npm info "eslint-config-bus-stuff@latest" peerDependencies
If using npm 5+, use this shortcut
npx install-peerdeps --dev eslint-config-bus-stuff
If using npm < 5, Linux/OSX users can run
( export PKG=eslint-config-bus-stuff; npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest" )
If using npm < 5, Windows users can either install all the peer dependencies manually, or use the install-peerdeps cli tool.
npm install -g install-peerdeps install-peerdeps --dev eslint-config-bus-stuff
Add
plugins: ['bus-stuff'],
andextends: ['plugin:bus-stuff/@typescript-recommended']
to your.eslintrc