eslint-config-vue for cy
-
vue create your-app
-
Install following dependency:
"@vue/cli-plugin-eslint": "^4.2.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.1.2",
"babel-eslint": "^10.0.3",
- Install
@cyys/eslint-config-vue
npm install @cyys/eslint-config-vue --save-dev
If using Yarn:
yarn add @cyys/eslint-config-vue --dev
.eslintrc.js
module.exports = {
root: true,
env: {
node: true,
},
extends: '@cyys/eslint-config-vue',
rules: {},
parserOptions: {
parser: 'babel-eslint',
},
};