@croct/eslint-plugin 0.6.3 → 0.6.4

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 | {
@@ -239,7 +241,9 @@ export declare const configs: {
239
241
  'no-shadow': string;
240
242
  'import/prefer-default-export': string;
241
243
  'import/no-extraneous-dependencies': string;
242
- 'no-use-before-define': string;
244
+ 'no-use-before-define': (string | {
245
+ functions: boolean;
246
+ })[];
243
247
  'arrow-parens': string[];
244
248
  'class-methods-use-this': string;
245
249
  'consistent-return': string;
@@ -42,7 +42,9 @@ export declare const javascript: {
42
42
  'no-shadow': string;
43
43
  'import/prefer-default-export': string;
44
44
  'import/no-extraneous-dependencies': string;
45
- 'no-use-before-define': string;
45
+ 'no-use-before-define': (string | {
46
+ functions: boolean;
47
+ })[];
46
48
  'arrow-parens': string[];
47
49
  'class-methods-use-this': string;
48
50
  'consistent-return': string;
@@ -80,7 +80,12 @@ exports.javascript = {
80
80
  'no-shadow': 'error',
81
81
  'import/prefer-default-export': 'off',
82
82
  'import/no-extraneous-dependencies': 'off',
83
- 'no-use-before-define': 'error',
83
+ 'no-use-before-define': [
84
+ 'error',
85
+ {
86
+ functions: false,
87
+ },
88
+ ],
84
89
  'arrow-parens': [
85
90
  'error',
86
91
  '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 | {
@@ -272,7 +274,9 @@ declare const configuration: {
272
274
  'no-shadow': string;
273
275
  'import/prefer-default-export': string;
274
276
  'import/no-extraneous-dependencies': string;
275
- 'no-use-before-define': string;
277
+ 'no-use-before-define': (string | {
278
+ functions: boolean;
279
+ })[];
276
280
  'arrow-parens': string[];
277
281
  'class-methods-use-this': string;
278
282
  '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.4",
4
4
  "description": "ESLint rules and presets applied to all Croct JavaScript projects.",
5
5
  "license": "MIT",
6
6
  "author": {