@mikey-pro/eslint-config 4.2.0 → 4.3.3

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.
Files changed (2) hide show
  1. package/index.js +85 -85
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -21,7 +21,7 @@ module.exports = {
21
21
  'import/no-unresolved': 0,
22
22
  '@typescript-eslint/indent': 0,
23
23
  '@typescript-eslint/naming-convention': 0,
24
- 'prettier/prettier': [2, { parser: 'typescript' }],
24
+ 'prettier/prettier': [1, { parser: 'typescript' }],
25
25
  },
26
26
  },
27
27
  {
@@ -39,7 +39,7 @@ module.exports = {
39
39
  '@typescript-eslint/naming-convention': 0,
40
40
  '@typescript-eslint/indent': 0,
41
41
  'react/state-in-constructor': 0,
42
- 'react/no-deprecated': 2,
42
+ 'react/no-deprecated': 1,
43
43
  'react/react-in-jsx-scope': 0,
44
44
  'react/display-name': [1, { ignoreTranspilerName: false }],
45
45
  'react/jsx-no-bind': [
@@ -50,47 +50,47 @@ module.exports = {
50
50
  allowArrowFunctions: true,
51
51
  },
52
52
  ],
53
- 'react/no-string-refs': 2,
54
- 'react/no-find-dom-node': 2,
55
- 'react/jsx-no-comment-textnodes': 2,
56
- 'react/jsx-curly-spacing': 2,
57
- 'react/jsx-no-undef': 2,
58
- 'react/jsx-uses-react': 2,
59
- 'react/jsx-uses-vars': 2,
53
+ 'react/no-string-refs': 1,
54
+ 'react/no-find-dom-node': 1,
55
+ 'react/jsx-no-comment-textnodes': 1,
56
+ 'react/jsx-curly-spacing': 1,
57
+ 'react/jsx-no-undef': 1,
58
+ 'react/jsx-uses-react': 1,
59
+ 'react/jsx-uses-vars': 1,
60
60
  'react/function-component-definition': 0,
61
- 'react/jsx-no-duplicate-props': 2,
62
- 'react/jsx-no-target-blank': 2,
63
- 'react/jsx-tag-spacing': [2, { beforeSelfClosing: 'always' }],
64
- 'react/jsx-key': [2, { checkFragmentShorthand: true }],
65
- 'react/self-closing-comp': 2,
66
- 'react/prefer-es6-class': 2,
61
+ 'react/jsx-no-duplicate-props': 1,
62
+ 'react/jsx-no-target-blank': 1,
63
+ 'react/jsx-tag-spacing': [1, { beforeSelfClosing: 'always' }],
64
+ 'react/jsx-key': [1, { checkFragmentShorthand: true }],
65
+ 'react/self-closing-comp': 1,
66
+ 'react/prefer-es6-class': 1,
67
67
  'react/prefer-stateless-function': 1,
68
- 'react/require-render-return': 2,
68
+ 'react/require-render-return': 1,
69
69
  'react/no-danger': 1,
70
- 'react/no-did-mount-set-state': 2,
71
- 'react/no-did-update-set-state': 2,
72
- 'react/no-is-mounted': 2,
73
- 'react-hooks/rules-of-hooks': 2,
70
+ 'react/no-did-mount-set-state': 1,
71
+ 'react/no-did-update-set-state': 1,
72
+ 'react/no-is-mounted': 1,
73
+ 'react-hooks/rules-of-hooks': 1,
74
74
  'react-hooks/exhaustive-deps': 1,
75
- 'prettier/prettier': [2, { parser: 'typescript' }],
75
+ 'prettier/prettier': [1, { parser: 'typescript' }],
76
76
  },
77
77
  },
78
78
  {
79
79
  files: ['*.css'],
80
80
  rules: {
81
- 'prettier/prettier': [2, { parser: 'css' }],
81
+ 'prettier/prettier': [1, { parser: 'css' }],
82
82
  },
83
83
  },
