@cto.af/eslint-config 2.0.1 → 2.0.2

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 (3) hide show
  1. package/ava.js +7 -0
  2. package/index.js +5 -5
  3. package/package.json +4 -4
package/ava.js CHANGED
@@ -45,5 +45,12 @@ module.exports = {
45
45
  'ava/use-t': 'error',
46
46
  'ava/use-test': 'error',
47
47
  'ava/use-true-false': 'off',
48
+
49
+ // [Possible Errors](https://github.com/eslint-community/eslint-plugin-n#possible-errors)
50
+ 'n/no-extraneous-import': ['error', {
51
+ // This is an extraneous error because of the way ava is built and the
52
+ // way that esplugin-n finds depedencies.
53
+ allowModules: ['ava'],
54
+ }],
48
55
  },
49
56
  }
package/index.js CHANGED
@@ -19,8 +19,8 @@ module.exports = {
19
19
  },
20
20
  reportUnusedDisableDirectives: true,
21
21
  rules: {
22
- // Last updated 2022-01-12, v8.31.0
23
- // eslint-plugin-node 11.1.0
22
+ // Last updated 2023-06-26, v8.43.0
23
+ // eslint-plugin-n 16.0.1
24
24
 
25
25
  // [Possible Problems](https://eslint.org/docs/rules/#possible-problems)
26
26
  'array-callback-return': ['error', {allowImplicit: true}],
@@ -323,7 +323,7 @@ module.exports = {
323
323
  'wrap-regex': 'off', // No.
324
324
  'yield-star-spacing': ['error', 'before'],
325
325
 
326
- // [Possible Errors](https://github.com/mysticatea/eslint-plugin-node#possible-errors)
326
+ // [Possible Errors](https://github.com/eslint-community/eslint-plugin-n#possible-errors)
327
327
  'n/handle-callback-err': ['error', 'er'],
328
328
  'n/no-callback-literal': 'error',
329
329
  'n/no-exports-assign': 'error',
@@ -345,10 +345,10 @@ module.exports = {
345
345
  'n/process-exit-as-throw': 'error',
346
346
  'n/shebang': 'off', // This always seems to be wrong
347
347
 
348
- // [Best Practices](https://github.com/mysticatea/eslint-plugin-node#best-practices)
348
+ // [Best Practices](https://github.com/eslint-community/eslint-plugin-n#best-practices)
349
349
  'n/no-deprecated-api': 'error',
350
350
 
351
- // [Stylistic Issues](https://github.com/mysticatea/eslint-plugin-node#stylistic-issues)
351
+ // [Stylistic Issues](https://github.com/eslint-community/eslint-plugin-n#stylistic-issues)
352
352
  'n/callback-return': 'off', // No
353
353
  'n/exports-style': 'off',
354
354
  // Doesn't work for `import 'regenerator-runtime/runtime'`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cto.af/eslint-config",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "hildjj's lint rules",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -41,13 +41,13 @@
41
41
  }
42
42
  },
43
43
  "devDependencies": {
44
- "@typescript-eslint/eslint-plugin": "5.60.0",
45
- "@typescript-eslint/parser": "5.60.0",
44
+ "@typescript-eslint/eslint-plugin": "5.60.1",
45
+ "@typescript-eslint/parser": "5.60.1",
46
46
  "eslint": "^8.43.0",
47
47
  "eslint-find-rules": "4.1.0",
48
48
  "eslint-plugin-ava": "^14.0.0",
49
49
  "eslint-plugin-hildjj": "link:rules",
50
- "eslint-plugin-jsdoc": "^46.2.6",
50
+ "eslint-plugin-jsdoc": "^46.3.0",
51
51
  "eslint-plugin-n": "16.0.1",
52
52
  "npm-check-updates": "16.10.13",
53
53
  "typescript": "5.1.3"