@tcy/eslint-rules 1.0.3 → 1.0.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.
- package/.github/workflows/npm-publish.yaml +1 -0
- package/dist/array-elements-per-line.d.ts +16 -0
- package/dist/enforce-tailwind-important.d.ts +21 -0
- package/dist/export-specifiers-per-line.d.ts +14 -0
- package/dist/import-specifiers-per-line.d.ts +27 -0
- package/dist/index.d.ts +90 -0
- package/dist/jsx-expression-string-literals.d.ts +14 -0
- package/package.json +11 -2
- package/tsconfig.json +15 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace meta {
|
|
3
|
+
let type: string;
|
|
4
|
+
namespace docs {
|
|
5
|
+
let description: string;
|
|
6
|
+
let category: string;
|
|
7
|
+
let recommended: boolean;
|
|
8
|
+
}
|
|
9
|
+
let fixable: string;
|
|
10
|
+
let schema: any[];
|
|
11
|
+
}
|
|
12
|
+
function create(context: any): {
|
|
13
|
+
ArrayExpression(node: any): void;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function isMissingImportant(cls: any): boolean;
|
|
2
|
+
export function addImportant(cls: any): string;
|
|
3
|
+
declare namespace _default {
|
|
4
|
+
namespace meta {
|
|
5
|
+
let type: string;
|
|
6
|
+
namespace docs {
|
|
7
|
+
let description: string;
|
|
8
|
+
let recommended: boolean;
|
|
9
|
+
}
|
|
10
|
+
let fixable: string;
|
|
11
|
+
let schema: any[];
|
|
12
|
+
namespace messages {
|
|
13
|
+
let missingImportant: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function create(context: any): {
|
|
17
|
+
JSXAttribute(node: any): void;
|
|
18
|
+
VariableDeclarator(node: any): void;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace meta {
|
|
3
|
+
let type: string;
|
|
4
|
+
namespace docs {
|
|
5
|
+
let description: string;
|
|
6
|
+
}
|
|
7
|
+
let fixable: string;
|
|
8
|
+
let schema: any[];
|
|
9
|
+
}
|
|
10
|
+
function create(context: any): {
|
|
11
|
+
ExportNamedDeclaration(node: any): void;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace meta {
|
|
3
|
+
let type: string;
|
|
4
|
+
namespace docs {
|
|
5
|
+
let description: string;
|
|
6
|
+
}
|
|
7
|
+
let fixable: string;
|
|
8
|
+
let schema: {
|
|
9
|
+
type: string;
|
|
10
|
+
properties: {
|
|
11
|
+
maxSpecifiers: {
|
|
12
|
+
type: string;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
maxLen: {
|
|
16
|
+
type: string;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
additionalProperties: boolean;
|
|
21
|
+
}[];
|
|
22
|
+
}
|
|
23
|
+
function create(context: any): {
|
|
24
|
+
ImportDeclaration(node: any): void;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export default _default;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let rules: {
|
|
3
|
+
'import-specifiers-per-line': {
|
|
4
|
+
meta: {
|
|
5
|
+
type: string;
|
|
6
|
+
docs: {
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
9
|
+
fixable: string;
|
|
10
|
+
schema: {
|
|
11
|
+
type: string;
|
|
12
|
+
properties: {
|
|
13
|
+
maxSpecifiers: {
|
|
14
|
+
type: string;
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
maxLen: {
|
|
18
|
+
type: string;
|
|
19
|
+
default: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
additionalProperties: boolean;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
create(context: any): {
|
|
26
|
+
ImportDeclaration(node: any): void;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
'array-elements-per-line': {
|
|
30
|
+
meta: {
|
|
31
|
+
type: string;
|
|
32
|
+
docs: {
|
|
33
|
+
description: string;
|
|
34
|
+
category: string;
|
|
35
|
+
recommended: boolean;
|
|
36
|
+
};
|
|
37
|
+
fixable: string;
|
|
38
|
+
schema: any[];
|
|
39
|
+
};
|
|
40
|
+
create(context: any): {
|
|
41
|
+
ArrayExpression(node: any): void;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
'export-specifiers-per-line': {
|
|
45
|
+
meta: {
|
|
46
|
+
type: string;
|
|
47
|
+
docs: {
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
fixable: string;
|
|
51
|
+
schema: any[];
|
|
52
|
+
};
|
|
53
|
+
create(context: any): {
|
|
54
|
+
ExportNamedDeclaration(node: any): void;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
'jsx-expression-string-literals': {
|
|
58
|
+
meta: {
|
|
59
|
+
type: string;
|
|
60
|
+
docs: {
|
|
61
|
+
description: string;
|
|
62
|
+
};
|
|
63
|
+
fixable: string;
|
|
64
|
+
schema: any[];
|
|
65
|
+
};
|
|
66
|
+
create(context: any): {
|
|
67
|
+
JSXAttribute(node: any): void;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
'enforce-tailwind-important': {
|
|
71
|
+
meta: {
|
|
72
|
+
type: string;
|
|
73
|
+
docs: {
|
|
74
|
+
description: string;
|
|
75
|
+
recommended: boolean;
|
|
76
|
+
};
|
|
77
|
+
fixable: string;
|
|
78
|
+
schema: any[];
|
|
79
|
+
messages: {
|
|
80
|
+
missingImportant: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
create(context: any): {
|
|
84
|
+
JSXAttribute(node: any): void;
|
|
85
|
+
VariableDeclarator(node: any): void;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace meta {
|
|
3
|
+
let type: string;
|
|
4
|
+
namespace docs {
|
|
5
|
+
let description: string;
|
|
6
|
+
}
|
|
7
|
+
let fixable: string;
|
|
8
|
+
let schema: any[];
|
|
9
|
+
}
|
|
10
|
+
function create(context: any): {
|
|
11
|
+
JSXAttribute(node: any): void;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tcy/eslint-rules",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "```typescript import { plugin as customRules } from 'tcy@eslint-rules/src/index.mjs';",
|
|
5
5
|
"homepage": "https://github.com/tcastelly/eslint-rules#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -14,5 +14,14 @@
|
|
|
14
14
|
"author": "",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"main": "src/index.js",
|
|
17
|
-
"
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
18
|
+
"scripts": {
|
|
19
|
+
"clean": "rimraf dist",
|
|
20
|
+
"build:decl": "tsc",
|
|
21
|
+
"prepublishOnly": "npm run clean && npm run build:decl"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"rimraf": "^6.1.2",
|
|
25
|
+
"typescript": "^5.9.3"
|
|
26
|
+
}
|
|
18
27
|
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"outDir": "dist",
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"emitDeclarationOnly": true,
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"allowJs": true,
|
|
8
|
+
"checkJs": true,
|
|
9
|
+
"target": "es5",
|
|
10
|
+
"lib": ["es2016", "dom"],
|
|
11
|
+
"noImplicitAny": false
|
|
12
|
+
},
|
|
13
|
+
"include": ["src"],
|
|
14
|
+
"exclude": ["dist", "node_modules"]
|
|
15
|
+
}
|