eslint-ts/README.md

37 lines
569 B
Markdown
Raw Permalink Normal View History

2020-05-13 20:57:16 +02:00
# @sapphirecode/eslint-config-ts
2020-04-06 11:56:05 +02:00
version: 1.2.x
2020-05-13 20:57:16 +02:00
scode eslint configuration for typescript
2020-04-06 11:56:05 +02:00
## Installation
2020-05-13 20:57:16 +02:00
npm:
2020-04-06 11:56:05 +02:00
2020-05-13 20:57:16 +02:00
> npm i --save-dev @sapphirecode/eslint-config-ts
2020-04-06 11:56:05 +02:00
2020-05-13 20:57:16 +02:00
yarn:
2020-04-06 11:56:05 +02:00
2020-05-13 20:57:16 +02:00
> yarn add --dev @sapphirecode/eslint-config-ts
2020-04-06 11:56:05 +02: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:57:16 +02:00
'@sapphirecode/eslint-config-ts'
2020-04-06 11:56:05 +02:00
]
}
```
2020-05-13 20:57:16 +02:00
## License
2021-05-20 12:52:35 +02:00
MIT License © Timo Hocker <timo@scode.ovh>