eslint-config-uphold 3.2.0 → 4.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-uphold",
3
- "version": "3.2.0",
3
+ "version": "4.1.0",
4
4
  "description": "Uphold-flavored ESLint config",
5
5
  "keywords": [
6
6
  "config",
@@ -31,20 +31,22 @@
31
31
  "dependencies": {
32
32
  "@babel/core": "^7.16.12",
33
33
  "@babel/eslint-parser": "^7.16.5",
34
- "eslint-config-prettier": "^7.2.0",
35
- "eslint-plugin-mocha": "^5.3.0",
36
- "eslint-plugin-prettier": "^3.3.1",
37
- "eslint-plugin-rulesdir": "^0.1.0",
34
+ "eslint-config-prettier": "^8.5.0",
35
+ "eslint-plugin-mocha": "^10.1.0",
36
+ "eslint-plugin-prettier": "^4.2.1",
37
+ "eslint-plugin-promise": "^6.0.1",
38
+ "eslint-plugin-rulesdir": "^0.2.0",
38
39
  "eslint-plugin-sort-imports-requires": "^1.0.2",
40
+ "eslint-plugin-sort-keys-fix": "^1.1.2",
39
41
  "eslint-plugin-sql-template": "^2.0.0"
40
42
  },
41
43
  "devDependencies": {
42
44
  "@uphold/github-changelog-generator": "^3.0.0",
43
- "eslint": "~8.20.0",
44
- "mocha": "^9.2.0",
45
+ "eslint": "~8.24.0",
46
+ "mocha": "^10.0.0",
45
47
  "pre-commit": "^1.2.2",
46
48
  "prettier": "^2.7.1",
47
- "should": "^9.0.2"
49
+ "should": "^13.2.3"
48
50
  },
49
51
  "peerDependencies": {
50
52
  "eslint": "~8.20.0",
package/src/index.js CHANGED
@@ -35,7 +35,7 @@ module.exports = {
35
35
  parserOptions: {
36
36
  requireConfigFile: false
37
37
  },
38
- plugins: ['mocha', 'rulesdir', 'sort-imports-requires', 'sql-template'],
38
+ plugins: ['mocha', 'promise', 'rulesdir', 'sort-imports-requires', 'sort-keys-fix', 'sql-template'],
39
39
  root: true,
40
40
  rules: {
41
41
  'accessor-pairs': 'error',
@@ -67,6 +67,7 @@ module.exports = {
67
67
  'no-cond-assign': ['error', 'always'],
68
68
  'no-console': 'warn',
69
69
  'no-div-regex': 'error',
70
+ 'no-dupe-keys': 'error',
70
71
  'no-duplicate-imports': 'error',
71
72
  'no-else-return': 'error',
72
73
  'no-eq-null': 'error',
@@ -133,6 +134,7 @@ module.exports = {
133
134
  'prefer-spread': 'error',
134
135
  'prefer-template': 'error',
135
136
  'prettier/prettier': ['error', { arrowParens: 'avoid', printWidth: 120, singleQuote: true, trailingComma: 'none' }],
137
+ 'promise/prefer-await-to-then': 'error',
136
138
  radix: 'error',
137
139
  'require-atomic-updates': 'off',
138
140
  'require-await': 'error',
@@ -152,7 +154,7 @@ module.exports = {
152
154
  useOldSingleMemberSyntax: true
153
155
  }
154
156
  ],
155
- 'sort-keys': ['error', 'asc', { natural: true }],
157
+ 'sort-keys-fix/sort-keys-fix': ['error', 'asc', { natural: true }],
156
158
  'spaced-comment': 'error',
157
159
  'sql-template/no-unsafe-query': 'error',
158
160
  'valid-jsdoc': 'error',
@@ -10,7 +10,7 @@ module.exports = {
10
10
  avoidName: 'Calls to `sinon.useFakeTimers()` must provide a `toFake` configuration'
11
11
  }
12
12
  },
13
- // eslint-disable-next-line sort-keys
13
+ // eslint-disable-next-line sort-keys-fix/sort-keys-fix
14
14
  create(context) {
15
15
  return {
16
16
  CallExpression(node) {