@tinkoff/eslint-config 1.36.1 → 1.36.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +58 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
### [1.36.2](https://github.com/TinkoffCreditSystems/linters/compare/v1.36.1...v1.36.2) (2022-10-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @tinkoff/eslint-config
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
### [1.36.1](https://github.com/TinkoffCreditSystems/linters/compare/v1.36.0...v1.36.1) (2022-06-17)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @tinkoff/eslint-config
|
package/README.md
CHANGED
|
@@ -74,3 +74,61 @@ configurations
|
|
|
74
74
|
|
|
75
75
|
Try to remove `eslint`, `prettier`, and `@tinkoff/eslint-config` internal dependencies from your project `package.json`,
|
|
76
76
|
then reinstall dependencies.
|
|
77
|
+
|
|
78
|
+
## Usage tips for [Nx monorepo](https://nrwl.io/)
|
|
79
|
+
|
|
80
|
+
### Connect to nx workspace
|
|
81
|
+
|
|
82
|
+
#### In root config
|
|
83
|
+
|
|
84
|
+
Add `"@tinkoff/eslint-config/app"` to extends section on config.
|
|
85
|
+
Also, if you monorepo contains only buildable/publishable libs without apps, use `"@tinkoff/eslint-config/lib"` instead of `"@tinkoff/eslint-config/app"`
|
|
86
|
+
|
|
87
|
+
```json
|
|
88
|
+
{
|
|
89
|
+
|
|
90
|
+
"root": true,
|
|
91
|
+
"ignorePatterns": ["**/*"],
|
|
92
|
+
"extends": ["@tinkoff/eslint-config/app"]
|
|
93
|
+
...optionally some other configs
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
#### In apps and non-buildable/non-publishable libs
|
|
98
|
+
|
|
99
|
+
In app/lib eslint configuration just extends root config
|
|
100
|
+
|
|
101
|
+
```json
|
|
102
|
+
{
|
|
103
|
+
"extends": ["../../.eslintrc.json"],
|
|
104
|
+
"ignorePatterns": ["!**/*"]
|
|
105
|
+
...optionally some other configs
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
#### Only in buildable/publishable libs (if repo contain apps or non-buildable/non-publishable libs)
|
|
110
|
+
|
|
111
|
+
Add `"@tinkoff/eslint-config/lib"` in extends section after root config
|
|
112
|
+
|
|
113
|
+
```json
|
|
114
|
+
{
|
|
115
|
+
"extends": ["../../.eslintrc.json", "@tinkoff/eslint-config/lib"],
|
|
116
|
+
"ignorePatterns": ["!**/*"]
|
|
117
|
+
...optionally some other configs
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Non-JSON configs usage
|
|
122
|
+
|
|
123
|
+
Nx means usage `.eslintrc.json` for configure ESLint. Just provide it! In `.eslintrc.json` add extension of actual root config file:
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
{
|
|
127
|
+
"extends": ["./.eslintrc.js"]
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
After that:
|
|
132
|
+
|
|
133
|
+
- Nx see what they need and don't re-initialize lint infrastructure
|
|
134
|
+
- You can use [better config formats](https://eslint.org/docs/latest/user-guide/configuring/configuration-files#configuration-file-formats) and nx generators
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinkoff/eslint-config",
|
|
3
|
-
"version": "1.36.
|
|
3
|
+
"version": "1.36.2",
|
|
4
4
|
"description": "Tinkoff ESLint configs to rule them all",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "ce57996a56ce1ac184a8ae3d1a438100e57608c6"
|
|
43
43
|
}
|