@ttsc/lint 0.16.1 → 0.16.2
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/linthost/declaration_rules.go +76 -76
- package/package.json +2 -2
|
@@ -82,92 +82,92 @@ var declarationFileRuleNames = map[string]bool{
|
|
|
82
82
|
// per-file metrics, user-configured selectors, and the constant
|
|
83
83
|
// expressions enum initializers allow (bitwise flags, numeric
|
|
84
84
|
// literals).
|
|
85
|
-
"camelcase":
|
|
86
|
-
"grouped-accessor-pairs":
|
|
87
|
-
"id-length":
|
|
88
|
-
"max-classes-per-file":
|
|
89
|
-
"max-lines":
|
|
90
|
-
"max-params":
|
|
91
|
-
"no-bitwise":
|
|
92
|
-
"no-dupe-class-members":
|
|
93
|
-
"no-duplicate-imports":
|
|
94
|
-
"no-empty-named-blocks":
|
|
95
|
-
"no-irregular-whitespace":
|
|
96
|
-
"no-loss-of-precision":
|
|
97
|
-
"no-magic-numbers":
|
|
98
|
-
"no-mixed-operators":
|
|
99
|
-
"no-redeclare":
|
|
100
|
-
"no-restricted-imports":
|
|
101
|
-
"no-restricted-syntax":
|
|
102
|
-
"no-shadow":
|
|
85
|
+
"camelcase": true,
|
|
86
|
+
"grouped-accessor-pairs": true,
|
|
87
|
+
"id-length": true,
|
|
88
|
+
"max-classes-per-file": true,
|
|
89
|
+
"max-lines": true,
|
|
90
|
+
"max-params": true,
|
|
91
|
+
"no-bitwise": true,
|
|
92
|
+
"no-dupe-class-members": true,
|
|
93
|
+
"no-duplicate-imports": true,
|
|
94
|
+
"no-empty-named-blocks": true,
|
|
95
|
+
"no-irregular-whitespace": true,
|
|
96
|
+
"no-loss-of-precision": true,
|
|
97
|
+
"no-magic-numbers": true,
|
|
98
|
+
"no-mixed-operators": true,
|
|
99
|
+
"no-redeclare": true,
|
|
100
|
+
"no-restricted-imports": true,
|
|
101
|
+
"no-restricted-syntax": true,
|
|
102
|
+
"no-shadow": true,
|
|
103
103
|
"no-shadow-restricted-names": true,
|
|
104
|
-
"no-useless-computed-key":
|
|
105
|
-
"no-useless-rename":
|
|
106
|
-
"sort-imports":
|
|
104
|
+
"no-useless-computed-key": true,
|
|
105
|
+
"no-useless-rename": true,
|
|
106
|
+
"sort-imports": true,
|
|
107
107
|
|
|
108
108
|
// typescript/* rules over type syntax, signatures, enums, import/export
|
|
109
109
|
// type forms, comments, and declaration merging.
|
|
110
|
-
"typescript/adjacent-overload-signatures":
|
|
111
|
-
"typescript/array-type":
|
|
112
|
-
"typescript/ban-ts-comment":
|
|
113
|
-
"typescript/ban-tslint-comment":
|
|
114
|
-
"typescript/class-literal-property-style":
|
|
115
|
-
"typescript/consistent-indexed-object-style":
|
|
116
|
-
"typescript/consistent-type-definitions":
|
|
117
|
-
"typescript/consistent-type-exports":
|
|
118
|
-
"typescript/consistent-type-imports":
|
|
119
|
-
"typescript/explicit-function-return-type":
|
|
120
|
-
"typescript/explicit-member-accessibility":
|
|
121
|
-
"typescript/method-signature-style":
|
|
122
|
-
"typescript/no-deprecated":
|
|
123
|
-
"typescript/no-duplicate-enum-values":
|
|
124
|
-
"typescript/no-empty-interface":
|
|
125
|
-
"typescript/no-empty-object-type":
|
|
126
|
-
"typescript/no-explicit-any":
|
|
127
|
-
"typescript/no-extraneous-class":
|
|
128
|
-
"typescript/no-import-type-side-effects":
|
|
129
|
-
"typescript/no-invalid-void-type":
|
|
130
|
-
"typescript/no-magic-numbers":
|
|
131
|
-
"typescript/no-misused-new":
|
|
132
|
-
"typescript/no-mixed-enums":
|
|
133
|
-
"typescript/no-redundant-type-constituents":
|
|
134
|
-
"typescript/no-require-imports":
|
|
135
|
-
"typescript/no-restricted-types":
|
|
136
|
-
"typescript/no-unnecessary-qualifier":
|
|
110
|
+
"typescript/adjacent-overload-signatures": true,
|
|
111
|
+
"typescript/array-type": true,
|
|
112
|
+
"typescript/ban-ts-comment": true,
|
|
113
|
+
"typescript/ban-tslint-comment": true,
|
|
114
|
+
"typescript/class-literal-property-style": true,
|
|
115
|
+
"typescript/consistent-indexed-object-style": true,
|
|
116
|
+
"typescript/consistent-type-definitions": true,
|
|
117
|
+
"typescript/consistent-type-exports": true,
|
|
118
|
+
"typescript/consistent-type-imports": true,
|
|
119
|
+
"typescript/explicit-function-return-type": true,
|
|
120
|
+
"typescript/explicit-member-accessibility": true,
|
|
121
|
+
"typescript/method-signature-style": true,
|
|
122
|
+
"typescript/no-deprecated": true,
|
|
123
|
+
"typescript/no-duplicate-enum-values": true,
|
|
124
|
+
"typescript/no-empty-interface": true,
|
|
125
|
+
"typescript/no-empty-object-type": true,
|
|
126
|
+
"typescript/no-explicit-any": true,
|
|
127
|
+
"typescript/no-extraneous-class": true,
|
|
128
|
+
"typescript/no-import-type-side-effects": true,
|
|
129
|
+
"typescript/no-invalid-void-type": true,
|
|
130
|
+
"typescript/no-magic-numbers": true,
|
|
131
|
+
"typescript/no-misused-new": true,
|
|
132
|
+
"typescript/no-mixed-enums": true,
|
|
133
|
+
"typescript/no-redundant-type-constituents": true,
|
|
134
|
+
"typescript/no-require-imports": true,
|
|
135
|
+
"typescript/no-restricted-types": true,
|
|
136
|
+
"typescript/no-unnecessary-qualifier": true,
|
|
137
137
|
"typescript/no-unnecessary-template-expression": true,
|
|
138
|
-
"typescript/no-unnecessary-type-arguments":
|
|
139
|
-
"typescript/no-unnecessary-type-constraint":
|
|
140
|
-
"typescript/no-unsafe-declaration-merging":
|
|
141
|
-
"typescript/no-unsafe-function-type":
|
|
142
|
-
"typescript/no-wrapper-object-types":
|
|
143
|
-
"typescript/prefer-enum-initializers":
|
|
144
|
-
"typescript/prefer-function-type":
|
|
145
|
-
"typescript/prefer-literal-enum-member":
|
|
146
|
-
"typescript/prefer-namespace-keyword":
|
|
147
|
-
"typescript/prefer-return-this-type":
|
|
148
|
-
"typescript/related-getter-setter-pairs":
|
|
149
|
-
"typescript/sort-type-constituents":
|
|
150
|
-
"typescript/triple-slash-reference":
|
|
138
|
+
"typescript/no-unnecessary-type-arguments": true,
|
|
139
|
+
"typescript/no-unnecessary-type-constraint": true,
|
|
140
|
+
"typescript/no-unsafe-declaration-merging": true,
|
|
141
|
+
"typescript/no-unsafe-function-type": true,
|
|
142
|
+
"typescript/no-wrapper-object-types": true,
|
|
143
|
+
"typescript/prefer-enum-initializers": true,
|
|
144
|
+
"typescript/prefer-function-type": true,
|
|
145
|
+
"typescript/prefer-literal-enum-member": true,
|
|
146
|
+
"typescript/prefer-namespace-keyword": true,
|
|
147
|
+
"typescript/prefer-return-this-type": true,
|
|
148
|
+
"typescript/related-getter-setter-pairs": true,
|
|
149
|
+
"typescript/sort-type-constituents": true,
|
|
150
|
+
"typescript/triple-slash-reference": true,
|
|
151
151
|
|
|
152
152
|
// functional/* rules that police type shapes (not statements).
|
|
153
|
-
"functional/no-mixed-types":
|
|
154
|
-
"functional/no-return-void":
|
|
155
|
-
"functional/prefer-immutable-types":
|
|
156
|
-
"functional/prefer-property-signatures":
|
|
157
|
-
"functional/prefer-readonly-type":
|
|
158
|
-
"functional/readonly-type":
|
|
153
|
+
"functional/no-mixed-types": true,
|
|
154
|
+
"functional/no-return-void": true,
|
|
155
|
+
"functional/prefer-immutable-types": true,
|
|
156
|
+
"functional/prefer-property-signatures": true,
|
|
157
|
+
"functional/prefer-readonly-type": true,
|
|
158
|
+
"functional/readonly-type": true,
|
|
159
159
|
"functional/type-declaration-immutability": true,
|
|
160
160
|
|
|
161
161
|
// unicorn/* rules over file names, comments, identifier naming, and
|
|
162
162
|
// the numeric literals that appear in enum initializers and literal
|
|
163
163
|
// types.
|
|
164
|
-
"unicorn/empty-brace-spaces":
|
|
165
|
-
"unicorn/expiring-todo-comments":
|
|
166
|
-
"unicorn/filename-case":
|
|
167
|
-
"unicorn/no-abusive-eslint-disable":
|
|
168
|
-
"unicorn/no-empty-file":
|
|
169
|
-
"unicorn/no-keyword-prefix":
|
|
170
|
-
"unicorn/number-literal-case":
|
|
171
|
-
"unicorn/numeric-separators-style":
|
|
172
|
-
"unicorn/prevent-abbreviations":
|
|
164
|
+
"unicorn/empty-brace-spaces": true,
|
|
165
|
+
"unicorn/expiring-todo-comments": true,
|
|
166
|
+
"unicorn/filename-case": true,
|
|
167
|
+
"unicorn/no-abusive-eslint-disable": true,
|
|
168
|
+
"unicorn/no-empty-file": true,
|
|
169
|
+
"unicorn/no-keyword-prefix": true,
|
|
170
|
+
"unicorn/number-literal-case": true,
|
|
171
|
+
"unicorn/numeric-separators-style": true,
|
|
172
|
+
"unicorn/prevent-abbreviations": true,
|
|
173
173
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttsc/lint",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "Reference ttsc plugin: ESLint-style lint rules hosted in the same Program/Checker as the type-check pass.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@types/node": "^25.3.0",
|
|
37
37
|
"rimraf": "^6.1.2",
|
|
38
38
|
"typescript": "7.0.1-rc",
|
|
39
|
-
"ttsc": "0.16.
|
|
39
|
+
"ttsc": "0.16.2"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|