1.4.0 • Published 2 years ago

@soyhuce/eslint-config-vue v1.4.0

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

@soyhuce/eslint-config-vue

ESLint shareable config for Soyhuce Vue style.

Installation

pnpm add -D @soyhuce/eslint-config-vue

# with standard config and ESLint
pnpm add -D eslint @soyhuce/eslint-config @soyhuce/eslint-config-vue

Usage

In order to use this config, choose the one you want and add this configuration to your package.json:

{
 "eslintConfig": {
   "extends": [
     "@soyhuce/eslint-config",
+    "@soyhuce/eslint-config-vue"
   ]
 }
}

Or add a .eslintrc.js file to your project root containing:

module.exports = {
  extends: [
    '@soyhuce/eslint-config',
+   '@soyhuce/eslint-config-vue'
  ]
}

VSCode integration

We recommend turning on VSCode settings to automatically run eslint --fix on save.

"editor.codeActionsOnSave": {
+  "source.fixAll.eslint": true
}

This will automatically format your code once you save. You don't need VSCode prettier extension enabled or running on save as eslint will automatically run prettier for you.

1.2.0

2 years ago

0.1.0

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago