@saasjetlib/eslint-config-vue
v2.7.6
Published
SaaSJet ESLint config for Vue.js
Downloads
1,254
Readme
SaaSJet ESLint config for Vue.js
This package provides base Vue.js .eslintrc.json as an extensible shared config.
Usage
- Install packages
npm install @saasjetlib/eslint-config-vue eslint @babel/core @babel/eslint-parser vue-eslint-parser eslint-plugin-vue eslint-plugin-import --save-dev
- Create ESLint configuration file .eslintrc.json
{
"env": {
},
"extends": [
"@saasjetlib/eslint-config-vue"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@babel/eslint-parser"
},
"rules": {
}
}
- Options
env.browser - set true, if code run in Browser
env.node - set true, if code run in Node
env.commonjs- set true, if use CommonJS modules (require/exports)
parserOptions.sourceType - set "module", if use JavaScript modules (import/export)
Configuration
By default, we use a "plugin:vue/essential" config. Read more about predefined configs