@innovixx/eslint-config 1.3.0 → 1.3.2

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.
@@ -2,6 +2,7 @@ module.exports = {
2
2
  plugins: [
3
3
  'node',
4
4
  'sort-export-all',
5
+ 'sort-keys-fix',
5
6
  ],
6
7
  env: {
7
8
  node: true,
@@ -355,11 +355,12 @@ module.exports = {
355
355
 
356
356
  // require object keys to be sorted
357
357
  // https://eslint.org/docs/rules/sort-keys
358
- 'sort-keys': ['error'],
358
+ // https://www.npmjs.com/package/eslint-plugin-sort-keys-fix
359
+ 'sort-keys-fix/sort-keys-fix': 'error',
359
360
 
360
361
 
361
362
  // Requires exports * to appear in alphabetical order.
362
363
  // https://github.com/nirtamir2/eslint-plugin-sort-export-all
363
- 'sort-export-all/sort-export-all': ['error'],
364
+ 'sort-export-all/sort-export-all': 'error',
364
365
  },
365
366
  };
@@ -369,9 +369,7 @@ module.exports = {
369
369
 
370
370
  // Enforce a defaultProps definition for every prop that is not a required prop
371
371
  // https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/require-default-props.md
372
- 'react/require-default-props': ['error', {
373
- forbidDefaultForRequired: true,
374
- }],
372
+ 'react/require-default-props': 'off',
375
373
 
376
374
  // Forbids using non-exported propTypes
377
375
  // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-foreign-prop-types.md
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovixx/eslint-config",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "main": "configs/index.js",
5
5
  "repository": "git@github.com:Innovixx-Development/eslint-config.git",
6
6
  "description": "Opinionated ESLint config for JavaScript developers",
@@ -14,7 +14,6 @@
14
14
  ],
15
15
  "scripts": {
16
16
  "build": "yarn run lint",
17
- "lint": "eslint . --ignore-pattern demo/",
18
17
  "demo": "eslint demo/"
19
18
  },
20
19
  "peerDependencies": {
@@ -27,7 +26,8 @@
27
26
  "eslint-plugin-node": "^11.0.0",
28
27
  "eslint-plugin-react": "^7.20.0",
29
28
  "eslint-plugin-react-hooks": "^4.0.0",
30
- "eslint-plugin-sort-export-all": "^1.4.1"
29
+ "eslint-plugin-sort-export-all": "^1.4.1",
30
+ "eslint-plugin-sort-keys-fix": "^1.1.2"
31
31
  },
32
32
  "peerDependenciesMeta": {
33
33
  "@typescript-eslint/eslint-plugin": {
@@ -50,6 +50,9 @@
50
50
  },
51
51
  "eslint-plugin-sort-export-all": {
52
52
  "optional": true
53
+ },
54
+ "eslint-plugin-sort-keys-fix": {
55
+ "optional": true
53
56
  }
54
57
  },
55
58
  "dependencies": {
@@ -68,15 +71,6 @@
68
71
  "eslint-plugin-react": "7.20.2",
69
72
  "eslint-plugin-react-hooks": "^4.2.0",
70
73
  "eslint-plugin-sort-export-all": "^1.4.1",
71
- "husky": "^4.2.1",
72
- "lint-staged": "^10.0.6"
73
- },
74
- "lint-staged": {
75
- "*.js": "yarn lint"
76
- },
77
- "husky": {
78
- "hooks": {
79
- "pre-commit": "lint-staged"
80
- }
74
+ "eslint-plugin-sort-keys-fix": "^1.1.2"
81
75
  }
82
76
  }