@agoric/eslint-config 0.4.1-other-dev-3eb1a1d.0 → 0.4.1-other-dev-d15096d.0.d15096d

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/eslint-config.cjs +13 -4
  2. package/package.json +12 -9
package/eslint-config.cjs CHANGED
@@ -31,11 +31,13 @@ module.exports = {
31
31
  'prefer-regex-literals': 'off',
32
32
  'no-else-return': 'off',
33
33
  'no-console': 'off',
34
+ 'no-lone-blocks': 'off',
34
35
  'no-unused-vars': [
35
36
  'error',
36
37
  {
37
38
  argsIgnorePattern: '^_',
38
39
  varsIgnorePattern: '^_',
40
+ caughtErrors: 'none', // Needed now that in ESLint v9.0.0, varsIgnorePattern no longer applies to errors in catch clauses
39
41
  },
40
42
  ],
41
43
  'no-inner-declarations': 'off',
@@ -49,7 +51,7 @@ module.exports = {
49
51
  'default-param-last': 'off', // unaware of TS type annotations
50
52
  'consistent-return': 'off', // unaware of throws. TS detects more reliably.
51
53
  'no-fallthrough': 'warn', // unaware of throws.
52
-
54
+ 'no-redeclare': ['error', { builtinGlobals: false }], // Allow redeclaration of built-in globals when explicitly declared
53
55
  'spaced-comment': [
54
56
  'error',
55
57
  'always',
@@ -63,9 +65,14 @@ module.exports = {
63
65
 
64
66
  'github/array-foreach': 'warn',
65
67
 
66
- // it doesn't support exports maps https://github.com/import-js/eslint-plugin-import/issues/1810
67
- // and most of our code is covered by tsc which does
68
- 'import/no-unresolved': 'off',
68
+ // Covered faster by TS
69
+ // https://typescript-eslint.io/troubleshooting/typed-linting/performance/#eslint-plugin-import
70
+ 'import/named': 'off',
71
+ 'import/namespace': 'off',
72
+ 'import/default': 'off',
73
+ 'import/no-named-as-default-member': 'off',
74
+ 'import/no-unresolved': 'off', // Plus no-unresolved doesn't support exports maps https://github.com/import-js/eslint-plugin-import/issues/1810
75
+
69
76
  'import/prefer-default-export': 'off',
70
77
 
71
78
  'jsdoc/no-multi-asterisks': ['warn', { allowWhitespace: true }],
@@ -102,6 +109,8 @@ module.exports = {
102
109
  {
103
110
  files: ['**/*.ts'],
104
111
  rules: {
112
+ // Not needed with TypeScript syntax
113
+ 'jsdoc/require-returns-type': 'off',
105
114
  // Handled better by tsc
106
115
  'import/no-unresolved': 'off',
107
116
  'no-unused-vars': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/eslint-config",
3
- "version": "0.4.1-other-dev-3eb1a1d.0+3eb1a1d",
3
+ "version": "0.4.1-other-dev-d15096d.0.d15096d",
4
4
  "description": "Rules used by the @agoric packages",
5
5
  "main": "./eslint-config.cjs",
6
6
  "repository": {
@@ -25,18 +25,21 @@
25
25
  "eslint-config.*"
26
26
  ],
27
27
  "peerDependencies": {
28
- "@endo/eslint-plugin": "^2.2.3",
29
- "@jessie.js/eslint-plugin": "^0.4.1",
30
- "eslint": "^8.57.0",
28
+ "@agoric/eslint-plugin": "^0.1.0",
29
+ "@endo/eslint-plugin": "^2.4.0",
30
+ "@jessie.js/eslint-plugin": "^0.4.2",
31
+ "eslint": "^9.0.0",
31
32
  "eslint-config-airbnb-base": "^15.0.0",
32
33
  "eslint-config-jessie": "^0.0.6",
33
34
  "eslint-config-prettier": "^9.0.0",
34
- "eslint-plugin-github": "^4.10.0",
35
+ "eslint-plugin-github": "^5.1.4",
35
36
  "eslint-plugin-import": "^2.25.3",
36
37
  "eslint-plugin-jsdoc": "^46.4.3",
37
- "eslint-plugin-prettier": "^5.0.0",
38
- "prettier": "^3.0.3",
39
- "typescript-eslint": "^7.13.1"
38
+ "prettier": "^3.4.2",
39
+ "typescript-eslint": "^8.17.0"
40
40
  },
41
- "gitHead": "3eb1a1d2d75b2b4a94807cd3bf759bc9fc531f05"
41
+ "engines": {
42
+ "node": "^20.9 || ^22.11"
43
+ },
44
+ "gitHead": "d15096dc4ff8b96e9b6cd11954c20d3a9efbb393"
42
45
  }