@mikey-pro/eslint-config 4.8.8 → 4.8.11

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 +8 -3
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -355,7 +355,10 @@ module.exports = {
355
355
  'react-hooks/exhaustive-deps': 1,
356
356
  'react-hooks/rules-of-hooks': 1,
357
357
  'react/display-name': [1, { ignoreTranspilerName: false }],
358
- 'react/function-component-definition': 1,
358
+ 'react/function-component-definition': [
359
+ 1,
360
+ { namedComponents: 'arrow-function' },
361
+ ],
359
362
  'react/jsx-curly-spacing': 1,
360
363
  'react/jsx-key': [1, { checkFragmentShorthand: true }],
361
364
  'react/jsx-no-bind': [
@@ -396,7 +399,10 @@ module.exports = {
396
399
  'rest-spread-spacing': 1,
397
400
  semi: 1,
398
401
  'sort-vars': 1,
399
- 'space-before-function-paren': [1, 'always'],
402
+ 'space-before-function-paren': [
403
+ 1,
404
+ { anonymous: 'always', asyncArrow: 'always', named: 'never' },
405
+ ],
400
406
  'space-in-parens': [1, 'never'],
401
407
  'spaced-comment': [
402
408
  1,
@@ -432,7 +438,6 @@ module.exports = {
432
438
  'json/sort-package-json': 'pro',
433
439
  polyfills: ['Promise'],
434
440
  react: {
435
- pragma: 'h',
436
441
  version: 'detect',
437
442
  },
438
443
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "4.8.8",
3
+ "version": "4.8.11",
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",