84
84
  {
85
85
  files: ['*.scss'],
86
86
  rules: {
87
- 'prettier/prettier': [2, { parser: 'scss' }],
87
+ 'prettier/prettier': [1, { parser: 'scss' }],
88
88
  },
89
89
  },
90
90
  {
91
91
  files: ['*.less'],
92
92
  rules: {
93
- 'prettier/prettier': [2, { parser: 'less' }],
93
+ 'prettier/prettier': [1, { parser: 'less' }],
94
94
  },
95
95
  },
96
96
  {
@@ -98,7 +98,7 @@ module.exports = {
98
98
  plugins: ['yaml'],
99
99
  extends: ['plugin:yaml/recommended'],
100
100
  rules: {
101
- 'prettier/prettier': [2, { parser: 'yaml' }],
101
+ 'prettier/prettier': [1, { parser: 'yaml' }],
102
102
  },
103
103
  },
104
104
  {
@@ -132,7 +132,7 @@ module.exports = {
132
132
  },
133
133
  },
134
134
  rules: {
135
- 'react/no-deprecated': 2,
135
+ 'react/no-deprecated': 1,
136
136
  'react/react-in-jsx-scope': 0,
137
137
  'react/display-name': [1, { ignoreTranspilerName: false }],
138
138
  'react/jsx-no-bind': [
@@ -143,28 +143,28 @@ module.exports = {
143
143
  allowArrowFunctions: true,
144
144
  },
145
145
  ],
146
- 'react/no-string-refs': 2,
147
- 'react/no-find-dom-node': 2,
148
- 'react/jsx-no-comment-textnodes': 2,
149
- 'react/jsx-curly-spacing': 2,
150
- 'react/jsx-no-undef': 2,
151
- 'react/jsx-uses-react': 2,
152
- 'react/jsx-uses-vars': 2,
146
+ 'react/no-string-refs': 1,
147
+ 'react/no-find-dom-node': 1,
148
+ 'react/jsx-no-comment-textnodes': 1,
149
+ 'react/jsx-curly-spacing': 1,
150
+ 'react/jsx-no-undef': 1,
151
+ 'react/jsx-uses-react': 1,
152
+ 'react/jsx-uses-vars': 1,
153
153
  'react/function-component-definition': 0,
154
154
  'react/state-in-constructor': 0,
155
- 'react/jsx-no-duplicate-props': 2,
156
- 'react/jsx-no-target-blank': 2,
157
- 'react/jsx-tag-spacing': [2, { beforeSelfClosing: 'always' }],
158
- 'react/jsx-key': [2, { checkFragmentShorthand: true }],
159
- 'react/self-closing-comp': 2,
160
- 'react/prefer-es6-class': 2,
155
+ 'react/jsx-no-duplicate-props': 1,
156
+ 'react/jsx-no-target-blank': 1,
157
+ 'react/jsx-tag-spacing': [1, { beforeSelfClosing: 'always' }],
158
+ 'react/jsx-key': [1, { checkFragmentShorthand: true }],
159
+ 'react/self-closing-comp': 1,
160
+ 'react/prefer-es6-class': 1,
161
161
  'react/prefer-stateless-function': 1,
162
- 'react/require-render-return': 2,
162
+ 'react/require-render-return': 1,
163
163
  'react/no-danger': 1,
164
- 'react/no-did-mount-set-state': 2,
165
- 'react/no-did-update-set-state': 2,
166
- 'react/no-is-mounted': 2,
167
- 'react-hooks/rules-of-hooks': 2,
164
+ 'react/no-did-mount-set-state': 1,
165
+ 'react/no-did-update-set-state': 1,
166
+ 'react/no-is-mounted': 1,
167
+ 'react-hooks/rules-of-hooks': 1,
168
168
  'react-hooks/exhaustive-deps': 1,
169
169
  },
170
170
  },
