@cto.af/eslint-config 4.1.4 → 4.1.6

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/cjs.js ADDED
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ module.exports = [{
4
+ files: [
5
+ '**/*.cjs',
6
+ ],
7
+ languageOptions: {
8
+ sourceType: 'commonjs',
9
+ },
10
+ }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cto.af/eslint-config",
3
- "version": "4.1.4",
3
+ "version": "4.1.6",
4
4
  "description": "hildjj's lint rules",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,21 +15,21 @@
15
15
  "license": "MIT",
16
16
  "repository": "cto-af/eslint-config",
17
17
  "dependencies": {
18
- "@stylistic/eslint-plugin": "2.6.0",
19
- "eslint-plugin-n": "17.10.1",
20
- "globals": "15.8.0"
18
+ "@stylistic/eslint-plugin": "2.6.4",
19
+ "eslint-plugin-n": "17.10.2",
20
+ "globals": "15.9.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@cto.af/eslint-plugin-meta": "github:cto-af/eslint-plugin-meta",
24
- "eslint": "^9.8.0",
24
+ "eslint": "^9.9.1",
25
25
  "eslint-plugin-ava": "^15.0.1",
26
- "eslint-plugin-jsdoc": "^48.10.2",
26
+ "eslint-plugin-jsdoc": "^50.2.2",
27
27
  "eslint-plugin-markdown": "^5.1.0",
28
28
  "eslint-plugin-mocha": "10.5.0",
29
29
  "typescript": "5.5.4",
30
- "typescript-eslint": "^8.0.0"
30
+ "typescript-eslint": "^8.3.0"
31
31
  },
32
- "packageManager": "pnpm@9.6.0",
32
+ "packageManager": "pnpm@9.9.0",
33
33
  "engines": {
34
34
  "node": ">=18"
35
35
  }
package/rules/js.js CHANGED
@@ -56,11 +56,12 @@ module.exports = {
56
56
  'no-unused-private-class-members': 'error',
57
57
  'no-unused-vars': [
58
58
  'error', {
59
- args: 'none',
59
+ args: 'all',
60
60
  argsIgnorePattern: '^_',
61
61
  caughtErrors: 'all',
62
62
  caughtErrorsIgnorePattern: '^(_|ignore)',
63
- varsIgnorePattern: '^_',
63
+ varsIgnorePattern: '^_[^_]',
64
+ reportUsedIgnorePattern: true,
64
65
  },
65
66
  ],
66
67
  'no-use-before-define': 'error',
package/rules/jsdoc.js CHANGED
@@ -25,6 +25,7 @@ module.exports = {
25
25
  'jsdoc/implements-on-classes': 'error',
26
26
  'jsdoc/imports-as-dependencies': 'error',
27
27
  'jsdoc/informative-docs': 'off', // This sounds annoying
28
+ 'jsdoc/lines-before-block': 'error',
28
29
  'jsdoc/match-description': 'error',
29
30
  'jsdoc/match-name': 'off',
30
31
  'jsdoc/multiline-blocks': 'error',
package/rules/ts.js CHANGED
@@ -67,6 +67,7 @@ module.exports = {
67
67
  '@typescript-eslint/no-base-to-string': 'off', // Can't config
68
68
  '@typescript-eslint/no-confusing-non-null-assertion': 'error',
69
69
  '@typescript-eslint/no-confusing-void-expression': 'off', // Can't config
70
+ '@typescript-eslint/no-deprecated': 'error', // See how this works in practce.
70
71
  '@typescript-eslint/no-dupe-class-members': 'off', // Not recommended
71
72
  '@typescript-eslint/no-duplicate-enum-values': 'error',
72
73
  '@typescript-eslint/no-duplicate-type-constituents': 'error',
@@ -121,11 +122,12 @@ module.exports = {
121
122
  '@typescript-eslint/no-unused-expressions': 'error',
122
123
  '@typescript-eslint/no-unused-vars': [
123
124
  'error', {
124
- args: 'none',
125
+ args: 'all',
125
126
  argsIgnorePattern: '^_',
126
127
  caughtErrors: 'all',
127
128
  caughtErrorsIgnorePattern: '^(_|ignore)',
128
- varsIgnorePattern: '^_',
129
+ varsIgnorePattern: '^_[^_]',
130
+ reportUsedIgnorePattern: true,
129
131
  },
130
132
  ],
131
133
  '@typescript-eslint/no-use-before-define': 'error',