@mikey-pro/eslint-config 4.8.7 → 4.8.10

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 -4
  2. package/package.json +4 -5
package/index.js CHANGED
@@ -240,7 +240,6 @@ module.exports = {
240
240
  'unicorn',
241
241
  'sonarjs',
242
242
  'only-warn',
243
- 'sort-keys-fix',
244
243
  ],
245
244
  root: true,
246
245
  rules: {
@@ -356,7 +355,10 @@ module.exports = {
356
355
  'react-hooks/exhaustive-deps': 1,
357
356
  'react-hooks/rules-of-hooks': 1,
358
357
  'react/display-name': [1, { ignoreTranspilerName: false }],
359
- 'react/function-component-definition': 1,
358
+ 'react/function-component-definition': [
359
+ 1,
360
+ { namedComponents: 'arrow-function' },
361
+ ],
360
362
  'react/jsx-curly-spacing': 1,
361
363
  'react/jsx-key': [1, { checkFragmentShorthand: true }],
362
364
  'react/jsx-no-bind': [
@@ -396,9 +398,11 @@ module.exports = {
396
398
  'require-atomic-updates': 1,
397
399
  'rest-spread-spacing': 1,
398
400
  semi: 1,
399
- 'sort-keys-fix/sort-keys-fix': 1,
400
401
  'sort-vars': 1,
401
- 'space-before-function-paren': [1, 'always'],
402
+ 'space-before-function-paren': [
403
+ 1,
404
+ { anonymous: 'always', asyncArrow: 'always', named: 'never' },
405
+ ],
402
406
  'space-in-parens': [1, 'never'],
403
407
  'spaced-comment': [
404
408
  1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "4.8.7",
3
+ "version": "4.8.10",
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",
@@ -28,7 +28,6 @@
28
28
  "eslint-plugin-prettier": "^4.0",
29
29
  "eslint-plugin-promise": "^6.0.0",
30
30
  "eslint-plugin-sonarjs": "^0.12.0",
31
- "eslint-plugin-sort-keys-fix": "^1.1.2",
32
31
  "eslint-plugin-svelte3": "^3.4.1",
33
32
  "eslint-plugin-toml": "^0.3.0",
34
33
  "eslint-plugin-unicorn": "^41.0.0",