@@ -174,7 +174,7 @@ module.exports = {
174
174
  extends: ['plugin:md/recommended'],
175
175
  rules: {
176
176
  'md/remark': [
177
- 2,
177
+ 1,
178
178
  {
179
179
  plugins: [
180
180
  'preset-lint-markdown-style-guide',
@@ -182,13 +182,13 @@ module.exports = {
182
182
  ],
183
183
  },
184
184
  ],
185
- 'prettier/prettier': [2, { parser: 'markdown' }],
185
+ 'prettier/prettier': [1, { parser: 'markdown' }],
186
186
  },
187
187
  },
188
188
  {
189
189
  files: ['*.md.json'],
190
190
  rules: {
191
- 'prettier/prettier': [2, { parser: 'json' }],
191
+ 'prettier/prettier': [1, { parser: 'json' }],
192
192
  },
193
193
  },
194
194
  {
@@ -202,10 +202,10 @@ module.exports = {
202
202
  '@html-eslint/no-extra-spacing-attrs': 0,
203
203
  '@html-eslint/require-closing-tags': 0,
204
204
  'disable-autofix/@html-eslint/require-closing-tags': [
205
- 2,
205
+ 1,
206
206
  { selfClosing: 'always' },
207
207
  ],
208
- 'prettier/prettier': [2, { parser: 'html' }],
208
+ 'prettier/prettier': [1, { parser: 'html' }],
209
209
  },
210
210
  },
211
211
  {
@@ -241,7 +241,7 @@ module.exports = {
241
241
  },
242
242
  rules: {
243
243
  'vue/html-self-closing': [
244
- 2,
244
+ 1,
245
245
  {
246
246
  html: {
247
247
  void: 'always',
@@ -253,7 +253,7 @@ module.exports = {
253
253
  },
254
254
  ],
255
255
  'vue/component-tags-order': [
256
- 2,
256
+ 1,
257
257
  {
258
258
  order: [['script', 'template'], 'style'],
259
259
  },
@@ -279,7 +279,7 @@ module.exports = {
279
279
  parser: 'jsonc-eslint-parser',
280
280
  plugins: ['json-format'],
281
281
  rules: {
282
- 'prettier/prettier': [2, { parser: 'json' }],
282
+ 'prettier/prettier': [1, { parser: 'json' }],
283
283
  },
284
284
  },
285
285
  {
@@ -287,7 +287,7 @@ module.exports = {
287
287
  extends: ['plugin:jsonc/all'],
288
288
  parser: 'jsonc-eslint-parser',
289
289
  rules: {
290
- 'prettier/prettier': [2, { parser: 'json5' }],
290
+ 'prettier/prettier': [1, { parser: 'json5' }],
291
291
  },
292
292
  },
293
293
  ],
@@ -300,7 +300,7 @@ module.exports = {
300
300
  },
301
301
  rules: {
302
302
  'no-restricted-syntax': [
303
- 2,
303
+ 1,
304
304
  {
305
305
  selector: 'ForInStatement',
306
306
  message:
@@ -324,11 +324,11 @@ module.exports = {
324
324
  'class-methods-use-this': 0,
325
325
  'no-underscore-dangle': 0,
326
326
  'import/no-unresolved': [
327
- 2,
327
+ 1,
328
328
  { commonjs: true, amd: true, ignore: ['^node:'] },
329
329
  ],
330
330
  'import/order': [
331
- 2,
331
+ 1,
332
332
  {
333
333
  alphabetize: {
334
334
  order: 'asc',
@@ -336,44 +336,44 @@ module.exports = {
336
336
  'newlines-between': 'always',
337
337
  },
338
338
  ],
339
- 'import/extensions': ['error', 'never', { ignorePackages: true }],
339
+ 'import/extensions': [1, 'never', { ignorePackages: true }],
340
340
  'prefer-destructuring': [
341
- 'error',
341
+ 1,
342
342
  {
343
343
  object: true,
344
344
  array: false,
345
345
  },
346
346
  ],
347
- 'keyword-spacing': 2,
347
+ 'keyword-spacing': 1,
348
348
  'require-atomic-updates': 0,
349
349
  'import/no-commonjs': 0,
350
350
  'sort-imports': 0,
351
- 'constructor-super': 2,
352
- 'no-caller': 2,
353
- 'no-const-assign': 2,
354
- 'no-delete-var': 2,
355
- 'no-dupe-class-members': 2,
356
- 'no-dupe-keys': 2,
357
- 'no-duplicate-imports': 2,
351
+ 'constructor-super': 1,
352
+ 'no-caller': 1,
353
+ 'no-const-assign': 1,
354
+ 'no-delete-var': 1,
355
+ 'no-dupe-class-members': 1,
356
+ 'no-dupe-keys': 1,
357
+ 'no-duplicate-imports': 1,
358
358
  'no-else-return': 1,
359
359
  'no-empty-pattern': 0,
360
360
  'no-empty': 0,
361
361
  'no-extra-parens': 0,
362
- 'no-iterator': 2,
363
- 'no-lonely-if': 2,
362
+ 'no-iterator': 1,
363
+ 'no-lonely-if': 1,
364
364
  'no-mixed-spaces-and-tabs': [1, 'smart-tabs'],
365
365
  'no-multi-str': 1,
366
- 'no-new-wrappers': 2,
367
- 'no-proto': 2,
368
- 'no-redeclare': 2,
369
- 'no-shadow-restricted-names': 2,
366
+ 'no-new-wrappers': 1,
367
+ 'no-proto': 1,
368
+ 'no-redeclare': 1,
369
+ 'no-shadow-restricted-names': 1,
370
370
  'no-shadow': 0,
371
- 'no-spaced-func': 2,
372
- 'no-this-before-super': 2,
373
- 'no-undef-init': 2,
374
- 'no-unneeded-ternary': 2,
371
+ 'no-spaced-func': 1,
372
+ 'no-this-before-super': 1,
373
+ 'no-undef-init': 1,
374
+ 'no-unneeded-ternary': 1,
375
375
  'no-unused-vars': [
376
- 2,
376
+ 1,
377
377
  {
378
378
  args: 'after-used',
379
379
  ignoreRestSiblings: true,
@@ -386,9 +386,9 @@ module.exports = {
386
386
  'no-useless-escape': 1,
387
387
  'no-useless-rename': 1,
388
388
  'no-var': 1,
389
- 'no-with': 2,
389
+ 'no-with': 1,
390
390
  semi: 0,
391
- strict: [2, 'never'],
391
+ strict: [1, 'never'],
392
392
  'object-curly-spacing': [0, 'always'],
393
393
  'rest-spread-spacing': 0,
394
394
  'space-before-function-paren': [0, 'always'],
@@ -406,12 +406,12 @@ module.exports = {
406
406
  allowTemplateLiterals: true,
407
407
  },
408
408
  ],
409
- 'quote-props': [2, 'as-needed'],
409
+ 'quote-props': [1, 'as-needed'],
410
410
  radix: 1,
411
- 'unicode-bom': 2,
411
+ 'unicode-bom': 1,
412
412
  'valid-jsdoc': 0,
413
413
  'spaced-comment': [
414
- 2,
414
+ 1,
415
415
  'always',
416
416
  {
417
417
  line: {
@@ -425,10 +425,10 @@ module.exports = {
425
425
  },
426
426
  },
427
427
  ],
428
- 'unicorn/import-index': [2, { ignoreImports: true }],
428
+ 'unicorn/import-index': [1, { ignoreImports: true }],
429
429
  'filenames/match-regex': 0,
430
430
  'unicorn/filename-case': [
431
- 2,
431
+ 1,
432
432
  {
433
433
  cases: {
434
434
  camelCase: true,
@@ -437,7 +437,7 @@ module.exports = {
437
437
  ignore: ['README.md'],
438
438
  },
439
439
  ],
440
- 'prettier/prettier': [2, { parser: 'babel' }],
440
+ 'prettier/prettier': [1, { parser: 'babel' }],
441
441
  },
442
442
  plugins: [
443
443
  'prettier',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "4.2.0",
3
+ "version": "4.3.3",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.js",
6
6
  "dependencies": {