0.0.6 • Published 5 years ago
@pitcher/code-style v0.0.6
pitcher-code-style
Code style guide for JavaScript & Vue projects, eslint rule package
npm package name: @pitcher/eslint-config
Using Eslint Configuration
- Make sure you have installed:
eslint
version>=7.14.0
eslint-plugin-vue
version>=7.1.0
- Install package with:
npm install @pitcher/eslint-config
In your
.eslintrc.js
or.eslintrc.json
file add- for Vue projects:
extends: ["@pitcher"]
orextends: ["@pitcher/eslint-config/vue"]
- for plain JavaScript projects:
extends: ["@pitcher/eslint-config/javascript"]
- for Vue projects:
NOTE: By default the package exports Vue configuration. So using extends: ["@pitcher"]
would work in most cases even for plain JavaScript projects.
Code Style
Project structure
Naming Conventions for Components/Views
JavaScript
CSS
To do
- Add configuration files, split Vue and plain JavaScript
- Add code style rules for JS, Vue, CSS under
README.md
with visual examples - Add rules for component naming, vue essentials with visual examples