Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Commit 9eb1d85

Browse files
authored
Update Node to v16 (#10)
* Update node to v16 * Update README * Fix errors * Remove deps * Update packages
1 parent 87858d4 commit 9eb1d85

File tree

5 files changed

+4264
-370
lines changed

5 files changed

+4264
-370
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14.18.3
1+
16.0.0

README.md

Lines changed: 12 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -6,62 +6,32 @@
66

77
ESLint Shareable Config for TypeScript
88

9-
## Peer dependencies
10-
11-
- [@eslint-recommended/eslint-config-typescript](https://www.npmjs.com/package/@eslint-recommended/eslint-config-typescript)
12-
- [@typescript-eslint/eslint-plugin](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin)
13-
- [eslint](https://www.npmjs.com/package/eslint)
14-
- [eslint-config-standard-with-typescript](https://www.npmjs.com/package/eslint-config-standard-with-typescript)
15-
- [eslint-plugin-eslint-comments](https://www.npmjs.com/package/eslint-plugin-eslint-comments)
16-
- [eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import)
17-
- [eslint-plugin-import-newlines](https://www.npmjs.com/package/eslint-plugin-impor-newlines)
18-
- [eslint-plugin-jsdoc](https://www.npmjs.com/package/eslint-plugin-jsdoc)
19-
- [eslint-plugin-n](https://www.npmjs.com/package/eslint-plugin-n)
20-
- [eslint-plugin-promise](https://www.npmjs.com/package/eslint-plugin-promise)
21-
- [eslint-plugin-tsdoc](https://www.npmjs.com/package/eslint-plugin-tsdoc)
22-
- [eslint-plugin-unicorn](https://www.npmjs.com/package/eslint-plugin-unicorn)
23-
- [typescript](https://www.npmjs.com/package/typescript)
24-
259
## Installation
2610

27-
### npm@>=7
28-
29-
Install `@npm-update-package/eslint-config-typescript`.
11+
npm:
3012

3113
```sh
3214
npm i -D @npm-update-package/eslint-config-typescript
3315
```
3416

35-
### npm@<7
36-
37-
Install `@npm-update-package/eslint-config-typescript` and its peer dependencies.
17+
Yarn:
3818

3919
```sh
40-
npm i -D \
41-
@eslint-recommended/eslint-config-typescript \
42-
@typescript-eslint/eslint-plugin \
43-
eslint \
44-
eslint-config-standard-with-typescript \
45-
eslint-plugin-eslint-comments \
46-
eslint-plugin-import \
47-
eslint-plugin-import-newlines \
48-
eslint-plugin-jsdoc \
49-
eslint-plugin-n \
50-
eslint-plugin-promise \
51-
eslint-plugin-tsdoc \
52-
eslint-plugin-unicorn \
53-
typescript \
54-
@npm-update-package/eslint-config-typescript
20+
yarn add -D @npm-update-package/eslint-config-typescript
5521
```
5622

5723
## Usage
5824

5925
Add `@npm-update-package/eslint-config-typescript` to `extends` of your ESLint config.
6026

61-
```json
62-
{
63-
"extends": [
64-
"@npm-update-package/eslint-config-typescript"
65-
]
27+
```js
28+
module.exports = {
29+
extends: [
30+
'@npm-update-package/eslint-config-typescript'
31+
// add other rulesets here if needed
32+
],
33+
rules: {
34+
// override/add rules settings here if needed
35+
}
6636
}
6737
```

index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ const unicornRules = {
55
'unicorn/no-useless-undefined': 'off',
66
'unicorn/numeric-separators-style': 'off',
77
'unicorn/prefer-module': 'off',
8-
// TODO [engine:node@>=16]: Enable this when the minimum supported Node.js version becomes v16 or later.
9-
'unicorn/prefer-node-protocol': 'off',
108
'unicorn/prefer-query-selector': 'off',
119
'unicorn/prefer-spread': 'off',
1210
// TODO [engine:node@>=18]: Enable this when the minimum supported Node.js version becomes v18 or later.

0 commit comments

Comments
 (0)