@mikey-pro/eslint-config 4.8.9 → 4.9.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.
Files changed (2) hide show
  1. package/index.js +31 -26
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -87,7 +87,7 @@ module.exports = {
87
87
  files: ['*.toml'],
88
88
  parser: 'toml-eslint-parser',
89
89
  rules: {
90
- 'prettier/prettier': 1,
90
+ 'prettier/prettier': 0,
91
91
  },
92
92
  },
93
93
  {
@@ -119,15 +119,15 @@ module.exports = {
119
119
  parser: '@html-eslint/parser',
120
120
  plugins: ['@html-eslint'],
121
121
  rules: {
122
- '@html-eslint/indent': 1,
123
- '@html-eslint/no-extra-spacing-attrs': 1,
124
- '@html-eslint/require-closing-tags': 1,
122
+ '@html-eslint/indent': 0,
123
+ '@html-eslint/no-extra-spacing-attrs': 0,
124
+ '@html-eslint/require-closing-tags': 0,
125
125
  'disable-autofix/@html-eslint/require-closing-tags': [
126
126
  1,
127
127
  { selfClosing: 'always' },
128
128
  ],
129
129
  'prettier/prettier': [1, { parser: 'html' }],
130
- 'spaced-comment': 1,
130
+ 'spaced-comment': 0,
131
131
  },
132
132
  },
133
133
  {
@@ -244,12 +244,12 @@ module.exports = {
244
244
  root: true,
245
245
  rules: {
246
246
  camelcase: 1,
247
- 'class-methods-use-this': 1,
247
+ 'class-methods-use-this': 0,
248
248
  'constructor-super': 1,
249
249
  'dot-notation': 1,
250
- 'func-names': 1,
250
+ 'func-names': 0,
251
251
  'import/extensions': [1, 'never', { ignorePackages: true }],
252
- 'import/no-commonjs': 1,
252
+ 'import/no-commonjs': 0,
253
253
  'import/no-unresolved': [
254
254
  1,
255
255
  { amd: true, commonjs: true, ignore: ['^node:'] },
@@ -267,15 +267,16 @@ module.exports = {
267
267
  'keyword-spacing': 1,
268
268
  'no-caller': 1,
269
269
  'no-confusing-arrow': 1,
270
- 'no-console': 1,
270
+ 'no-console': 0,
271
271
  'no-const-assign': 1,
272
272
  'no-delete-var': 1,
273
273
  'no-dupe-class-members': 1,
274
274
  'no-dupe-keys': 1,
275
275
  'no-duplicate-imports': 1,
276
276
  'no-else-return': 1,
277
- 'no-empty': 1,
278
- 'no-empty-pattern': 1,
277
+ 'no-empty': 0,
278
+ 'no-empty-pattern': 0,
279
+ 'no-extra-parens': 0,
279
280
  'no-extra-bind': 1,
280
281
  'no-extra-semi': 1,
281
282
  'no-floating-decimal': 1,
@@ -284,7 +285,7 @@ module.exports = {
284
285
  'no-mixed-spaces-and-tabs': [1, 'smart-tabs'],
285
286
  'no-multi-str': 1,
286
287
  'no-new-wrappers': 1,
287
- 'no-process-exit': 1,
288
+ 'no-process-exit': 0,
288
289
  'no-proto': 1,
289
290
  'no-redeclare': 1,
290
291
  'no-restricted-syntax': [
@@ -305,12 +306,12 @@ module.exports = {
305
306
  selector: 'WithStatement',
306
307
  },
307
308
  ],
308
- 'no-shadow': 1,
309
+ 'no-shadow': 0,
309
310
  'no-shadow-restricted-names': 1,
310
311
  'no-spaced-func': 1,
311
312
  'no-this-before-super': 1,
312
313
  'no-undef-init': 1,
313
- 'no-underscore-dangle': 1,
314
+ 'no-underscore-dangle': 0,
314
315
  'no-unneeded-ternary': 1,
315
316
  'no-unused-vars': [
316
317
  1,
@@ -328,7 +329,7 @@ module.exports = {
328
329
  'no-useless-return': 1,
329
330
  'no-var': 1,
330
331
  'no-with': 1,
331
- 'object-curly-spacing': [1, 'always'],
332
+ 'object-curly-spacing': [0, 'always'],
332
333
  'object-shorthand': 1,
333
334
  'prefer-arrow-callback': 1,
334
335
  'prefer-destructuring': [
@@ -344,7 +345,7 @@ module.exports = {
344
345
  'prettier/prettier': [1, { parser: 'babel' }],
345
346
  'quote-props': [1, 'as-needed'],
346
347
  quotes: [
347
- 1,
348
+ 0,
348
349
  'single',
349
350
  {
350
351
  allowTemplateLiterals: true,
@@ -355,7 +356,10 @@ module.exports = {
355
356
  'react-hooks/exhaustive-deps': 1,
356
357
  'react-hooks/rules-of-hooks': 1,
357
358
  'react/display-name': [1, { ignoreTranspilerName: false }],
358
- 'react/function-component-definition': 1,
359
+ 'react/function-component-definition': [
360
+ 0,
361
+ { namedComponents: 'arrow-function' },
362
+ ],
359
363
  'react/jsx-curly-spacing': 1,
360
364
  'react/jsx-key': [1, { checkFragmentShorthand: true }],
361
365
  'react/jsx-no-bind': [
@@ -380,9 +384,10 @@ module.exports = {
380
384
  'react/no-find-dom-node': 1,
381
385
  'react/no-is-mounted': 1,
382
386
  'react/no-string-refs': 1,
387
+ 'filenames/match-regex': 0,
383
388
  'react/prefer-es6-class': 1,
384
389
  'react/prefer-stateless-function': 1,
385
- 'react/react-in-jsx-scope': 1,
390
+ 'react/react-in-jsx-scope': 0,
386
391
  'react/require-render-return': 1,
387
392
  'react/self-closing-comp': [
388
393
  'error',
@@ -391,16 +396,17 @@ module.exports = {
391
396
  html: false,
392
397
  },
393
398
  ],
394
- 'react/state-in-constructor': 1,
395
- 'require-atomic-updates': 1,
396
- 'rest-spread-spacing': 1,
397
- semi: 1,
399
+ 'react/state-in-constructor': 0,
400
+ 'require-atomic-updates': 0,
401
+ 'sort-imports': 0,
402
+ 'rest-spread-spacing': 0,
403
+ semi: 0,
398
404
  'sort-vars': 1,
399
405
  'space-before-function-paren': [
400
- 1,
406
+ 0,
401
407
  { anonymous: 'always', asyncArrow: 'always', named: 'never' },
402
408
  ],
403
- 'space-in-parens': [1, 'never'],
409
+ 'space-in-parens': [0, 'never'],
404
410
  'spaced-comment': [
405
411
  1,
406
412
  'always',
@@ -429,13 +435,12 @@ module.exports = {
429
435
  },
430
436
  ],
431
437
  'unicorn/import-index': [1, { ignoreImports: true }],
432
- 'valid-jsdoc': 1,
438
+ 'valid-jsdoc': 0,
433
439
  },
434
440
  settings: {
435
441
  'json/sort-package-json': 'pro',
436
442
  polyfills: ['Promise'],
437
443
  react: {
438
- pragma: 'h',
439
444
  version: 'detect',
440
445
  },
441
446
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "4.8.9",
3
+ "version": "4.9.0",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.js",
6
6
  "dependencies": {
@@ -11,10 +11,10 @@
11
11
  "@babel/preset-env": "^7.16",
12
12
  "@html-eslint/eslint-plugin": "^0.13.1",
13
13
  "@html-eslint/parser": "^0.13.1",
14
- "@typescript-eslint/eslint-plugin": "^5.13.0",
15
- "@typescript-eslint/parser": "^5.13.0",
14
+ "@typescript-eslint/eslint-plugin": "^5.14.0",
15
+ "@typescript-eslint/parser": "^5.14.0",
16
16
  "@vue/babel-plugin-jsx": "^1.1.1",
17
- "eslint-config-prettier": "^8.4",
17
+ "eslint-config-prettier": "^8.5",
18
18
  "eslint-config-react-app": "^7.0.0",
19
19
  "eslint-import-resolver-typescript": "^2.5.0",
20
20
  "eslint-plugin-compat": "^4.0",