@robinblomberg/eslint-config-robinblomberg 0.8.0 → 0.8.4
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 +21 -18
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -207,31 +207,27 @@ module.exports = {
|
|
|
207
207
|
selector: 'default',
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
format: ['PascalCase'],
|
|
211
|
-
selector: [
|
|
212
|
-
'class',
|
|
213
|
-
'enum',
|
|
214
|
-
'interface',
|
|
215
|
-
'typeAlias',
|
|
216
|
-
'typeParameter',
|
|
217
|
-
],
|
|
210
|
+
format: ['camelCase', 'snake_case', 'PascalCase', 'UPPER_CASE'],
|
|
211
|
+
selector: ['objectLiteralProperty'],
|
|
218
212
|
},
|
|
219
213
|
{
|
|
220
214
|
format: ['camelCase', 'PascalCase'],
|
|
221
215
|
selector: ['function'],
|
|
222
216
|
},
|
|
223
|
-
{
|
|
224
|
-
format: ['camelCase', 'snake_case', 'UPPER_CASE'],
|
|
225
|
-
selector: [
|
|
226
|
-
'objectLiteralMethod',
|
|
227
|
-
'objectLiteralProperty',
|
|
228
|
-
'typeMethod',
|
|
229
|
-
],
|
|
230
|
-
},
|
|
231
217
|
{
|
|
232
218
|
format: ['camelCase', 'UPPER_CASE'],
|
|
233
219
|
leadingUnderscore: 'allow',
|
|
234
|
-
selector: ['variable'],
|
|
220
|
+
selector: ['objectLiteralMethod', 'typeMethod', 'variable'],
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
format: ['PascalCase'],
|
|
224
|
+
selector: [
|
|
225
|
+
'class',
|
|
226
|
+
'enum',
|
|
227
|
+
'interface',
|
|
228
|
+
'typeAlias',
|
|
229
|
+
'typeParameter',
|
|
230
|
+
],
|
|
235
231
|
},
|
|
236
232
|
{
|
|
237
233
|
format: ['UPPER_CASE'],
|
|
@@ -741,6 +737,13 @@ module.exports = {
|
|
|
741
737
|
'jsdoc/require-jsdoc': off,
|
|
742
738
|
},
|
|
743
739
|
},
|
|
740
|
+
{
|
|
741
|
+
files: ['**/*.config.js', '**/*.config.ts'],
|
|
742
|
+
rules: {
|
|
743
|
+
'@typescript-eslint/no-magic-numbers': off,
|
|
744
|
+
'no-magic-numbers': off,
|
|
745
|
+
},
|
|
746
|
+
},
|
|
744
747
|
{
|
|
745
748
|
files: [
|
|
746
749
|
'**/*.stories.js',
|
|
@@ -1033,7 +1036,7 @@ module.exports = {
|
|
|
1033
1036
|
'jsdoc/require-property-description': warn,
|
|
1034
1037
|
'jsdoc/require-property-name': warn,
|
|
1035
1038
|
'jsdoc/require-property-type': warn,
|
|
1036
|
-
'jsdoc/require-returns':
|
|
1039
|
+
'jsdoc/require-returns': off,
|
|
1037
1040
|
'jsdoc/require-returns-check': warn,
|
|
1038
1041
|
'jsdoc/require-returns-description': off,
|
|
1039
1042
|
'jsdoc/require-returns-type': warn,
|