@lvce-editor/eslint-plugin-tsconfig 2.0.0 → 2.3.0
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/dist/index.js +35 -38
- package/package.json +8 -2
package/dist/index.js
CHANGED
|
@@ -50,17 +50,17 @@ const tsconfigAllowImportingTsExtensions = {
|
|
|
50
50
|
const meta$6 = {
|
|
51
51
|
type: 'problem',
|
|
52
52
|
docs: {
|
|
53
|
-
description: 'Ensure that the
|
|
53
|
+
description: 'Ensure that the assumeChangesOnlyAffectDirectDependencies rule is enabled'
|
|
54
54
|
},
|
|
55
55
|
messages: {
|
|
56
|
-
|
|
56
|
+
assumeChangesOnlyAffectDirectDependencies: 'assumeChangesOnlyAffectDirectDependencies rule should be enabled'
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
const create$6 = context => {
|
|
60
|
-
return create$8(context, '
|
|
60
|
+
return create$8(context, 'assumeChangesOnlyAffectDirectDependencies');
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
const
|
|
63
|
+
const tsconfigAssumeChangesOnlyAffectDirectDependencies = {
|
|
64
64
|
__proto__: null,
|
|
65
65
|
create: create$6,
|
|
66
66
|
meta: meta$6
|
|
@@ -69,17 +69,17 @@ const tsconfigForceConsistentCasingInFileNames = {
|
|
|
69
69
|
const meta$5 = {
|
|
70
70
|
type: 'problem',
|
|
71
71
|
docs: {
|
|
72
|
-
description: '
|
|
72
|
+
description: 'Enforce erasableSyntaxOnly'
|
|
73
73
|
},
|
|
74
74
|
messages: {
|
|
75
|
-
|
|
75
|
+
erasableSyntaxOnly: 'erasableSyntaxOnly rule should be enabled'
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
const create$5 = context => {
|
|
79
|
-
return create$8(context, '
|
|
79
|
+
return create$8(context, 'erasableSyntaxOnly');
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
const
|
|
82
|
+
const tsconfigErasableSyntaxOnly = {
|
|
83
83
|
__proto__: null,
|
|
84
84
|
create: create$5,
|
|
85
85
|
meta: meta$5
|
|
@@ -88,17 +88,17 @@ const tsconfigNoUncheckedSideEffectImports = {
|
|
|
88
88
|
const meta$4 = {
|
|
89
89
|
type: 'problem',
|
|
90
90
|
docs: {
|
|
91
|
-
description: '
|
|
91
|
+
description: 'Enforce exactOptionalPropertyTypes'
|
|
92
92
|
},
|
|
93
93
|
messages: {
|
|
94
|
-
|
|
94
|
+
exactOptionalPropertyTypes: 'exactOptionalPropertyTypes rule should be enabled'
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
const create$4 = context => {
|
|
98
|
-
return create$8(context, '
|
|
98
|
+
return create$8(context, 'exactOptionalPropertyTypes');
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
const
|
|
101
|
+
const tsconfigExactOptionalPropertyTypes = {
|
|
102
102
|
__proto__: null,
|
|
103
103
|
create: create$4,
|
|
104
104
|
meta: meta$4
|
|
@@ -107,17 +107,17 @@ const tsconfigNoImplicitAny = {
|
|
|
107
107
|
const meta$3 = {
|
|
108
108
|
type: 'problem',
|
|
109
109
|
docs: {
|
|
110
|
-
description: 'Ensure that the
|
|
110
|
+
description: 'Ensure that the forceConsistentCasingInFileNames rule is enabled'
|
|
111
111
|
},
|
|
112
112
|
messages: {
|
|
113
|
-
|
|
113
|
+
forceConsistentCasingInFileNames: 'forceConsistentCasingInFileNames rule should be enabled'
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
const create$3 = context => {
|
|
117
|
-
return create$8(context, '
|
|
117
|
+
return create$8(context, 'forceConsistentCasingInFileNames');
|
|
118
118
|
};
|
|
119
119
|
|
|
120
|
-
const
|
|
120
|
+
const tsconfigForceConsistentCasingInFileNames = {
|
|
121
121
|
__proto__: null,
|
|
122
122
|
create: create$3,
|
|
123
123
|
meta: meta$3
|
|
@@ -126,17 +126,17 @@ const tsconfigStrict = {
|
|
|
126
126
|
const meta$2 = {
|
|
127
127
|
type: 'problem',
|
|
128
128
|
docs: {
|
|
129
|
-
description: '
|
|
129
|
+
description: 'Disallow implicit any'
|
|
130
130
|
},
|
|
131
131
|
messages: {
|
|
132
|
-
|
|
132
|
+
noImplicitAny: 'noImplicitAny rule should be enabled'
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
135
|
const create$2 = context => {
|
|
136
|
-
return create$8(context, '
|
|
136
|
+
return create$8(context, 'noImplicitAny');
|
|
137
137
|
};
|
|
138
138
|
|
|
139
|
-
const
|
|
139
|
+
const tsconfigNoImplicitAny = {
|
|
140
140
|
__proto__: null,
|
|
141
141
|
create: create$2,
|
|
142
142
|
meta: meta$2
|
|
@@ -145,17 +145,17 @@ const tsconfigAssumeChangesOnlyAffectDirectDependencies = {
|
|
|
145
145
|
const meta$1 = {
|
|
146
146
|
type: 'problem',
|
|
147
147
|
docs: {
|
|
148
|
-
description: '
|
|
148
|
+
description: 'Disallow not allowed keys in JSON objects'
|
|
149
149
|
},
|
|
150
150
|
messages: {
|
|
151
|
-
|
|
151
|
+
noUncheckedSideEffectImports: 'noUncheckedSideEffectImports rule should be enabled'
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
const create$1 = context => {
|
|
155
|
-
return create$8(context, '
|
|
155
|
+
return create$8(context, 'noUncheckedSideEffectImports');
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
-
const
|
|
158
|
+
const tsconfigNoUncheckedSideEffectImports = {
|
|
159
159
|
__proto__: null,
|
|
160
160
|
create: create$1,
|
|
161
161
|
meta: meta$1
|
|
@@ -164,17 +164,17 @@ const tsconfigExactOptionalPropertyTypes = {
|
|
|
164
164
|
const meta = {
|
|
165
165
|
type: 'problem',
|
|
166
166
|
docs: {
|
|
167
|
-
description: '
|
|
167
|
+
description: 'Ensure that the strict mode is enabled'
|
|
168
168
|
},
|
|
169
169
|
messages: {
|
|
170
|
-
|
|
170
|
+
strict: 'strict mode should be enabled'
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
173
|
const create = context => {
|
|
174
|
-
return create$8(context, '
|
|
174
|
+
return create$8(context, 'strict');
|
|
175
175
|
};
|
|
176
176
|
|
|
177
|
-
const
|
|
177
|
+
const tsconfigStrict = {
|
|
178
178
|
__proto__: null,
|
|
179
179
|
create,
|
|
180
180
|
meta
|
|
@@ -198,18 +198,15 @@ const plugin = {
|
|
|
198
198
|
configs: {}
|
|
199
199
|
};
|
|
200
200
|
const recommended = [{
|
|
201
|
+
files: ['**/tsconfig.json'],
|
|
201
202
|
plugins: {
|
|
202
|
-
json
|
|
203
|
-
}
|
|
204
|
-
}, {
|
|
205
|
-
files: ['**/*.json'],
|
|
206
|
-
language: 'json/json',
|
|
207
|
-
rules: {}
|
|
208
|
-
}, {
|
|
209
|
-
plugins: {
|
|
203
|
+
json,
|
|
210
204
|
tsconfig: plugin
|
|
211
|
-
}
|
|
212
|
-
|
|
205
|
+
},
|
|
206
|
+
language: 'json/jsonc',
|
|
207
|
+
languageOptions: {
|
|
208
|
+
allowTrailingCommas: true
|
|
209
|
+
},
|
|
213
210
|
rules: {
|
|
214
211
|
'tsconfig/no-unchecked-side-effect-imports': 'error',
|
|
215
212
|
'tsconfig/force-consistent-casing-in-file-names': 'error',
|
package/package.json
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/eslint-plugin-tsconfig",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/lvce-editor/eslint-config.git"
|
|
8
|
+
},
|
|
5
9
|
"type": "module",
|
|
6
10
|
"keywords": [],
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"description": "",
|
|
9
|
-
"dependencies": {
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@eslint/json": "0.14.0"
|
|
15
|
+
}
|
|
10
16
|
}
|