2020-05-13 20:54:25 +02:00
|
|
|
# @sapphirecode/eslint-config-vue
|
2019-12-15 19:37:10 +01:00
|
|
|
|
2020-05-13 20:54:25 +02:00
|
|
|
[![Package quality](https://packagequality.com/badge/%40sapphirecode%2Feslint-config-vue)](https://packagequality.com/#?package=%40sapphirecode%2Feslint-config-vue)
|
|
|
|
|
|
|
|
version: 1.1.x
|
|
|
|
|
|
|
|
scode eslint configuration for vue.js
|
2019-12-15 19:37:10 +01:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2020-05-13 20:54:25 +02:00
|
|
|
npm:
|
2019-12-15 19:37:10 +01:00
|
|
|
|
2020-05-13 20:54:25 +02:00
|
|
|
> npm i --save-dev @sapphirecode/eslint-config-vue
|
2019-12-15 19:37:10 +01:00
|
|
|
|
2020-05-13 20:54:25 +02:00
|
|
|
yarn:
|
2019-12-15 19:37:10 +01:00
|
|
|
|
2020-05-13 20:54:25 +02:00
|
|
|
> yarn add --dev @sapphirecode/eslint-config-vue
|
2019-12-15 19:37:10 +01:00
|
|
|
|
|
|
|
then create a file named .eslintrc.js with the following contents.
|
|
|
|
|
|
|
|
it is a basic configuration, it can be customized to your preferences.
|
|
|
|
|
|
|
|
```js
|
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
commonjs: true,
|
|
|
|
es6: true,
|
|
|
|
node: true
|
|
|
|
},
|
|
|
|
extends: [
|
2020-05-13 20:54:25 +02:00
|
|
|
'@sapphirecode/eslint-config-vue'
|
2019-12-15 19:37:10 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
2020-05-13 20:54:25 +02:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
2020-05-17 19:08:20 +02:00
|
|
|
BSD-3-Clause © Timo Hocker <timo@scode.ovh>
|