@tinkoff/eslint-config 1.36.1 → 1.37.0

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 CHANGED
@@ -3,6 +3,23 @@
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.37.0](https://github.com/TinkoffCreditSystems/linters/compare/v1.36.2...v1.37.0) (2022-10-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * **eslint-config:** allow break convention for quoted names ([#207](https://github.com/TinkoffCreditSystems/linters/issues/207)) ([ffe15c4](https://github.com/TinkoffCreditSystems/linters/commit/ffe15c494bc08d401344ed3cab4fc9d6ef6d24a7))
12
+
13
+
14
+
15
+ ### [1.36.2](https://github.com/TinkoffCreditSystems/linters/compare/v1.36.1...v1.36.2) (2022-10-13)
16
+
17
+ **Note:** Version bump only for package @tinkoff/eslint-config
18
+
19
+
20
+
21
+
22
+
6
23
  ### [1.36.1](https://github.com/TinkoffCreditSystems/linters/compare/v1.36.0...v1.36.1) (2022-06-17)
7
24
 
8
25
  **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
@@ -101,6 +101,20 @@ module.exports = {
101
101
  selector: 'property',
102
102
  format: ['camelCase', 'PascalCase'],
103
103
  },
104
+ {
105
+ selector: [
106
+ 'classProperty',
107
+ 'objectLiteralProperty',
108
+ 'typeProperty',
109
+ 'classMethod',
110
+ 'objectLiteralMethod',
111
+ 'typeMethod',
112
+ 'accessor',
113
+ 'enumMember',
114
+ ],
115
+ format: null,
116
+ modifiers: ['requiresQuotes'],
117
+ },
104
118
  ],
105
119
  '@typescript-eslint/ban-ts-comment': 'warn',
106
120
  '@typescript-eslint/no-empty-function': 'warn',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinkoff/eslint-config",
3
- "version": "1.36.1",
3
+ "version": "1.37.0",
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": "5a0e1f6633d3c005491b1a496f866bd23f99511c"
42
+ "gitHead": "3a324b112d6ae0117a7fb4b5f2e6bc68ec409ac1"
43
43
  }