scode-eslint-config/README.md

37 lines
538 B
Markdown
Raw Normal View History

2020-05-13 20:38:48 +02:00
# @sapphirecode/eslint-config
2020-01-18 22:37:39 +01:00
2020-05-13 20:38:48 +02:00
version: 2.1.x
scode eslint standard configuration
2020-01-18 22:37:39 +01:00
## Installation
2020-05-13 20:38:48 +02:00
npm:
2020-01-18 22:37:39 +01:00
2020-05-13 20:38:48 +02:00
> npm i --save-dev @sapphirecode/eslint-config
2020-01-18 22:37:39 +01:00
2020-05-13 20:38:48 +02:00
yarn:
2020-01-18 22:37:39 +01:00
2020-05-13 20:38:48 +02:00
> yarn add --dev @sapphirecode/eslint-config
2020-01-18 22:37:39 +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:46:50 +02:00
'@sapphirecode'
2020-04-06 08:32:45 +02:00
]
2020-01-18 22:37:39 +01:00
}
```
2020-05-13 20:38:48 +02:00
## License
2020-05-17 19:04:57 +02:00
BSD-3-Clause © Timo Hocker <timo@scode.ovh>