@innovixx/eslint-config 1.2.6 → 1.3.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.
@@ -1,6 +1,7 @@
1
1
  module.exports = {
2
2
  plugins: [
3
3
  'node',
4
+ 'sort-export-all',
4
5
  ],
5
6
  env: {
6
7
  node: true,
@@ -352,5 +352,14 @@ module.exports = {
352
352
 
353
353
  // require or disallow Yoda conditions
354
354
  yoda: 'error',
355
+
356
+ // require object keys to be sorted
357
+ // https://eslint.org/docs/rules/sort-keys
358
+ 'sort-keys': ['error'],
359
+
360
+
361
+ // Requires exports * to appear in alphabetical order.
362
+ // https://github.com/nirtamir2/eslint-plugin-sort-export-all
363
+ 'sort-export-all/sort-export-all': ['error'],
355
364
  },
356
365
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovixx/eslint-config",
3
- "version": "1.2.6",
3
+ "version": "1.3.0",
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",
@@ -26,7 +26,8 @@
26
26
  "eslint-plugin-jsx-a11y": "^6.2.3",
27
27
  "eslint-plugin-node": "^11.0.0",
28
28
  "eslint-plugin-react": "^7.20.0",
29
- "eslint-plugin-react-hooks": "^4.0.0"
29
+ "eslint-plugin-react-hooks": "^4.0.0",
30
+ "eslint-plugin-sort-export-all": "^1.4.1"
30
31
  },
31
32
  "peerDependenciesMeta": {
32
33
  "@typescript-eslint/eslint-plugin": {
@@ -46,6 +47,9 @@
46
47
  },
47
48
  "eslint-plugin-react-hooks": {
48
49
  "optional": true
50
+ },
51
+ "eslint-plugin-sort-export-all": {
52
+ "optional": true
49
53
  }
50
54
  },
51
55
  "dependencies": {
@@ -63,6 +67,7 @@
63
67
  "eslint-plugin-node": "^11.1.0",
64
68
  "eslint-plugin-react": "7.20.2",
65
69
  "eslint-plugin-react-hooks": "^4.2.0",
70
+ "eslint-plugin-sort-export-all": "^1.4.1",
66
71
  "husky": "^4.2.1",
67
72
  "lint-staged": "^10.0.6"
68
73
  },