Skip to content

Commit 3b12816

Browse files
committed
Unpinned TypeScript ESLint integration and checks
1 parent cafd67b commit 3b12816

File tree

7 files changed

+416
-378
lines changed

7 files changed

+416
-378
lines changed

Diff for: .eslintrc

+40-35
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
},
77
"plugins": [
88
"@typescript-eslint",
9+
"@stylistic/ts",
910
"eslint-plugin-eslint-comments",
1011
"eslint-plugin-import",
1112
"eslint-plugin-jsdoc",
@@ -166,7 +167,41 @@
166167
"@typescript-eslint/consistent-type-assertions": "error",
167168
"@typescript-eslint/dot-notation": "error",
168169
"@typescript-eslint/explicit-member-accessibility": "error",
169-
"@typescript-eslint/indent": [
170+
"@typescript-eslint/naming-convention": [
171+
"error",
172+
{
173+
"selector": "enumMember",
174+
"format": [
175+
"UPPER_CASE"
176+
]
177+
}
178+
],
179+
"@typescript-eslint/no-empty-interface": "off",
180+
"@typescript-eslint/no-empty-object-type": "off",
181+
"@typescript-eslint/no-extraneous-class": "error",
182+
"@typescript-eslint/no-misused-promises": "off",
183+
"@typescript-eslint/no-non-null-assertion": "off",
184+
"@typescript-eslint/no-parameter-properties": "off",
185+
"@typescript-eslint/no-floating-promises": "error",
186+
"@typescript-eslint/no-shadow": [
187+
"error",
188+
{
189+
"hoist": "never"
190+
}
191+
],
192+
"@typescript-eslint/no-unnecessary-type-assertion": "error",
193+
"@typescript-eslint/no-unused-expressions": "error",
194+
"@typescript-eslint/no-unused-vars": "off",
195+
"@typescript-eslint/no-var-requires": "off",
196+
"@typescript-eslint/only-throw-error": "error",
197+
"@typescript-eslint/prefer-for-of": "off",
198+
"@typescript-eslint/prefer-function-type": "error",
199+
"@typescript-eslint/triple-slash-reference": "off",
200+
"@typescript-eslint/unbound-method": "error",
201+
"@typescript-eslint/unified-signatures": "error",
202+
203+
/* Plugin: @stylistic/ts */
204+
"@stylistic/ts/indent": [
170205
"warn",
171206
2,
172207
{
@@ -191,7 +226,7 @@
191226
"offsetTernaryExpressions": true
192227
}
193228
],
194-
"@typescript-eslint/member-delimiter-style": [
229+
"@stylistic/ts/member-delimiter-style": [
195230
"error",
196231
{
197232
"multiline": {
@@ -203,42 +238,12 @@
203238
}
204239
}
205240
],
206-
"@typescript-eslint/naming-convention": [
207-
"error",
208-
{
209-
"selector": "enumMember",
210-
"format": [
211-
"UPPER_CASE"
212-
]
213-
}
214-
],
215-
"@typescript-eslint/no-empty-interface": "off",
216-
"@typescript-eslint/no-extraneous-class": "error",
217-
"@typescript-eslint/no-misused-promises": "off",
218-
"@typescript-eslint/no-non-null-assertion": "off",
219-
"@typescript-eslint/no-parameter-properties": "off",
220-
"@typescript-eslint/no-floating-promises": "error",
221-
"@typescript-eslint/no-shadow": [
222-
"error",
223-
{
224-
"hoist": "never"
225-
}
226-
],
227-
"@typescript-eslint/no-throw-literal": "error",
228-
"@typescript-eslint/no-unnecessary-type-assertion": "error",
229-
"@typescript-eslint/no-unused-expressions": "error",
230-
"@typescript-eslint/no-unused-vars": "off",
231-
"@typescript-eslint/no-var-requires": "off",
232-
"@typescript-eslint/prefer-for-of": "off",
233-
"@typescript-eslint/prefer-function-type": "error",
234-
"@typescript-eslint/semi": [
241+
"@stylistic/ts/semi": [
235242
"error",
236243
"never"
237244
],
238-
"@typescript-eslint/triple-slash-reference": "off",
239-
"@typescript-eslint/type-annotation-spacing": "error",
240-
"@typescript-eslint/unbound-method": "error",
241-
"@typescript-eslint/unified-signatures": "error",
245+
"@stylistic/ts/type-annotation-spacing": "error",
246+
242247
/* Plugin: eslint-plugin-eslint-comments */
243248
"eslint-comments/no-unused-disable": "error",
244249
"eslint-comments/no-unused-enable": "error",

Diff for: material/templates/assets/javascripts/workers/search.b8dbb3d2.min.js renamed to material/templates/assets/javascripts/workers/search.07f07601.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: material/templates/assets/javascripts/workers/search.b8dbb3d2.min.js.map renamed to material/templates/assets/javascripts/workers/search.07f07601.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: material/templates/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
"base": base_url,
219219
"features": features,
220220
"translations": {},
221-
"search": "assets/javascripts/workers/search.b8dbb3d2.min.js" | url
221+
"search": "assets/javascripts/workers/search.07f07601.min.js" | url
222222
} -%}
223223
{%- if config.extra.version -%}
224224
{%- set mike = config.plugins.get("mike") -%}

0 commit comments

Comments
 (0)