eslint-vue/README.md
2020-04-06 08:15:12 +02:00

37 lines
628 B
Markdown

# Sapphirecode ESLint configuration
Javascript coding standard used by Sapphirecode
## Installation
to install this module you have to add the following line to your .npmrc
```npmrc
@scode:registry=https://npm.scode.ovh
```
then install the module and eslint
```sh
npm i --save-dev @scode/eslint-es6 eslint
```
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: [
'@scode/eslint-es6'
]
}
```
after that you can run eslint.