@croct/eslint-plugin 0.1.0 → 0.1.1

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.
@@ -78,76 +78,111 @@ export declare const configs: {
78
78
  typescript: {
79
79
  extends: string[];
80
80
  plugins: string[];
81
- rules: {
82
- '@typescript-eslint/array-type': (string | {
83
- default: string;
84
- })[];
85
- '@typescript-eslint/prefer-as-const': string;
86
- '@typescript-eslint/adjacent-overload-signatures': string;
87
- '@typescript-eslint/type-annotation-spacing': string;
88
- '@typescript-eslint/semi': string[];
89
- '@typescript-eslint/strict-boolean-expressions': (string | {
90
- allowString: boolean;
91
- allowNumber: boolean;
92
- allowNullableObject: boolean;
93
- })[];
94
- '@typescript-eslint/prefer-regexp-exec': string;
95
- '@typescript-eslint/prefer-optional-chain': string;
96
- 'no-shadow': string;
97
- '@typescript-eslint/no-shadow': (string | {
98
- ignoreTypeValueShadow: boolean;
99
- ignoreFunctionTypeParameterNameValueShadow: boolean;
100
- })[];
101
- '@typescript-eslint/no-empty-interface': string;
102
- '@typescript-eslint/explicit-member-accessibility': string[];
103
- '@typescript-eslint/explicit-module-boundary-types': string;
104
- '@typescript-eslint/explicit-function-return-type': string[];
105
- '@typescript-eslint/no-explicit-any': string;
106
- 'no-use-before-define': string;
107
- '@typescript-eslint/no-use-before-define': string;
108
- 'no-unused-expressions': string;
109
- '@typescript-eslint/no-unused-expressions': string;
110
- indent: (string | number | {
111
- SwitchCase: number;
112
- })[];
113
- '@typescript-eslint/no-unused-vars': string;
114
- 'no-unused-vars': string;
115
- '@typescript-eslint/no-non-null-assertion': string;
116
- 'object-curly-spacing': string;
117
- '@typescript-eslint/object-curly-spacing': string;
118
- '@typescript-eslint/member-delimiter-style': (string | {
119
- multiline: {
120
- delimiter: string;
121
- requireLast: boolean;
122
- };
123
- singleline: {
124
- delimiter: string;
125
- requireLast: boolean;
126
- };
127
- overrides: {
128
- interface: {
129
- singleline: {
130
- delimiter: string;
131
- };
132
- multiline: {
133
- delimiter: string;
81
+ overrides: ({
82
+ files: string[];
83
+ extends: string[];
84
+ parser: string;
85
+ rules: {
86
+ '@typescript-eslint/array-type': (string | {
87
+ default: string;
88
+ })[];
89
+ '@typescript-eslint/prefer-as-const': string;
90
+ '@typescript-eslint/adjacent-overload-signatures': string;
91
+ '@typescript-eslint/type-annotation-spacing': string;
92
+ '@typescript-eslint/semi': string[];
93
+ '@typescript-eslint/strict-boolean-expressions': (string | {
94
+ allowString: boolean;
95
+ allowNumber: boolean;
96
+ allowNullableObject: boolean;
97
+ })[];
98
+ '@typescript-eslint/prefer-regexp-exec': string;
99
+ '@typescript-eslint/prefer-optional-chain': string;
100
+ 'no-shadow': string;
101
+ '@typescript-eslint/no-shadow': (string | {
102
+ ignoreTypeValueShadow: boolean;
103
+ ignoreFunctionTypeParameterNameValueShadow: boolean;
104
+ })[];
105
+ '@typescript-eslint/no-empty-interface': string;
106
+ '@typescript-eslint/explicit-member-accessibility': string[];
107
+ '@typescript-eslint/explicit-module-boundary-types': string;
108
+ '@typescript-eslint/explicit-function-return-type': string[];
109
+ '@typescript-eslint/no-explicit-any': string;
110
+ 'no-use-before-define': string;
111
+ '@typescript-eslint/no-use-before-define': string;
112
+ 'no-unused-expressions': string;
113
+ '@typescript-eslint/no-unused-expressions': string;
114
+ indent: (string | number | {
115
+ SwitchCase: number;
116
+ })[];
117
+ '@typescript-eslint/no-unused-vars': string;
118
+ 'no-unused-vars': string;
119
+ '@typescript-eslint/no-non-null-assertion': string;
120
+ 'object-curly-spacing': string;
121
+ '@typescript-eslint/object-curly-spacing': string;
122
+ '@typescript-eslint/member-delimiter-style': (string | {
123
+ multiline: {
124
+ delimiter: string;
125
+ requireLast: boolean;
126
+ };
127
+ singleline: {
128
+ delimiter: string;
129
+ requireLast: boolean;
130
+ };
131
+ overrides: {
132
+ interface: {
133
+ singleline: {
134
+ delimiter: string;
135
+ };
136
+ multiline: {
137
+ delimiter: string;
138
+ };
134
139
  };
135
140
  };
136
- };
137
- })[];
138
- 'no-undef': string;
139
- };
140
- overrides: {
141
+ })[];
142
+ 'no-undef': string;
143
+ 'no-new-object'?: undefined;
144
+ };
145
+ plugins?: undefined;
146
+ env?: undefined;
147
+ } | {
141
148
  files: string[];
142
149
  extends: string[];
143
150
  plugins: string[];
144
151
  rules: {
145
152
  'no-new-object': string;
153
+ '@typescript-eslint/array-type'?: undefined;
154
+ '@typescript-eslint/prefer-as-const'?: undefined;
155
+ '@typescript-eslint/adjacent-overload-signatures'?: undefined;
156
+ '@typescript-eslint/type-annotation-spacing'?: undefined;
157
+ '@typescript-eslint/semi'?: undefined;
158
+ '@typescript-eslint/strict-boolean-expressions'?: undefined;
159
+ '@typescript-eslint/prefer-regexp-exec'?: undefined;
160
+ '@typescript-eslint/prefer-optional-chain'?: undefined;
161
+ 'no-shadow'?: undefined;
162
+ '@typescript-eslint/no-shadow'?: undefined;
163
+ '@typescript-eslint/no-empty-interface'?: undefined;
164
+ '@typescript-eslint/explicit-member-accessibility'?: undefined;
165
+ '@typescript-eslint/explicit-module-boundary-types'?: undefined;
166
+ '@typescript-eslint/explicit-function-return-type'?: undefined;
167
+ '@typescript-eslint/no-explicit-any'?: undefined;
168
+ 'no-use-before-define'?: undefined;
169
+ '@typescript-eslint/no-use-before-define'?: undefined;
170
+ 'no-unused-expressions'?: undefined;
171
+ '@typescript-eslint/no-unused-expressions'?: undefined;
172
+ indent?: undefined;
173
+ '@typescript-eslint/no-unused-vars'?: undefined;
174
+ 'no-unused-vars'?: undefined;
175
+ '@typescript-eslint/no-non-null-assertion'?: undefined;
176
+ 'object-curly-spacing'?: undefined;
177
+ '@typescript-eslint/object-curly-spacing'?: undefined;
178
+ '@typescript-eslint/member-delimiter-style'?: undefined;
179
+ 'no-undef'?: undefined;
146
180
  };
147
181
  env: {
148
182
  jest: boolean;
149
183
  };
150
- }[];
184
+ parser?: undefined;
185
+ })[];
151
186
  };
152
187
  javascript: {
153
188
  extends: string[];
@@ -1,74 +1,109 @@
1
1
  export declare const typescript: {
2
2
  extends: string[];
3
3
  plugins: string[];
4
- rules: {
5
- '@typescript-eslint/array-type': (string | {
6
- default: string;
7
- })[];
8
- '@typescript-eslint/prefer-as-const': string;
9
- '@typescript-eslint/adjacent-overload-signatures': string;
10
- '@typescript-eslint/type-annotation-spacing': string;
11
- '@typescript-eslint/semi': string[];
12
- '@typescript-eslint/strict-boolean-expressions': (string | {
13
- allowString: boolean;
14
- allowNumber: boolean;
15
- allowNullableObject: boolean;
16
- })[];
17
- '@typescript-eslint/prefer-regexp-exec': string;
18
- '@typescript-eslint/prefer-optional-chain': string;
19
- 'no-shadow': string;
20
- '@typescript-eslint/no-shadow': (string | {
21
- ignoreTypeValueShadow: boolean;
22
- ignoreFunctionTypeParameterNameValueShadow: boolean;
23
- })[];
24
- '@typescript-eslint/no-empty-interface': string;
25
- '@typescript-eslint/explicit-member-accessibility': string[];
26
- '@typescript-eslint/explicit-module-boundary-types': string;
27
- '@typescript-eslint/explicit-function-return-type': string[];
28
- '@typescript-eslint/no-explicit-any': string;
29
- 'no-use-before-define': string;
30
- '@typescript-eslint/no-use-before-define': string;
31
- 'no-unused-expressions': string;
32
- '@typescript-eslint/no-unused-expressions': string;
33
- indent: (string | number | {
34
- SwitchCase: number;
35
- })[];
36
- '@typescript-eslint/no-unused-vars': string;
37
- 'no-unused-vars': string;
38
- '@typescript-eslint/no-non-null-assertion': string;
39
- 'object-curly-spacing': string;
40
- '@typescript-eslint/object-curly-spacing': string;
41
- '@typescript-eslint/member-delimiter-style': (string | {
42
- multiline: {
43
- delimiter: string;
44
- requireLast: boolean;
45
- };
46
- singleline: {
47
- delimiter: string;
48
- requireLast: boolean;
49
- };
50
- overrides: {
51
- interface: {
52
- singleline: {
53
- delimiter: string;
54
- };
55
- multiline: {
56
- delimiter: string;
4
+ overrides: ({
5
+ files: string[];
6
+ extends: string[];
7
+ parser: string;
8
+ rules: {
9
+ '@typescript-eslint/array-type': (string | {
10
+ default: string;
11
+ })[];
12
+ '@typescript-eslint/prefer-as-const': string;
13
+ '@typescript-eslint/adjacent-overload-signatures': string;
14
+ '@typescript-eslint/type-annotation-spacing': string;
15
+ '@typescript-eslint/semi': string[];
16
+ '@typescript-eslint/strict-boolean-expressions': (string | {
17
+ allowString: boolean;
18
+ allowNumber: boolean;
19
+ allowNullableObject: boolean;
20
+ })[];
21
+ '@typescript-eslint/prefer-regexp-exec': string;
22
+ '@typescript-eslint/prefer-optional-chain': string;
23
+ 'no-shadow': string;
24
+ '@typescript-eslint/no-shadow': (string | {
25
+ ignoreTypeValueShadow: boolean;
26
+ ignoreFunctionTypeParameterNameValueShadow: boolean;
27
+ })[];
28
+ '@typescript-eslint/no-empty-interface': string;
29
+ '@typescript-eslint/explicit-member-accessibility': string[];
30
+ '@typescript-eslint/explicit-module-boundary-types': string;
31
+ '@typescript-eslint/explicit-function-return-type': string[];
32
+ '@typescript-eslint/no-explicit-any': string;
33
+ 'no-use-before-define': string;
34
+ '@typescript-eslint/no-use-before-define': string;
35
+ 'no-unused-expressions': string;
36
+ '@typescript-eslint/no-unused-expressions': string;
37
+ indent: (string | number | {
38
+ SwitchCase: number;
39
+ })[];
40
+ '@typescript-eslint/no-unused-vars': string;
41
+ 'no-unused-vars': string;
42
+ '@typescript-eslint/no-non-null-assertion': string;
43
+ 'object-curly-spacing': string;
44
+ '@typescript-eslint/object-curly-spacing': string;
45
+ '@typescript-eslint/member-delimiter-style': (string | {
46
+ multiline: {
47
+ delimiter: string;
48
+ requireLast: boolean;
49
+ };
50
+ singleline: {
51
+ delimiter: string;
52
+ requireLast: boolean;
53
+ };
54
+ overrides: {
55
+ interface: {
56
+ singleline: {
57
+ delimiter: string;
58
+ };
59
+ multiline: {
60
+ delimiter: string;
61
+ };
57
62
  };
58
63
  };
59
- };
60
- })[];
61
- 'no-undef': string;
62
- };
63
- overrides: {
64
+ })[];
65
+ 'no-undef': string;
66
+ 'no-new-object'?: undefined;
67
+ };
68
+ plugins?: undefined;
69
+ env?: undefined;
70
+ } | {
64
71
  files: string[];
65
72
  extends: string[];
66
73
  plugins: string[];
67
74
  rules: {
68
75
  'no-new-object': string;
76
+ '@typescript-eslint/array-type'?: undefined;
77
+ '@typescript-eslint/prefer-as-const'?: undefined;
78
+ '@typescript-eslint/adjacent-overload-signatures'?: undefined;
79
+ '@typescript-eslint/type-annotation-spacing'?: undefined;
80
+ '@typescript-eslint/semi'?: undefined;
81
+ '@typescript-eslint/strict-boolean-expressions'?: undefined;
82
+ '@typescript-eslint/prefer-regexp-exec'?: undefined;
83
+ '@typescript-eslint/prefer-optional-chain'?: undefined;
84
+ 'no-shadow'?: undefined;
85
+ '@typescript-eslint/no-shadow'?: undefined;
86
+ '@typescript-eslint/no-empty-interface'?: undefined;
87
+ '@typescript-eslint/explicit-member-accessibility'?: undefined;
88
+ '@typescript-eslint/explicit-module-boundary-types'?: undefined;
89
+ '@typescript-eslint/explicit-function-return-type'?: undefined;
90
+ '@typescript-eslint/no-explicit-any'?: undefined;
91
+ 'no-use-before-define'?: undefined;
92
+ '@typescript-eslint/no-use-before-define'?: undefined;
93
+ 'no-unused-expressions'?: undefined;
94
+ '@typescript-eslint/no-unused-expressions'?: undefined;
95
+ indent?: undefined;
96
+ '@typescript-eslint/no-unused-vars'?: undefined;
97
+ 'no-unused-vars'?: undefined;
98
+ '@typescript-eslint/no-non-null-assertion'?: undefined;
99
+ 'object-curly-spacing'?: undefined;
100
+ '@typescript-eslint/object-curly-spacing'?: undefined;
101
+ '@typescript-eslint/member-delimiter-style'?: undefined;
102
+ 'no-undef'?: undefined;
69
103
  };
70
104
  env: {
71
105
  jest: boolean;
72
106
  };
73
- }[];
107
+ parser?: undefined;
108
+ })[];
74
109
  };
@@ -2,94 +2,78 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.typescript = void 0;
4
4
  exports.typescript = {
5
- extends: [
6
- 'plugin:@typescript-eslint/recommended',
7
- 'plugin:@croct/javascript',
8
- ],
5
+ extends: ['plugin:@croct/javascript'],
9
6
  plugins: [
10
7
  '@typescript-eslint',
11
8
  '@croct',
12
9
  ],
13
- rules: {
14
- '@typescript-eslint/array-type': [
15
- 'error',
16
- {
17
- default: 'array-simple',
18
- },
19
- ],
20
- '@typescript-eslint/prefer-as-const': 'error',
21
- '@typescript-eslint/adjacent-overload-signatures': 'error',
22
- '@typescript-eslint/type-annotation-spacing': 'error',
23
- '@typescript-eslint/semi': ['error', 'always'],
24
- '@typescript-eslint/strict-boolean-expressions': [
25
- 'error',
26
- {
27
- allowString: false,
28
- allowNumber: false,
29
- allowNullableObject: false,
30
- },
31
- ],
32
- '@typescript-eslint/prefer-regexp-exec': 'error',
33
- '@typescript-eslint/prefer-optional-chain': 'error',
34
- 'no-shadow': 'off',
35
- '@typescript-eslint/no-shadow': [
36
- 'error',
37
- {
38
- ignoreTypeValueShadow: true,
39
- ignoreFunctionTypeParameterNameValueShadow: true,
40
- },
41
- ],
42
- '@typescript-eslint/no-empty-interface': 'off',
43
- '@typescript-eslint/explicit-member-accessibility': [
44
- 'error',
45
- ],
46
- '@typescript-eslint/explicit-module-boundary-types': 'off',
47
- '@typescript-eslint/explicit-function-return-type': [
48
- 'error',
49
- ],
50
- '@typescript-eslint/no-explicit-any': 'off',
51
- 'no-use-before-define': 'off',
52
- '@typescript-eslint/no-use-before-define': 'error',
53
- 'no-unused-expressions': 'off',
54
- '@typescript-eslint/no-unused-expressions': 'error',
55
- indent: [
56
- 'error',
57
- 4,
58
- {
59
- SwitchCase: 1,
60
- },
61
- ],
62
- '@typescript-eslint/no-unused-vars': 'error',
63
- 'no-unused-vars': 'off',
64
- '@typescript-eslint/no-non-null-assertion': 'off',
65
- 'object-curly-spacing': 'off',
66
- '@typescript-eslint/object-curly-spacing': 'error',
67
- '@typescript-eslint/member-delimiter-style': [
68
- 'error',
69
- {
70
- multiline: {
71
- delimiter: 'comma',
72
- requireLast: true,
73
- },
74
- singleline: {
75
- delimiter: 'comma',
76
- requireLast: false,
77
- },
78
- overrides: {
79
- interface: {
10
+ overrides: [
11
+ {
12
+ files: ['**/*.ts', '**/*.tsx'],
13
+ extends: ['plugin:@typescript-eslint/recommended'],
14
+ parser: '@typescript-eslint/parser',
15
+ rules: {
16
+ '@typescript-eslint/array-type': ['error', {
17
+ default: 'array-simple',
18
+ }],
19
+ '@typescript-eslint/prefer-as-const': 'error',
20
+ '@typescript-eslint/adjacent-overload-signatures': 'error',
21
+ '@typescript-eslint/type-annotation-spacing': 'error',
22
+ '@typescript-eslint/semi': ['error', 'always'],
23
+ '@typescript-eslint/strict-boolean-expressions': ['error', {
24
+ allowString: false,
25
+ allowNumber: false,
26
+ allowNullableObject: false,
27
+ }],
28
+ '@typescript-eslint/prefer-regexp-exec': 'error',
29
+ '@typescript-eslint/prefer-optional-chain': 'error',
30
+ 'no-shadow': 'off',
31
+ '@typescript-eslint/no-shadow': ['error', {
32
+ ignoreTypeValueShadow: true,
33
+ ignoreFunctionTypeParameterNameValueShadow: true,
34
+ }],
35
+ '@typescript-eslint/no-empty-interface': 'off',
36
+ '@typescript-eslint/explicit-member-accessibility': [
37
+ 'error',
38
+ ],
39
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
40
+ '@typescript-eslint/explicit-function-return-type': ['error'],
41
+ '@typescript-eslint/no-explicit-any': 'off',
42
+ 'no-use-before-define': 'off',
43
+ '@typescript-eslint/no-use-before-define': 'error',
44
+ 'no-unused-expressions': 'off',
45
+ '@typescript-eslint/no-unused-expressions': 'error',
46
+ indent: ['error', 4, {
47
+ SwitchCase: 1,
48
+ }],
49
+ '@typescript-eslint/no-unused-vars': 'error',
50
+ 'no-unused-vars': 'off',
51
+ '@typescript-eslint/no-non-null-assertion': 'off',
52
+ 'object-curly-spacing': 'off',
53
+ '@typescript-eslint/object-curly-spacing': 'error',
54
+ '@typescript-eslint/member-delimiter-style': ['error', {
55
+ multiline: {
56
+ delimiter: 'comma',
57
+ requireLast: true,
58
+ },
80
59
  singleline: {
81
- delimiter: 'semi',
60
+ delimiter: 'comma',
61
+ requireLast: false,
82
62
  },
83
- multiline: {
84
- delimiter: 'semi',
63
+ overrides: {
64
+ interface: {
65
+ singleline: {
66
+ delimiter: 'semi',
67
+ },
68
+ multiline: {
69
+ delimiter: 'semi',
70
+ },
71
+ },
85
72
  },
86
- },
87
- },
73
+ }],
74
+ 'no-undef': 'off',
88
75
  },
89
- ],
90
- 'no-undef': 'off',
91
- },
92
- overrides: [
76
+ },
93
77
  {
94
78
  files: [
95
79
  'src/**/*.test.ts',
package/index.d.ts CHANGED
@@ -92,76 +92,111 @@ declare const configuration: {
92
92
  typescript: {
93
93
  extends: string[];
94
94
  plugins: string[];
95
- rules: {
96
- '@typescript-eslint/array-type': (string | {
97
- default: string;
98
- })[];
99
- '@typescript-eslint/prefer-as-const': string;
100
- '@typescript-eslint/adjacent-overload-signatures': string;
101
- '@typescript-eslint/type-annotation-spacing': string;
102
- '@typescript-eslint/semi': string[];
103
- '@typescript-eslint/strict-boolean-expressions': (string | {
104
- allowString: boolean;
105
- allowNumber: boolean;
106
- allowNullableObject: boolean;
107
- })[];
108
- '@typescript-eslint/prefer-regexp-exec': string;
109
- '@typescript-eslint/prefer-optional-chain': string;
110
- 'no-shadow': string;
111
- '@typescript-eslint/no-shadow': (string | {
112
- ignoreTypeValueShadow: boolean;
113
- ignoreFunctionTypeParameterNameValueShadow: boolean;
114
- })[];
115
- '@typescript-eslint/no-empty-interface': string;
116
- '@typescript-eslint/explicit-member-accessibility': string[];
117
- '@typescript-eslint/explicit-module-boundary-types': string;
118
- '@typescript-eslint/explicit-function-return-type': string[];
119
- '@typescript-eslint/no-explicit-any': string;
120
- 'no-use-before-define': string;
121
- '@typescript-eslint/no-use-before-define': string;
122
- 'no-unused-expressions': string;
123
- '@typescript-eslint/no-unused-expressions': string;
124
- indent: (string | number | {
125
- SwitchCase: number;
126
- })[];
127
- '@typescript-eslint/no-unused-vars': string;
128
- 'no-unused-vars': string;
129
- '@typescript-eslint/no-non-null-assertion': string;
130
- 'object-curly-spacing': string;
131
- '@typescript-eslint/object-curly-spacing': string;
132
- '@typescript-eslint/member-delimiter-style': (string | {
133
- multiline: {
134
- delimiter: string;
135
- requireLast: boolean;
136
- };
137
- singleline: {
138
- delimiter: string;
139
- requireLast: boolean;
140
- };
141
- overrides: {
142
- interface: {
143
- singleline: {
144
- delimiter: string;
145
- };
146
- multiline: {
147
- delimiter: string;
95
+ overrides: ({
96
+ files: string[];
97
+ extends: string[];
98
+ parser: string;
99
+ rules: {
100
+ '@typescript-eslint/array-type': (string | {
101
+ default: string;
102
+ })[];
103
+ '@typescript-eslint/prefer-as-const': string;
104
+ '@typescript-eslint/adjacent-overload-signatures': string;
105
+ '@typescript-eslint/type-annotation-spacing': string;
106
+ '@typescript-eslint/semi': string[];
107
+ '@typescript-eslint/strict-boolean-expressions': (string | {
108
+ allowString: boolean;
109
+ allowNumber: boolean;
110
+ allowNullableObject: boolean;
111
+ })[];
112
+ '@typescript-eslint/prefer-regexp-exec': string;
113
+ '@typescript-eslint/prefer-optional-chain': string;
114
+ 'no-shadow': string;
115
+ '@typescript-eslint/no-shadow': (string | {
116
+ ignoreTypeValueShadow: boolean;
117
+ ignoreFunctionTypeParameterNameValueShadow: boolean;
118
+ })[];
119
+ '@typescript-eslint/no-empty-interface': string;
120
+ '@typescript-eslint/explicit-member-accessibility': string[];
121
+ '@typescript-eslint/explicit-module-boundary-types': string;
122
+ '@typescript-eslint/explicit-function-return-type': string[];
123
+ '@typescript-eslint/no-explicit-any': string;
124
+ 'no-use-before-define': string;
125
+ '@typescript-eslint/no-use-before-define': string;
126
+ 'no-unused-expressions': string;
127
+ '@typescript-eslint/no-unused-expressions': string;
128
+ indent: (string | number | {
129
+ SwitchCase: number;
130
+ })[];
131
+ '@typescript-eslint/no-unused-vars': string;
132
+ 'no-unused-vars': string;
133
+ '@typescript-eslint/no-non-null-assertion': string;
134
+ 'object-curly-spacing': string;
135
+ '@typescript-eslint/object-curly-spacing': string;
136
+ '@typescript-eslint/member-delimiter-style': (string | {
137
+ multiline: {
138
+ delimiter: string;
139
+ requireLast: boolean;
140
+ };
141
+ singleline: {
142
+ delimiter: string;
143
+ requireLast: boolean;
144
+ };
145
+ overrides: {
146
+ interface: {
147
+ singleline: {
148
+ delimiter: string;
149
+ };
150
+ multiline: {
151
+ delimiter: string;
152
+ };
148
153
  };
149
154
  };
150
- };
151
- })[];
152
- 'no-undef': string;
153
- };
154
- overrides: {
155
+ })[];
156
+ 'no-undef': string;
157
+ 'no-new-object'?: undefined;
158
+ };
159
+ plugins?: undefined;
160
+ env?: undefined;
161
+ } | {
155
162
  files: string[];
156
163
  extends: string[];
157
164
  plugins: string[];
158
165
  rules: {
159
166
  'no-new-object': string;
167
+ '@typescript-eslint/array-type'?: undefined;
168
+ '@typescript-eslint/prefer-as-const'?: undefined;
169
+ '@typescript-eslint/adjacent-overload-signatures'?: undefined;
170
+ '@typescript-eslint/type-annotation-spacing'?: undefined;
171
+ '@typescript-eslint/semi'?: undefined;
172
+ '@typescript-eslint/strict-boolean-expressions'?: undefined;
173
+ '@typescript-eslint/prefer-regexp-exec'?: undefined;
174
+ '@typescript-eslint/prefer-optional-chain'?: undefined;
175
+ 'no-shadow'?: undefined;
176
+ '@typescript-eslint/no-shadow'?: undefined;
177
+ '@typescript-eslint/no-empty-interface'?: undefined;
178
+ '@typescript-eslint/explicit-member-accessibility'?: undefined;
179
+ '@typescript-eslint/explicit-module-boundary-types'?: undefined;
180
+ '@typescript-eslint/explicit-function-return-type'?: undefined;
181
+ '@typescript-eslint/no-explicit-any'?: undefined;
182
+ 'no-use-before-define'?: undefined;
183
+ '@typescript-eslint/no-use-before-define'?: undefined;
184
+ 'no-unused-expressions'?: undefined;
185
+ '@typescript-eslint/no-unused-expressions'?: undefined;
186
+ indent?: undefined;
187
+ '@typescript-eslint/no-unused-vars'?: undefined;
188
+ 'no-unused-vars'?: undefined;
189
+ '@typescript-eslint/no-non-null-assertion'?: undefined;
190
+ 'object-curly-spacing'?: undefined;
191
+ '@typescript-eslint/object-curly-spacing'?: undefined;
192
+ '@typescript-eslint/member-delimiter-style'?: undefined;
193
+ 'no-undef'?: undefined;
160
194
  };
161
195
  env: {
162
196
  jest: boolean;
163
197
  };
164
- }[];
198
+ parser?: undefined;
199
+ })[];
165
200
  };
166
201
  javascript: {
167
202
  extends: string[];
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@croct/eslint-plugin",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "ESLint rules and presets applied to all Croct JavaScript projects.",
5
- "author": "",
6
- "license": "UNLICENSED",
5
+ "license": "MIT",
6
+ "author": {
7
+ "name": "Croct",
8
+ "email": "lib+coding-standard-js@croct.com",
9
+ "url": "https://croct.com"
10
+ },
7
11
  "main": "index.js",
8
12
  "types": "index.d.ts",
9
13
  "repository": {