@swiftwc/eslint-plugin 1.1.7-canary.6 → 1.1.7-canary.7
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/CHANGELOG.md +7 -0
- package/generated/index.js +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
- package/tsconfig.json +2 -7
- package/generated/emberjs/en.d.ts +0 -25
- package/generated/html/en.d.ts +0 -25
- package/generated/index.d.ts +0 -30
package/CHANGELOG.md
CHANGED
package/generated/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swiftwc/eslint-plugin",
|
|
3
|
-
"version": "1.1.7-canary.
|
|
3
|
+
"version": "1.1.7-canary.7",
|
|
4
4
|
"description": "Rules enforcing best practices while using SwiftWC.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@swiftwc/ui": "1.0.1-canary.
|
|
25
|
+
"@swiftwc/ui": "1.0.1-canary.6",
|
|
26
26
|
"eslint": ">=10.0.0"
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TSESTree } from '@typescript-eslint/utils'
|
|
2
2
|
import type { Linter, RuleContext, RuleListener } from '@typescript-eslint/utils/ts-eslint'
|
|
3
|
-
import { readFileSync } from 'fs'
|
|
3
|
+
import { readFileSync } from 'node:fs'
|
|
4
4
|
|
|
5
5
|
export type BaseNode = { type: string }
|
|
6
6
|
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "../../.config/tsconfig.
|
|
2
|
+
"extends": "../../.config/tsconfig.node.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"outDir": "generated",
|
|
5
|
-
"rootDir": "src"
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"module": "NodeNext",
|
|
8
|
-
"moduleResolution": "NodeNext",
|
|
9
|
-
"resolveJsonModule": true,
|
|
10
|
-
"types": ["node"]
|
|
5
|
+
"rootDir": "src"
|
|
11
6
|
},
|
|
12
7
|
"include": ["src"],
|
|
13
8
|
"exclude": ["**/*.test.ts"]
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
meta: {
|
|
3
|
-
name: any;
|
|
4
|
-
version: any;
|
|
5
|
-
namespace: string;
|
|
6
|
-
};
|
|
7
|
-
configs: {};
|
|
8
|
-
rules: {
|
|
9
|
-
'allowed-tags': {
|
|
10
|
-
meta: {
|
|
11
|
-
type: "problem";
|
|
12
|
-
docs: {
|
|
13
|
-
description: string;
|
|
14
|
-
url: string;
|
|
15
|
-
};
|
|
16
|
-
schema: never[];
|
|
17
|
-
messages: {
|
|
18
|
-
disallowedTag: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
create: (context: Readonly<import("@typescript-eslint/utils/ts-eslint").RuleContext<string, readonly unknown[]>>) => import("@typescript-eslint/utils/ts-eslint").RuleListener;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
package/generated/html/en.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
meta: {
|
|
3
|
-
name: any;
|
|
4
|
-
version: any;
|
|
5
|
-
namespace: string;
|
|
6
|
-
};
|
|
7
|
-
configs: {};
|
|
8
|
-
rules: {
|
|
9
|
-
'allowed-tags': {
|
|
10
|
-
meta: {
|
|
11
|
-
type: "problem";
|
|
12
|
-
docs: {
|
|
13
|
-
description: string;
|
|
14
|
-
url: string;
|
|
15
|
-
};
|
|
16
|
-
schema: never[];
|
|
17
|
-
messages: {
|
|
18
|
-
disallowedTag: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
create: (context: Readonly<import("@typescript-eslint/utils/ts-eslint").RuleContext<string, readonly unknown[]>>) => import("@typescript-eslint/utils/ts-eslint").RuleListener;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
package/generated/index.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { RuleContext, RuleListener } from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
-
export type BaseNode = {
|
|
3
|
-
type: string;
|
|
4
|
-
};
|
|
5
|
-
export declare function getAllowedParents(tag: string): string[] | undefined;
|
|
6
|
-
export declare function validate<N extends BaseNode>(tag: string, getParentTag: (node: N) => string | undefined, allowedParents: string[], context: RuleContext<string, readonly unknown[]>, node: N): void;
|
|
7
|
-
export declare function createPlugin(create: (context: Readonly<RuleContext<string, readonly unknown[]>>) => RuleListener): {
|
|
8
|
-
meta: {
|
|
9
|
-
name: any;
|
|
10
|
-
version: any;
|
|
11
|
-
namespace: string;
|
|
12
|
-
};
|
|
13
|
-
configs: {};
|
|
14
|
-
rules: {
|
|
15
|
-
'allowed-tags': {
|
|
16
|
-
meta: {
|
|
17
|
-
type: "problem";
|
|
18
|
-
docs: {
|
|
19
|
-
description: string;
|
|
20
|
-
url: string;
|
|
21
|
-
};
|
|
22
|
-
schema: never[];
|
|
23
|
-
messages: {
|
|
24
|
-
disallowedTag: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
create: (context: Readonly<RuleContext<string, readonly unknown[]>>) => RuleListener;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
};
|