@cto.af/eslint-config 3.0.1 → 3.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/index.js +1 -2
  2. package/package.json +8 -8
  3. package/ts.js +6 -0
package/index.js CHANGED
@@ -173,9 +173,9 @@ module.exports = {
173
173
  'no-nested-ternary': 'error',
174
174
  'no-new': 'error',
175
175
  'no-new-func': 'error',
176
- 'no-new-object': 'error',
177
176
  'no-new-wrappers': 'warn',
178
177
  'no-nonoctal-decimal-escape': 'error',
178
+ 'no-object-constructor': 'error',
179
179
  'no-octal': 'error',
180
180
  'no-octal-escape': 'warn',
181
181
  'no-param-reassign': 'off', // I do this all the time.
@@ -189,7 +189,6 @@ module.exports = {
189
189
  'no-restricted-properties': 'off', // Not needed
190
190
  'no-restricted-syntax': 'off', // Not needed
191
191
  'no-return-assign': 'error',
192
- 'no-return-await': 'error',
193
192
  'no-script-url': 'error',
194
193
  'no-sequences': 'error',
195
194
  'no-shadow': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cto.af/eslint-config",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "hildjj's lint rules",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -41,16 +41,16 @@
41
41
  }
42
42
  },
43
43
  "devDependencies": {
44
- "@typescript-eslint/eslint-plugin": "6.0.0",
45
- "@typescript-eslint/parser": "6.0.0",
46
- "eslint": "^8.45.0",
44
+ "@typescript-eslint/eslint-plugin": "6.9.1",
45
+ "@typescript-eslint/parser": "6.9.1",
46
+ "eslint": "^8.52.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.4.3",
51
- "eslint-plugin-n": "16.0.1",
52
- "npm-check-updates": "16.10.15",
53
- "typescript": "5.1.6"
50
+ "eslint-plugin-jsdoc": "^46.8.2",
51
+ "eslint-plugin-n": "16.2.0",
52
+ "npm-check-updates": "16.14.6",
53
+ "typescript": "5.2.2"
54
54
  },
55
55
  "engines": {
56
56
  "node": ">=16"
package/ts.js CHANGED
@@ -50,6 +50,8 @@ module.exports = {
50
50
  allowSingleLine: true,
51
51
  }],
52
52
  '@typescript-eslint/class-literal-property-style': ['error', 'getters'],
53
+ 'class-methods-use-this': 'off',
54
+ '@typescript-eslint/class-methods-use-this': 'error',
53
55
  'comma-dangle': 'off',
54
56
  '@typescript-eslint/comma-dangle': [
55
57
  'error',
@@ -95,6 +97,8 @@ module.exports = {
95
97
  '@typescript-eslint/keyword-spacing': 'error',
96
98
  '@typescript-eslint/lines-around-comment': 'off', // Maybe later
97
99
  '@typescript-eslint/lines-between-class-members': 'error',
100
+ 'max-params': 'off',
101
+ '@typescript-eslint/max-params': ['error', {max: 4}],
98
102
  '@typescript-eslint/member-delimiter-style': 'error',
99
103
  '@typescript-eslint/member-ordering': 'error',
100
104
  '@typescript-eslint/method-signature-style': ['error', 'method'],
@@ -175,6 +179,8 @@ module.exports = {
175
179
  '@typescript-eslint/padding-line-between-statements': 'error',
176
180
  '@typescript-eslint/parameter-properties': 'error',
177
181
  '@typescript-eslint/prefer-as-const': 'error',
182
+ 'prefer-destructuring': 'off',
183
+ '@typescript-eslint/prefer-destructuring': 'error',
178
184
  '@typescript-eslint/prefer-enum-initializers': 'error',
179
185
  '@typescript-eslint/prefer-for-of': 'error',
180
186
  '@typescript-eslint/prefer-function-type': 'error',