Skip to content

Commit 00950d1

Browse files
fix(eslint-typescript): add missing optional ruleset
1 parent 95df1db commit 00950d1

2 files changed

Lines changed: 28 additions & 6 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* strvcom/eslint-config-typescript
3+
*
4+
* @author Robert Rossmann <rr.rossmann@me.com>
5+
* @copyright 2019 STRV
6+
* @license http://choosealicense.com/licenses/bsd-3-clause BSD-3-Clause License
7+
*/
8+
9+
'use strict'
10+
11+
module.exports = {
12+
13+
extends: require.resolve('@strv/eslint-config-base/optional'),
14+
}

packages/eslint-config-typescript/readme.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,20 @@ In addition to using this ruleset, you should also choose one base ruleset depen
1515
- [`@strv/eslint-config-node`][eslint-config-node]
1616
- [`@strv/eslint-config-react`][eslint-config-react]
1717

18+
## Optional configurations
19+
20+
### `@strv/eslint-config-node/optional`
21+
22+
Use this ruleset in conjunction with any of the above version-specific rulesets. Provides additional insights into potential inconsistencies in the project.
23+
24+
> For new projects, it is recommended to enable this ruleset. For existing projects, it is only recommended for the brave.
25+
26+
## Coding styles
27+
28+
### `@strv/eslint-config-typescript/style`
29+
30+
This ruleset includes rules which deal with how the code looks like and not how it works. It helps keeping the code clean and consistent. 🎨
31+
1832
A full configuration for a TypeScript on Node.js project:
1933

2034
```js
@@ -38,12 +52,6 @@ To actually lint .ts files, you must pass the `--ext` flag to ESLint:
3852
eslint --ext ts --no-unused-disable-directives .
3953
```
4054

41-
## Coding styles
42-
43-
### `@strv/eslint-config-typescript/style`
44-
45-
This ruleset includes rules which deal with how the code looks like and not how it works. It helps keeping the code clean and consistent. 🎨
46-
4755
## License
4856

4957
See the [LICENSE](LICENSE) file for information.

0 commit comments

Comments
 (0)