@robinblomberg/eslint-config-robinblomberg 0.7.6 → 0.7.7
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/index.js +5 -12
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3,8 +3,6 @@ const error = 'error';
|
|
|
3
3
|
const off = 'off';
|
|
4
4
|
const warn = IS_DEVELOPMENT ? 'warn' : 'error';
|
|
5
5
|
|
|
6
|
-
const camelCasePrefixes = ['', 'I', 'T'];
|
|
7
|
-
|
|
8
6
|
// eslint-disable-next-line import/no-commonjs
|
|
9
7
|
module.exports = {
|
|
10
8
|
env: {
|
|
@@ -197,14 +195,12 @@ module.exports = {
|
|
|
197
195
|
'@typescript-eslint/naming-convention': [
|
|
198
196
|
warn,
|
|
199
197
|
{
|
|
200
|
-
format: ['
|
|
198
|
+
format: ['camelCase'],
|
|
201
199
|
leadingUnderscore: 'allow',
|
|
202
|
-
prefix: camelCasePrefixes,
|
|
203
200
|
selector: 'default',
|
|
204
201
|
},
|
|
205
202
|
{
|
|
206
|
-
format: ['
|
|
207
|
-
prefix: camelCasePrefixes,
|
|
203
|
+
format: ['PascalCase'],
|
|
208
204
|
selector: [
|
|
209
205
|
'class',
|
|
210
206
|
'enum',
|
|
@@ -214,19 +210,16 @@ module.exports = {
|
|
|
214
210
|
],
|
|
215
211
|
},
|
|
216
212
|
{
|
|
217
|
-
format: ['
|
|
218
|
-
prefix: camelCasePrefixes,
|
|
213
|
+
format: ['camelCase', 'PascalCase'],
|
|
219
214
|
selector: ['function'],
|
|
220
215
|
},
|
|
221
216
|
{
|
|
222
|
-
format: ['
|
|
223
|
-
prefix: camelCasePrefixes,
|
|
217
|
+
format: ['camelCase', 'UPPER_CASE'],
|
|
224
218
|
selector: ['objectLiteralMethod', 'objectLiteralProperty'],
|
|
225
219
|
},
|
|
226
220
|
{
|
|
227
|
-
format: ['
|
|
221
|
+
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
|
|
228
222
|
leadingUnderscore: 'allow',
|
|
229
|
-
prefix: camelCasePrefixes,
|
|
230
223
|
selector: ['variable'],
|
|
231
224
|
},
|
|
232
225
|
{
|