@cto.af/eslint-config 4.1.4 → 4.1.5

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.5",
4
4
  "description": "hildjj's lint rules",
5
5
  "main": "index.js",
6
6
  "scripts": {
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/ts.js CHANGED
@@ -121,11 +121,12 @@ module.exports = {
121
121
  '@typescript-eslint/no-unused-expressions': 'error',
122
122
  '@typescript-eslint/no-unused-vars': [
123
123
  'error', {
124
- args: 'none',
124
+ args: 'all',
125
125
  argsIgnorePattern: '^_',
126
126
  caughtErrors: 'all',
127
127
  caughtErrorsIgnorePattern: '^(_|ignore)',
128
- varsIgnorePattern: '^_',
128
+ varsIgnorePattern: '^_[^_]',
129
+ reportUsedIgnorePattern: true,
129
130
  },
130
131
  ],
131
132
  '@typescript-eslint/no-use-before-define': 'error',