mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #3798 from Stromwerk/no-throw-literal
This commit is contained in:
commit
74ca9eb81a
2 changed files with 2 additions and 1 deletions
|
@ -42,6 +42,7 @@ module.exports = {
|
||||||
'indent': ['error', 4, { 'SwitchCase': 1 }],
|
'indent': ['error', 4, { 'SwitchCase': 1 }],
|
||||||
'jsx-quotes': ['error', 'prefer-single'],
|
'jsx-quotes': ['error', 'prefer-single'],
|
||||||
'keyword-spacing': ['error'],
|
'keyword-spacing': ['error'],
|
||||||
|
'no-throw-literal': ['error'],
|
||||||
'max-statements-per-line': ['error'],
|
'max-statements-per-line': ['error'],
|
||||||
'no-duplicate-imports': ['error'],
|
'no-duplicate-imports': ['error'],
|
||||||
'no-empty-function': ['error'],
|
'no-empty-function': ['error'],
|
||||||
|
|
|
@ -19,7 +19,7 @@ import globalize from './globalize';
|
||||||
// "00", "00", ".000", "Z", undefined, undefined, undefined]
|
// "00", "00", ".000", "Z", undefined, undefined, undefined]
|
||||||
|
|
||||||
if (!d) {
|
if (!d) {
|
||||||
throw "Couldn't parse ISO 8601 date string '" + s + "'";
|
throw new Error("Couldn't parse ISO 8601 date string '" + s + "'");
|
||||||
}
|
}
|
||||||
|
|
||||||
// parse strings, leading zeros into proper ints
|
// parse strings, leading zeros into proper ints
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue