@tailwind-ts/eslint-plugin 0.1.0 → 0.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/README.md +85 -0
- package/index.js +9 -0
- package/kelly.js +56 -0
- package/package.json +20 -80
- package/scripts/install-check.cjs +220 -0
- package/LICENSE +0 -21
- package/docs/rules/no-invalid-apply.md +0 -37
- package/docs/rules/no-invalid-classname.md +0 -39
- package/lib/index.cjs +0 -370
- package/lib/index.d.cts +0 -33
- package/lib/index.d.mts +0 -33
- package/lib/index.d.ts +0 -33
- package/lib/index.mjs +0 -367
- package/lib/worker/validate.mjs +0 -65
package/lib/index.cjs
DELETED
|
@@ -1,370 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const utils = require('@typescript-eslint/utils');
|
|
4
|
-
const node_fs = require('node:fs');
|
|
5
|
-
const node_path = require('node:path');
|
|
6
|
-
const node_url = require('node:url');
|
|
7
|
-
const synckit = require('synckit');
|
|
8
|
-
|
|
9
|
-
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
10
|
-
const name = "@tailwind-ts/eslint-plugin";
|
|
11
|
-
const version = "0.1.0";
|
|
12
|
-
const packageJson = {
|
|
13
|
-
name: name,
|
|
14
|
-
version: version};
|
|
15
|
-
|
|
16
|
-
function isStringLiteral(node) {
|
|
17
|
-
return node.type === "Literal" && typeof node.value === "string";
|
|
18
|
-
}
|
|
19
|
-
function collectFromExpression(node, ignoredKeys, functionNames, literals) {
|
|
20
|
-
if (!node || node.type === "SpreadElement") {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
if (isStringLiteral(node)) {
|
|
24
|
-
literals.push({ value: node.value, node });
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
if (node.type === "TemplateLiteral" && node.expressions.length === 0) {
|
|
28
|
-
const value = node.quasis.map((quasi) => quasi.value.cooked ?? "").join("");
|
|
29
|
-
literals.push({ value, node });
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
if (node.type === "LogicalExpression") {
|
|
33
|
-
collectFromExpression(node.left, ignoredKeys, functionNames, literals);
|
|
34
|
-
collectFromExpression(node.right, ignoredKeys, functionNames, literals);
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
if (node.type === "ConditionalExpression") {
|
|
38
|
-
collectFromExpression(node.consequent, ignoredKeys, functionNames, literals);
|
|
39
|
-
collectFromExpression(node.alternate, ignoredKeys, functionNames, literals);
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
if (node.type === "ArrayExpression") {
|
|
43
|
-
for (const element of node.elements) {
|
|
44
|
-
collectFromExpression(element, ignoredKeys, functionNames, literals);
|
|
45
|
-
}
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
if (node.type === "ObjectExpression") {
|
|
49
|
-
for (const property of node.properties) {
|
|
50
|
-
if (property.type === "Property") {
|
|
51
|
-
if (property.key.type === "Identifier") {
|
|
52
|
-
if (ignoredKeys.has(property.key.name)) {
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
collectFromExpression(
|
|
57
|
-
property.value,
|
|
58
|
-
ignoredKeys,
|
|
59
|
-
functionNames,
|
|
60
|
-
literals
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
if (node.type === "CallExpression" && node.callee.type === "Identifier") {
|
|
67
|
-
if (functionNames.has(node.callee.name)) {
|
|
68
|
-
for (const argument of node.arguments) {
|
|
69
|
-
collectFromExpression(
|
|
70
|
-
argument,
|
|
71
|
-
ignoredKeys,
|
|
72
|
-
functionNames,
|
|
73
|
-
literals
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
function extractClassLiteralsFromJsxAttribute(attribute, options) {
|
|
80
|
-
const literals = [];
|
|
81
|
-
const ignoredKeys = new Set(options.ignoredKeys);
|
|
82
|
-
const functionNames = new Set(options.functions);
|
|
83
|
-
if (!attribute.value) {
|
|
84
|
-
return literals;
|
|
85
|
-
}
|
|
86
|
-
if (attribute.value.type === "Literal" && typeof attribute.value.value === "string") {
|
|
87
|
-
literals.push({ value: attribute.value.value, node: attribute.value });
|
|
88
|
-
return literals;
|
|
89
|
-
}
|
|
90
|
-
if (attribute.value.type === "JSXExpressionContainer") {
|
|
91
|
-
collectFromExpression(
|
|
92
|
-
attribute.value.expression,
|
|
93
|
-
ignoredKeys,
|
|
94
|
-
functionNames,
|
|
95
|
-
literals
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
return literals;
|
|
99
|
-
}
|
|
100
|
-
function extractClassLiteralsFromCallExpression(callExpression, options) {
|
|
101
|
-
if (callExpression.callee.type !== "Identifier") {
|
|
102
|
-
return [];
|
|
103
|
-
}
|
|
104
|
-
const functionNames = new Set(options.functions);
|
|
105
|
-
if (!functionNames.has(callExpression.callee.name)) {
|
|
106
|
-
return [];
|
|
107
|
-
}
|
|
108
|
-
const literals = [];
|
|
109
|
-
const ignoredKeys = new Set(options.ignoredKeys);
|
|
110
|
-
for (const argument of callExpression.arguments) {
|
|
111
|
-
collectFromExpression(
|
|
112
|
-
argument,
|
|
113
|
-
ignoredKeys,
|
|
114
|
-
functionNames,
|
|
115
|
-
literals
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
return literals;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
const DEFAULT_ATTRIBUTES = ["class", "className"];
|
|
122
|
-
const DEFAULT_FUNCTIONS = [
|
|
123
|
-
"cn",
|
|
124
|
-
"clsx",
|
|
125
|
-
"cva",
|
|
126
|
-
"twMerge",
|
|
127
|
-
"twJoin"
|
|
128
|
-
];
|
|
129
|
-
const DEFAULT_IGNORED_KEYS = [
|
|
130
|
-
"defaultVariants",
|
|
131
|
-
"compoundVariants",
|
|
132
|
-
"compoundSlots"
|
|
133
|
-
];
|
|
134
|
-
function toRegExp(pattern) {
|
|
135
|
-
return new RegExp(pattern);
|
|
136
|
-
}
|
|
137
|
-
function parsePluginSettings(settings) {
|
|
138
|
-
if (!settings?.cssConfigPath) {
|
|
139
|
-
throw new Error(
|
|
140
|
-
"eslint-plugin-tailwind-ts: settings.tailwindTs.cssConfigPath is required (path to your Tailwind v4 CSS entry file)."
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
const whitelist = (settings.whitelist ?? []).map(toRegExp);
|
|
144
|
-
return {
|
|
145
|
-
cssConfigPath: settings.cssConfigPath,
|
|
146
|
-
attributes: settings.attributes ?? [...DEFAULT_ATTRIBUTES],
|
|
147
|
-
functions: settings.functions ?? [...DEFAULT_FUNCTIONS],
|
|
148
|
-
whitelist,
|
|
149
|
-
ignoredKeys: settings.ignoredKeys ?? [...DEFAULT_IGNORED_KEYS]
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
function isWhitelisted(className, whitelist) {
|
|
153
|
-
return whitelist.some((pattern) => pattern.test(className));
|
|
154
|
-
}
|
|
155
|
-
function splitClassTokens(classString) {
|
|
156
|
-
return classString.trim().split(/\s+/).filter(Boolean);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
const CACHE_TTL_MS = 10 * 60 * 1e3;
|
|
160
|
-
const resultCache = /* @__PURE__ */ new Map();
|
|
161
|
-
const compilerMtimeCache = /* @__PURE__ */ new Map();
|
|
162
|
-
function resolveWorkerPath() {
|
|
163
|
-
const dir = node_path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))));
|
|
164
|
-
const candidates = [
|
|
165
|
-
node_path.join(dir, "../worker/validate.mjs"),
|
|
166
|
-
node_path.join(dir, "../../worker/validate.mjs")
|
|
167
|
-
];
|
|
168
|
-
for (const candidate of candidates) {
|
|
169
|
-
if (node_fs.existsSync(candidate)) {
|
|
170
|
-
return candidate;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
throw new Error("eslint-plugin-tailwind-ts: validation worker not found");
|
|
174
|
-
}
|
|
175
|
-
const runValidate = synckit.createSyncFn(resolveWorkerPath());
|
|
176
|
-
function resolveCssConfigPath(cssConfigPath, cwd) {
|
|
177
|
-
return node_path.isAbsolute(cssConfigPath) ? cssConfigPath : node_path.resolve(cwd, cssConfigPath);
|
|
178
|
-
}
|
|
179
|
-
function getCssMtime(cssConfigPath) {
|
|
180
|
-
return node_fs.statSync(cssConfigPath).mtimeMs;
|
|
181
|
-
}
|
|
182
|
-
function isCompilerCacheValid(cssConfigPath) {
|
|
183
|
-
const cached = compilerMtimeCache.get(cssConfigPath);
|
|
184
|
-
if (!cached) {
|
|
185
|
-
return false;
|
|
186
|
-
}
|
|
187
|
-
try {
|
|
188
|
-
return cached.mtimeMs === getCssMtime(cssConfigPath);
|
|
189
|
-
} catch {
|
|
190
|
-
return false;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
function touchCompilerCache(cssConfigPath) {
|
|
194
|
-
compilerMtimeCache.set(cssConfigPath, {
|
|
195
|
-
mtimeMs: getCssMtime(cssConfigPath)
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
function invalidateResultCacheForConfig(cssConfigPath) {
|
|
199
|
-
for (const key of resultCache.keys()) {
|
|
200
|
-
if (key.startsWith(`${cssConfigPath}::`)) {
|
|
201
|
-
resultCache.delete(key);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
function validateTailwindClass(request) {
|
|
206
|
-
const resolvedCssPath = resolveCssConfigPath(
|
|
207
|
-
request.cssConfigPath,
|
|
208
|
-
request.cwd
|
|
209
|
-
);
|
|
210
|
-
if (!isCompilerCacheValid(resolvedCssPath)) {
|
|
211
|
-
invalidateResultCacheForConfig(resolvedCssPath);
|
|
212
|
-
touchCompilerCache(resolvedCssPath);
|
|
213
|
-
}
|
|
214
|
-
const cacheKey = `${resolvedCssPath}::${request.className}`;
|
|
215
|
-
const cached = resultCache.get(cacheKey);
|
|
216
|
-
if (cached && cached.expiresAt > Date.now()) {
|
|
217
|
-
return { valid: cached.valid };
|
|
218
|
-
}
|
|
219
|
-
const response = runValidate({
|
|
220
|
-
cssConfigPath: resolvedCssPath,
|
|
221
|
-
className: request.className,
|
|
222
|
-
cwd: request.cwd
|
|
223
|
-
});
|
|
224
|
-
resultCache.set(cacheKey, {
|
|
225
|
-
valid: response.valid,
|
|
226
|
-
expiresAt: Date.now() + CACHE_TTL_MS
|
|
227
|
-
});
|
|
228
|
-
return response;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
const RULE_NAME = "no-invalid-classname";
|
|
232
|
-
const noInvalidClassname = utils.ESLintUtils.RuleCreator.withoutDocs({
|
|
233
|
-
meta: {
|
|
234
|
-
type: "problem",
|
|
235
|
-
docs: {
|
|
236
|
-
description: "Disallow invalid or typo Tailwind CSS class names in JSX and utility functions."
|
|
237
|
-
},
|
|
238
|
-
schema: [
|
|
239
|
-
{
|
|
240
|
-
type: "object",
|
|
241
|
-
additionalProperties: false,
|
|
242
|
-
properties: {
|
|
243
|
-
whitelist: {
|
|
244
|
-
type: "array",
|
|
245
|
-
items: { type: "string" }
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
],
|
|
250
|
-
messages: {
|
|
251
|
-
invalidClass: 'Class "{{ className }}" is not a valid Tailwind CSS class.'
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
defaultOptions: [{}],
|
|
255
|
-
create(context) {
|
|
256
|
-
const pluginSettings = context.settings.tailwindTs;
|
|
257
|
-
let resolvedSettings;
|
|
258
|
-
try {
|
|
259
|
-
resolvedSettings = parsePluginSettings(pluginSettings);
|
|
260
|
-
} catch (error) {
|
|
261
|
-
const message = error instanceof Error ? error.message : "Invalid plugin settings.";
|
|
262
|
-
context.report({
|
|
263
|
-
loc: { line: 1, column: 0 },
|
|
264
|
-
message
|
|
265
|
-
});
|
|
266
|
-
return {};
|
|
267
|
-
}
|
|
268
|
-
const ruleWhitelist = (context.options[0]?.whitelist ?? []).map(
|
|
269
|
-
(pattern) => new RegExp(pattern)
|
|
270
|
-
);
|
|
271
|
-
const whitelist = [...resolvedSettings.whitelist, ...ruleWhitelist];
|
|
272
|
-
const attributeNames = new Set(resolvedSettings.attributes);
|
|
273
|
-
const cwd = context.cwd ?? process.cwd();
|
|
274
|
-
function reportInvalidClasses(literals) {
|
|
275
|
-
for (const literal of literals) {
|
|
276
|
-
for (const className of splitClassTokens(literal.value)) {
|
|
277
|
-
if (isWhitelisted(className, whitelist)) {
|
|
278
|
-
continue;
|
|
279
|
-
}
|
|
280
|
-
const result = validateTailwindClass({
|
|
281
|
-
cssConfigPath: resolvedSettings.cssConfigPath,
|
|
282
|
-
className,
|
|
283
|
-
cwd
|
|
284
|
-
});
|
|
285
|
-
if (!result.valid) {
|
|
286
|
-
context.report({
|
|
287
|
-
node: literal.node,
|
|
288
|
-
messageId: "invalidClass",
|
|
289
|
-
data: { className }
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
return {
|
|
296
|
-
JSXAttribute(node) {
|
|
297
|
-
if (node.name.type !== "JSXIdentifier" || !attributeNames.has(node.name.name)) {
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
reportInvalidClasses(
|
|
301
|
-
extractClassLiteralsFromJsxAttribute(node, {
|
|
302
|
-
functions: resolvedSettings.functions,
|
|
303
|
-
ignoredKeys: resolvedSettings.ignoredKeys
|
|
304
|
-
})
|
|
305
|
-
);
|
|
306
|
-
},
|
|
307
|
-
CallExpression(node) {
|
|
308
|
-
reportInvalidClasses(
|
|
309
|
-
extractClassLiteralsFromCallExpression(node, {
|
|
310
|
-
functions: resolvedSettings.functions,
|
|
311
|
-
ignoredKeys: resolvedSettings.ignoredKeys
|
|
312
|
-
})
|
|
313
|
-
);
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
|
|
319
|
-
const createConfig = (rules) => {
|
|
320
|
-
const result = {};
|
|
321
|
-
for (const [ruleName, value] of Object.entries(rules)) {
|
|
322
|
-
result[`tailwind-ts/${ruleName}`] = value;
|
|
323
|
-
}
|
|
324
|
-
return result;
|
|
325
|
-
};
|
|
326
|
-
const plugin = {
|
|
327
|
-
meta: {
|
|
328
|
-
name: packageJson.name,
|
|
329
|
-
version: packageJson.version
|
|
330
|
-
},
|
|
331
|
-
configs: {
|
|
332
|
-
get recommended() {
|
|
333
|
-
return sharedConfigs.recommended;
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
rules: {
|
|
337
|
-
[RULE_NAME]: noInvalidClassname
|
|
338
|
-
}
|
|
339
|
-
};
|
|
340
|
-
const recommendedRules = {
|
|
341
|
-
[RULE_NAME]: "error"
|
|
342
|
-
};
|
|
343
|
-
const configBase = {
|
|
344
|
-
name: "tailwind-ts/base",
|
|
345
|
-
plugins: {
|
|
346
|
-
"tailwind-ts": plugin
|
|
347
|
-
},
|
|
348
|
-
settings: {
|
|
349
|
-
tailwindTs: {}
|
|
350
|
-
},
|
|
351
|
-
files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
|
|
352
|
-
languageOptions: {
|
|
353
|
-
parserOptions: {
|
|
354
|
-
ecmaVersion: "latest",
|
|
355
|
-
sourceType: "module",
|
|
356
|
-
ecmaFeatures: {
|
|
357
|
-
jsx: true
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
};
|
|
362
|
-
const sharedConfigs = {
|
|
363
|
-
recommended: {
|
|
364
|
-
...configBase,
|
|
365
|
-
name: "tailwind-ts/recommended",
|
|
366
|
-
rules: createConfig(recommendedRules)
|
|
367
|
-
}
|
|
368
|
-
};
|
|
369
|
-
|
|
370
|
-
module.exports = plugin;
|
package/lib/index.d.cts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
-
import { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
|
|
3
|
-
|
|
4
|
-
interface PluginSettings {
|
|
5
|
-
/** Required. Path to Tailwind v4 CSS entry, e.g. "./src/styles/tailwind.css" */
|
|
6
|
-
cssConfigPath: string;
|
|
7
|
-
/** Attributes/props that may contain Tailwind CSS classes */
|
|
8
|
-
attributes?: string[];
|
|
9
|
-
/** Functions whose arguments will be parsed for class strings */
|
|
10
|
-
functions?: string[];
|
|
11
|
-
/** Whitelist regex patterns for non-Tailwind classes */
|
|
12
|
-
whitelist?: string[];
|
|
13
|
-
/** Keys to ignore in object expressions */
|
|
14
|
-
ignoredKeys?: string[];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare const plugin: {
|
|
18
|
-
meta: {
|
|
19
|
-
name: string;
|
|
20
|
-
version: string;
|
|
21
|
-
};
|
|
22
|
-
configs: {
|
|
23
|
-
readonly recommended: FlatConfig.Config | FlatConfig.ConfigArray;
|
|
24
|
-
};
|
|
25
|
-
rules: {
|
|
26
|
-
"no-invalid-classname": _typescript_eslint_utils_ts_eslint.RuleModule<"invalidClass", [({
|
|
27
|
-
whitelist?: string[];
|
|
28
|
-
} | undefined)?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export = plugin;
|
|
33
|
-
export type { PluginSettings };
|
package/lib/index.d.mts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
-
import { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
|
|
3
|
-
|
|
4
|
-
interface PluginSettings {
|
|
5
|
-
/** Required. Path to Tailwind v4 CSS entry, e.g. "./src/styles/tailwind.css" */
|
|
6
|
-
cssConfigPath: string;
|
|
7
|
-
/** Attributes/props that may contain Tailwind CSS classes */
|
|
8
|
-
attributes?: string[];
|
|
9
|
-
/** Functions whose arguments will be parsed for class strings */
|
|
10
|
-
functions?: string[];
|
|
11
|
-
/** Whitelist regex patterns for non-Tailwind classes */
|
|
12
|
-
whitelist?: string[];
|
|
13
|
-
/** Keys to ignore in object expressions */
|
|
14
|
-
ignoredKeys?: string[];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare const plugin: {
|
|
18
|
-
meta: {
|
|
19
|
-
name: string;
|
|
20
|
-
version: string;
|
|
21
|
-
};
|
|
22
|
-
configs: {
|
|
23
|
-
readonly recommended: FlatConfig.Config | FlatConfig.ConfigArray;
|
|
24
|
-
};
|
|
25
|
-
rules: {
|
|
26
|
-
"no-invalid-classname": _typescript_eslint_utils_ts_eslint.RuleModule<"invalidClass", [({
|
|
27
|
-
whitelist?: string[];
|
|
28
|
-
} | undefined)?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export { plugin as default };
|
|
33
|
-
export type { PluginSettings };
|
package/lib/index.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
-
import { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
|
|
3
|
-
|
|
4
|
-
interface PluginSettings {
|
|
5
|
-
/** Required. Path to Tailwind v4 CSS entry, e.g. "./src/styles/tailwind.css" */
|
|
6
|
-
cssConfigPath: string;
|
|
7
|
-
/** Attributes/props that may contain Tailwind CSS classes */
|
|
8
|
-
attributes?: string[];
|
|
9
|
-
/** Functions whose arguments will be parsed for class strings */
|
|
10
|
-
functions?: string[];
|
|
11
|
-
/** Whitelist regex patterns for non-Tailwind classes */
|
|
12
|
-
whitelist?: string[];
|
|
13
|
-
/** Keys to ignore in object expressions */
|
|
14
|
-
ignoredKeys?: string[];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare const plugin: {
|
|
18
|
-
meta: {
|
|
19
|
-
name: string;
|
|
20
|
-
version: string;
|
|
21
|
-
};
|
|
22
|
-
configs: {
|
|
23
|
-
readonly recommended: FlatConfig.Config | FlatConfig.ConfigArray;
|
|
24
|
-
};
|
|
25
|
-
rules: {
|
|
26
|
-
"no-invalid-classname": _typescript_eslint_utils_ts_eslint.RuleModule<"invalidClass", [({
|
|
27
|
-
whitelist?: string[];
|
|
28
|
-
} | undefined)?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export = plugin;
|
|
33
|
-
export type { PluginSettings };
|