1.1.2 • Published 2 years ago

@vue-storefront/eslint-config-base v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@vue-storefront/eslint-config-base

@vue-storefront/eslint-config-base

npm version npm downloads License

Vue Storefront eslint standards for JavaScript

Information

Eslint configuration for:

  • JavaScript

For this eslint config package, we enable the following community standards:

  • AirBnb
  • Prettier

This configuration provides eslint rules for the following:

  • JSON
  • YAML / YML
  • Markdown

Usage

Install

pnpm add -D eslint @vue-storefront/eslint-config-base

Config .eslintrc

{
  "extends": "@vue-storefront/eslint-config"
}

Config VS Code auto fix

Update your .vscode/settings.json and add the following

{
  "prettier.enable": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}

Contributing

You can contribute to this module online with CodeSandBox:

Edit @vuestorefront/eslint-config

Or locally:

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using yarn dev or npm run dev

License

MIT License

Copyright (c) Vue Storefront