1.0.5 • Published 3 years ago

@cylution/eslint-config-vue v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@cylution/eslint-config-vue

yarn add -D eslint@^7 @cylution/eslint-config-vue

Usage

Edit .eslintrc or .eslintrc.js

module.exports = {
  extends: ['@cylution/vue']
}

Or execute command

cat > .eslintrc.js <<EOF
module.exports = {
  extends: ['@cylution/vue'],
  // rules: [
  //   'vue/html-closing-bracket-newline': [
  //     'error',
  //     {
  //       singleline: 'never',
  //       multiline: 'always'
  //     }
  //   ],
  //   'vue/max-attributes-per-line': [2, {
  //     'singleline': 2,
  //     'multiline': {
  //       'max': 1,
  //       'allowFirstLine': false
  //     }
  //   }],
  // ]
}
EOF

Note

If you get error message like: Could not load/find module eslint-blahblah, please remove node_modules and run npm install or yarn to reinstall packages