File tree Expand file tree Collapse file tree 4 files changed +28
-190
lines changed
meta/src/eslint-plugin-playground-dev Expand file tree Collapse file tree 4 files changed +28
-190
lines changed Original file line number Diff line number Diff line change 7979 "playground-dev/avoid-wordpress-builds-dependency" : " error" ,
8080 // Node.js type stripping requires explicit type imports.
8181 "@typescript-eslint/consistent-type-imports" : " error" ,
82- // Disallow TypeScript syntax unsupported by Node.js type stripping.
83- // Parameter properties are handled by @typescript-eslint/parameter-properties.
84- "@typescript-eslint/parameter-properties" : " error" ,
85- // Enums and namespaces with value statements are handled by our custom rule.
86- "playground-dev/no-unsupported-typescript-syntax" : " error"
82+ // Disallow TypeScript parameter properties unsupported by Node.js type stripping.
83+ "@typescript-eslint/parameter-properties" : " error"
8784 }
8885 },
8986 {
Original file line number Diff line number Diff line change @@ -9,35 +9,33 @@ import type {
99// Avoid importing values from 'typedoc' as that
1010// pulls in the entire library including cumbersome
1111// node.js imports.
12- export const ReflectionKind = {
13- Project : 1 ,
14- Module : 2 ,
15- Namespace : 4 ,
16- Enum : 8 ,
17- EnumMember : 16 ,
18- Variable : 32 ,
19- Function : 64 ,
20- Class : 128 ,
21- Interface : 256 ,
22- Constructor : 512 ,
23- Property : 1024 ,
24- Method : 2048 ,
25- CallSignature : 4096 ,
26- IndexSignature : 8192 ,
27- ConstructorSignature : 16384 ,
28- Parameter : 32768 ,
29- TypeLiteral : 65536 ,
30- TypeParameter : 131072 ,
31- Accessor : 262144 ,
32- GetSignature : 524288 ,
33- SetSignature : 1048576 ,
12+ export enum ReflectionKind {
13+ Project = 1 ,
14+ Module = 2 ,
15+ Namespace = 4 ,
16+ Enum = 8 ,
17+ EnumMember = 16 ,
18+ Variable = 32 ,
19+ Function = 64 ,
20+ Class = 128 ,
21+ Interface = 256 ,
22+ Constructor = 512 ,
23+ Property = 1024 ,
24+ Method = 2048 ,
25+ CallSignature = 4096 ,
26+ IndexSignature = 8192 ,
27+ ConstructorSignature = 16384 ,
28+ Parameter = 32768 ,
29+ TypeLiteral = 65536 ,
30+ TypeParameter = 131072 ,
31+ Accessor = 262144 ,
32+ GetSignature = 524288 ,
33+ SetSignature = 1048576 ,
3434 /** @deprecated will be removed in v0.25, not used */
35- ObjectLiteral : 2097152 ,
36- TypeAlias : 4194304 ,
37- Reference : 8388608 ,
38- } as const ;
39-
40- export type ReflectionKind = ( typeof ReflectionKind ) [ keyof typeof ReflectionKind ] ;
35+ ObjectLiteral = 2097152 ,
36+ TypeAlias = 4194304 ,
37+ Reference = 8388608 ,
38+ }
4139
4240const typed = api as any as ProjectReflection ;
4341
Original file line number Diff line number Diff line change 11const wpBuildsDepRule = require ( './avoid-wordpress-builds-dependency' ) ;
2- const noUnsupportedTypescriptSyntaxRule = require ( './no-unsupported-typescript-syntax' ) ;
32const plugin = {
43 rules : {
54 'avoid-wordpress-builds-dependency' : wpBuildsDepRule ,
6- 'no-unsupported-typescript-syntax' : noUnsupportedTypescriptSyntaxRule ,
75 } ,
86} ;
97module . exports = plugin ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments