@croct/eslint-plugin 0.6.3 → 0.6.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.
@@ -114,7 +114,9 @@ export declare const configs: {
114
114
  '@typescript-eslint/explicit-function-return-type': string[];
115
115
  '@typescript-eslint/no-explicit-any': string;
116
116
  'no-use-before-define': string;
117
- '@typescript-eslint/no-use-before-define': string;
117
+ '@typescript-eslint/no-use-before-define': (string | {
118
+ functions: boolean;
119
+ })[];
118
120
  'no-unused-expressions': string;
119
121
  '@typescript-eslint/no-unused-expressions': string;
120
122
  indent: (string | number | {
@@ -208,6 +210,7 @@ export declare const configs: {
208
210
  allowWholeFile: boolean;
209
211
  })[];
210
212
  'eslint-comments/require-description': string;
213
+ 'eslint-comments/no-unused-disable': string;
211
214
  'newline-per-chained-call': string;
212
215
  'no-plusplus': string;
213
216
  'array-bracket-newline': string[];
@@ -239,7 +242,9 @@ export declare const configs: {
239
242
  'no-shadow': string;
240
243
  'import/prefer-default-export': string;
241
244
  'import/no-extraneous-dependencies': string;
242
- 'no-use-before-define': string;
245
+ 'no-use-before-define': (string | {
246
+ functions: boolean;
247
+ })[];
243
248
  'arrow-parens': string[];
244
249
  'class-methods-use-this': string;
245
250
  'consistent-return': string;
@@ -11,6 +11,7 @@ export declare const javascript: {
11
11
  allowWholeFile: boolean;
12
12
  })[];
13
13
  'eslint-comments/require-description': string;
14
+ 'eslint-comments/no-unused-disable': string;
14
15
  'newline-per-chained-call': string;
15
16
  'no-plusplus': string;
16
17
  'array-bracket-newline': string[];
@@ -42,7 +43,9 @@ export declare const javascript: {
42
43
  'no-shadow': string;
43
44
  'import/prefer-default-export': string;
44
45
  'import/no-extraneous-dependencies': string;
45
- 'no-use-before-define': string;
46
+ 'no-use-before-define': (string | {
47
+ functions: boolean;
48
+ })[];
46
49
  'arrow-parens': string[];
47
50
  'class-methods-use-this': string;
48
51
  'consistent-return': string;
@@ -28,6 +28,7 @@ exports.javascript = {
28
28
  },
29
29
  ],
30
30
  'eslint-comments/require-description': 'error',
31
+ 'eslint-comments/no-unused-disable': 'error',
31
32
  'newline-per-chained-call': 'off',
32
33
  'no-plusplus': 'off',
33
34
  'array-bracket-newline': [
@@ -80,7 +81,12 @@ exports.javascript = {
80
81
  'no-shadow': 'error',
81
82
  'import/prefer-default-export': 'off',
82
83
  'import/no-extraneous-dependencies': 'off',
83
- 'no-use-before-define': 'error',
84
+ 'no-use-before-define': [
85
+ 'error',
86
+ {
87
+ functions: false,
88
+ },
89
+ ],
84
90
  'arrow-parens': [
85
91
  'error',
86
92
  'as-needed',
@@ -31,7 +31,9 @@ export declare const typescript: {
31
31
  '@typescript-eslint/explicit-function-return-type': string[];
32
32
  '@typescript-eslint/no-explicit-any': string;
33
33
  'no-use-before-define': string;
34
- '@typescript-eslint/no-use-before-define': string;
34
+ '@typescript-eslint/no-use-before-define': (string | {
35
+ functions: boolean;
36
+ })[];
35
37
  'no-unused-expressions': string;
36
38
  '@typescript-eslint/no-unused-expressions': string;
37
39
  indent: (string | number | {
@@ -40,7 +40,12 @@ exports.typescript = {
40
40
  '@typescript-eslint/explicit-function-return-type': ['error'],
41
41
  '@typescript-eslint/no-explicit-any': 'off',
42
42
  'no-use-before-define': 'off',
43
- '@typescript-eslint/no-use-before-define': 'error',
43
+ '@typescript-eslint/no-use-before-define': [
44
+ 'error',
45
+ {
46
+ functions: false,
47
+ },
48
+ ],
44
49
  'no-unused-expressions': 'off',
45
50
  '@typescript-eslint/no-unused-expressions': 'error',
46
51
  indent: ['error', 4, {
package/index.d.ts CHANGED
@@ -147,7 +147,9 @@ declare const configuration: {
147
147
  '@typescript-eslint/explicit-function-return-type': string[];
148
148
  '@typescript-eslint/no-explicit-any': string;
149
149
  'no-use-before-define': string;
150
- '@typescript-eslint/no-use-before-define': string;
150
+ '@typescript-eslint/no-use-before-define': (string | {
151
+ functions: boolean;
152
+ })[];
151
153
  'no-unused-expressions': string;
152
154
  '@typescript-eslint/no-unused-expressions': string;
153
155
  indent: (string | number | {
@@ -241,6 +243,7 @@ declare const configuration: {
241
243
  allowWholeFile: boolean;
242
244
  })[];
243
245
  'eslint-comments/require-description': string;
246
+ 'eslint-comments/no-unused-disable': string;
244
247
  'newline-per-chained-call': string;
245
248
  'no-plusplus': string;
246
249
  'array-bracket-newline': string[];
@@ -272,7 +275,9 @@ declare const configuration: {
272
275
  'no-shadow': string;
273
276
  'import/prefer-default-export': string;
274
277
  'import/no-extraneous-dependencies': string;
275
- 'no-use-before-define': string;
278
+ 'no-use-before-define': (string | {
279
+ functions: boolean;
280
+ })[];
276
281
  'arrow-parens': string[];
277
282
  'class-methods-use-this': string;
278
283
  'consistent-return': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@croct/eslint-plugin",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "description": "ESLint rules and presets applied to all Croct JavaScript projects.",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -66,7 +66,7 @@
66
66
  "eslint-plugin-self": "^1.2.1",
67
67
  "jest": "^29.0.0",
68
68
  "ts-jest": "^29.0.0",
69
- "typescript": "^4.5"
69
+ "typescript": "^5.0.0"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@typescript-eslint/parser": ">= 5",
@@ -1,11 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.minChainedCallDepth = void 0;
4
- /*
5
- eslint-disable @typescript-eslint/no-non-null-assertion
6
- --
7
- Disable the rule to reduce the number of branches
8
- */
9
4
  const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
10
5
  const ast_utils_1 = require("@typescript-eslint/utils/dist/ast-utils");
11
6
  const createRule_1 = require("../createRule");
@@ -1,11 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.parameterDestructuring = void 0;
4
- /*
5
- eslint-disable @typescript-eslint/no-non-null-assertion
6
- --
7
- Disable the rule to reduce the number of branches
8
- */
9
4
  const types_1 = require("@typescript-eslint/types");
10
5
  const createRule_1 = require("../createRule");
11
6
  exports.parameterDestructuring = (0, createRule_1.createRule)({