@ololoepepe/eslint-config 0.0.6 → 0.0.8

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/package.json +5 -5
  2. package/src/index.js +9 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ololoepepe/eslint-config",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "ESLint config",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -24,14 +24,14 @@
24
24
  "url": "https://gitlab.void-walkers.com/libs/eslint-config/issues"
25
25
  },
26
26
  "homepage": "https://gitlab.void-walkers.com/libs/eslint-config#README",
27
- "dependencies": {},
28
27
  "devDependencies": {
29
- "eslint": "^8.37.0",
30
28
  "eslint-config-xo": "^0.43.1"
31
29
  },
32
- "peerDependencies": {
30
+ "dependencies": {
33
31
  "@babel/core": "7.21.4",
34
32
  "@babel/eslint-parser": "^7.21.3",
35
- "eslint": ">= 8.37.0"
33
+ "eslint": ">= 8.37.0",
34
+ "eslint-plugin-import": "^2.27.5",
35
+ "eslint-plugin-sort-keys-shorthand": "^2.2.0"
36
36
  }
37
37
  }
package/src/index.js CHANGED
@@ -12,7 +12,7 @@ module.exports = {
12
12
  requireConfigFile: false,
13
13
  sourceType: 'module'
14
14
  },
15
- plugins: ['import'],
15
+ plugins: ['import', 'sort-keys-shorthand'],
16
16
  rules: {
17
17
  'accessor-pairs': ['warn', {
18
18
  enforceForClassMembers: true,
@@ -612,6 +612,13 @@ module.exports = {
612
612
  }
613
613
  }],
614
614
  'import/prefer-default-export': 'off',
615
- 'import/unambiguous': 'off' // TODO: Reconsider
615
+ 'import/unambiguous': 'off', // TODO: Reconsider
616
+ // Plugin: sort-keys-shorthand
617
+ 'sort-keys-shorthand/sort-keys-shorthand': ['error', 'asc', {
618
+ caseSensitive: false,
619
+ minKeys: 2,
620
+ natural: true,
621
+ shorthand: 'first'
622
+ }]
616
623
  }
617
624
  };