@@ -4,11 +4,11 @@ var templateIndentAnnotations = [
44 "dedent" ,
55 "html" ,
66 "tsx" ,
7- "ts" ,
7+ "ts"
88] ;
99var p11tOptions = {
1010 type : "natural" ,
11- ignoreCase : false ,
11+ ignoreCase : false
1212} ;
1313var p11tGroups = {
1414 customGroups : {
@@ -18,30 +18,30 @@ var p11tGroups = {
1818 "^name$" ,
1919 "^meta$" ,
2020 "^title$" ,
21- "^description$" ,
21+ "^description$"
2222 ] ,
2323 alias : [ "^alias$" , "^as$" ] ,
24- rules : [ "^node$" , "^messageId$" ] ,
24+ rules : [ "^node$" , "^messageId$" ]
2525 } ,
26- groups : [ "id" , "type" , "meta" , "alias" , "rules" , "unknown" ] ,
26+ groups : [ "id" , "type" , "meta" , "alias" , "rules" , "unknown" ]
2727} ;
2828var typescript = {
2929 rules : {
3030 eqeqeq : [ "error" , "smart" ] ,
31- "no-undef" : "off" ,
3231 "no-console" : "error" ,
3332 "no-else-return" : "error" ,
3433 "no-fallthrough" : [ "error" , { commentPattern : ".*intentional fallthrough.*" } ] ,
3534 "no-implicit-coercion" : [ "error" , { allow : [ "!!" ] } ] ,
3635 "no-mixed-operators" : "warn" ,
36+ "no-undef" : "off" ,
3737 "prefer-object-has-own" : "error" ,
3838 // Part: custom rules
3939 "no-restricted-syntax" : [
4040 "error" ,
4141 {
4242 message : "no optional" ,
43- selector : "TSPropertySignature[optional=true]" ,
44- } ,
43+ selector : "TSPropertySignature[optional=true]"
44+ }
4545 ] ,
4646 // Part: typescript-eslint rules
4747 "@typescript-eslint/ban-ts-comment" : [
@@ -51,18 +51,18 @@ var typescript = {
5151 "ts-check" : false ,
5252 "ts-expect-error" : "allow-with-description" ,
5353 "ts-ignore" : true ,
54- "ts-nocheck" : true ,
55- } ,
54+ "ts-nocheck" : true
55+ }
5656 ] ,
5757 "@typescript-eslint/ban-types" : "off" ,
58+ "@typescript-eslint/consistent-type-exports" : "error" ,
5859 "@typescript-eslint/consistent-type-imports" : "error" ,
5960 "@typescript-eslint/explicit-function-return-type" : "off" ,
60- "@typescript-eslint/no-namespace" : "off" ,
6161 "@typescript-eslint/no-empty-object-type" : "off" ,
6262 "@typescript-eslint/no-misused-promises" : "off" ,
63+ "@typescript-eslint/no-namespace" : "off" ,
6364 "@typescript-eslint/no-unnecessary-parameter-property-assignment" : "warn" ,
6465 "@typescript-eslint/no-unused-vars" : [ "warn" , { caughtErrors : "all" } ] ,
65- "@typescript-eslint/consistent-type-exports" : "error" ,
6666 "@typescript-eslint/strict-boolean-expressions" : [ "error" , {
6767 allowAny : false ,
6868 allowNullableBoolean : false ,
@@ -71,7 +71,7 @@ var typescript = {
7171 allowNullableObject : false ,
7272 allowNullableString : false ,
7373 allowNumber : true ,
74- allowString : false ,
74+ allowString : false
7575 } ] ,
7676 // Part: jsdoc rules
7777 "jsdoc/check-param-names" : "warn" ,
@@ -92,7 +92,7 @@ var typescript = {
9292 "@stylistic/no-multi-spaces" : [ "warn" ] ,
9393 "@stylistic/operator-linebreak" : [
9494 "warn" ,
95- "before" ,
95+ "before"
9696 ] ,
9797 "@stylistic/quote-props" : [ "error" , "as-needed" ] ,
9898 // Part: perfectionist rules
@@ -102,8 +102,8 @@ var typescript = {
102102 "warn" ,
103103 {
104104 ...p11tOptions ,
105- ...p11tGroups ,
106- } ,
105+ ...p11tGroups
106+ }
107107 ] ,
108108 "perfectionist/sort-intersection-types" : "off" ,
109109 "perfectionist/sort-modules" : "off" ,
@@ -113,16 +113,16 @@ var typescript = {
113113 "warn" ,
114114 {
115115 ...p11tOptions ,
116- ...p11tGroups ,
117- } ,
116+ ...p11tGroups
117+ }
118118 ] ,
119119 "perfectionist/sort-objects" : [
120120 "warn" ,
121121 {
122122 ...p11tOptions ,
123123 ...p11tGroups ,
124- partitionByComment : "^Part:.*" ,
125- } ,
124+ partitionByComment : "^Part:.*"
125+ }
126126 ] ,
127127 "perfectionist/sort-switch-case" : "off" ,
128128 "perfectionist/sort-union-types" : "off" ,
@@ -131,10 +131,10 @@ var typescript = {
131131 "warn" ,
132132 {
133133 comments : templateIndentAnnotations ,
134- tags : templateIndentAnnotations ,
135- } ,
136- ] ,
137- } ,
134+ tags : templateIndentAnnotations
135+ }
136+ ]
137+ }
138138} ;
139139
140140export { typescript } ;
0 commit comments