eslint-ts/README.md

39 lines
717 B
Markdown
Raw Normal View History

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
[![Package quality](https://packagequality.com/badge/%40sapphirecode%2Feslint-config-ts)](https://packagequality.com/#?package=%40sapphirecode%2Feslint-config-ts)
version: 1.1.x
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
BSD-3-Clause © Timo Hocker