@voiceflow/eslint-config 3.2.1 → 3.5.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/.eslintrc.js CHANGED
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
- extends: ['@voiceflow/eslint-config', '@voiceflow/eslint-config/utility'],
2
+ extends: ['.'],
3
3
  rules: {
4
4
  'no-secrets/no-secrets': 'off',
5
5
  },
package/config/import.js CHANGED
@@ -19,6 +19,7 @@ module.exports = {
19
19
  // off
20
20
  'sort-imports': 'off',
21
21
  'import/order': 'off',
22
+ 'import/no-named-as-default': 'off',
22
23
  },
23
24
  settings: {
24
25
  'import/extensions': ['.js', '.ts', '.jsx', '.tsx'],
@@ -7,7 +7,7 @@ module.exports = (rootDir = process.cwd(), workspace = 'packages') => {
7
7
 
8
8
  return packages.map((pkg) => ({
9
9
  files: [`${workspace}/${pkg}/**/*`],
10
- extends: ['../typescript.js'],
10
+ extends: ['@voiceflow/eslint-config/typescript'],
11
11
  settings: {
12
12
  'import/resolver': {
13
13
  typescript: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@voiceflow/eslint-config",
3
3
  "description": "ESLint config for voiceflow",
4
- "version": "3.2.1",
4
+ "version": "3.5.0",
5
5
  "author": "Eric Hacke",
6
6
  "bugs": {
7
7
  "url": "https://github.com/voiceflow/eslint-config/issues"
@@ -12,45 +12,44 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "@typescript-eslint/eslint-plugin": "^4.20.0",
16
- "@typescript-eslint/parser": "^4.20.0",
15
+ "@typescript-eslint/eslint-plugin": "^4.31.0",
16
+ "@typescript-eslint/parser": "^4.31.0",
17
17
  "eslint-config-airbnb-base": "^14.2.1",
18
- "eslint-config-prettier": "^8.1.0",
19
- "eslint-import-resolver-typescript": "^2.4.0",
20
- "eslint-plugin-compat": "^3.1.1",
21
- "eslint-plugin-cypress": "^2.11.2",
18
+ "eslint-config-prettier": "^8.3.0",
19
+ "eslint-import-resolver-typescript": "^2.5.0",
20
+ "eslint-plugin-compat": "^3.13.0",
21
+ "eslint-plugin-cypress": "^2.11.3",
22
22
  "eslint-plugin-eslint-comments": "^3.1.1",
23
23
  "eslint-plugin-filenames": "^1.3.2",
24
- "eslint-plugin-import": "^2.22.1",
25
- "eslint-plugin-jest": "^24.3.2",
24
+ "eslint-plugin-import": "^2.24.2",
25
+ "eslint-plugin-jest": "^24.4.0",
26
26
  "eslint-plugin-jsx-a11y": "^6.2.1",
27
- "eslint-plugin-lodash": "^7.2.0",
28
- "eslint-plugin-mocha": "^8.1.0",
27
+ "eslint-plugin-lodash": "^7.3.0",
28
+ "eslint-plugin-mocha": "^9.0.0",
29
29
  "eslint-plugin-no-secrets": "^0.8.9",
30
- "eslint-plugin-optimize-regex": "^1.2.0",
30
+ "eslint-plugin-optimize-regex": "^1.2.1",
31
31
  "eslint-plugin-prefer-arrow": "^1.2.3",
32
- "eslint-plugin-prettier": "^3.1.0",
33
- "eslint-plugin-promise": "^4.3.1",
34
- "eslint-plugin-react": "^7.23.1",
32
+ "eslint-plugin-prettier": "^4.0.0",
33
+ "eslint-plugin-promise": "^5.1.0",
34
+ "eslint-plugin-react": "^7.25.1",
35
35
  "eslint-plugin-react-hooks": "^4.2.0",
36
36
  "eslint-plugin-simple-import-sort": "^7.0.0",
37
- "eslint-plugin-sonarjs": "^0.6.0",
37
+ "eslint-plugin-sonarjs": "^0.10.0",
38
38
  "eslint-plugin-xss": "^0.1.9",
39
- "eslint-plugin-you-dont-need-lodash-underscore": "^6.11.0"
39
+ "eslint-plugin-you-dont-need-lodash-underscore": "^6.12.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@voiceflow/commitlint-config": "^1.0.2",
43
- "@voiceflow/eslint-config": "^3.1.0",
42
+ "@voiceflow/commitlint-config": "^1.1.0",
44
43
  "@voiceflow/git-branch-check": "^1.2.0",
45
44
  "@voiceflow/prettier-config": "^1.0.5",
46
45
  "commitizen": "^4.2.4",
47
- "commitlint": "^12.1.4",
46
+ "commitlint": "^13.1.0",
48
47
  "cz-conventional-changelog": "^3.3.0",
49
- "eslint": "^7.26.0",
48
+ "eslint": "^7.32.0",
50
49
  "fixpack": "^4.0.0",
51
- "husky": "^6.0.0",
52
- "lint-staged": "^11.0.0",
53
- "prettier": "^2.3.0"
50
+ "husky": "^7.0.2",
51
+ "lint-staged": "^11.1.2",
52
+ "prettier": "^2.4.0"
54
53
  },
55
54
  "files": [
56
55
  "*.js",
package/typescript.js CHANGED
@@ -15,6 +15,8 @@ module.exports = {
15
15
  'import/no-unresolved': 'off',
16
16
  'import/export': 'off',
17
17
  'import/named': 'off',
18
+
19
+ '@typescript-eslint/consistent-type-definitions': ['warn', 'interface'],
18
20
  },
19
21
  },
20
22
  ],