mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix linting errors
This commit is contained in:
parent
88a39a10e5
commit
e2ae0d1e2b
2 changed files with 23 additions and 23 deletions
44
.eslintrc.js
44
.eslintrc.js
|
@ -27,30 +27,30 @@ module.exports = {
|
||||||
'plugin:compat/recommended'
|
'plugin:compat/recommended'
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
'block-spacing': ["error"],
|
'block-spacing': ['error'],
|
||||||
'brace-style': ["error"],
|
'brace-style': ['error'],
|
||||||
'comma-dangle': ["error", "never"],
|
'comma-dangle': ['error', 'never'],
|
||||||
'comma-spacing': ["error"],
|
'comma-spacing': ['error'],
|
||||||
'eol-last': ["error"],
|
'eol-last': ['error'],
|
||||||
'indent': ["error", 4, { "SwitchCase": 1 }],
|
'indent': ['error', 4, { 'SwitchCase': 1 }],
|
||||||
'keyword-spacing': ["error"],
|
'keyword-spacing': ['error'],
|
||||||
'max-statements-per-line': ["error"],
|
'max-statements-per-line': ['error'],
|
||||||
'no-floating-decimal': ["error"],
|
'no-floating-decimal': ['error'],
|
||||||
'no-multi-spaces': ["error"],
|
'no-multi-spaces': ['error'],
|
||||||
'no-multiple-empty-lines': ["error", { "max": 1 }],
|
'no-multiple-empty-lines': ['error', { 'max': 1 }],
|
||||||
'no-trailing-spaces': ["error"],
|
'no-trailing-spaces': ['error'],
|
||||||
'one-var': ["error", "never"],
|
'one-var': ['error', 'never'],
|
||||||
'quotes': ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": false }],
|
'quotes': ['error', 'single', { 'avoidEscape': true, 'allowTemplateLiterals': false }],
|
||||||
'semi': ["error"],
|
'semi': ['error'],
|
||||||
'space-before-blocks': ["error"],
|
'space-before-blocks': ['error'],
|
||||||
"space-infix-ops": "error"
|
'space-infix-ops': 'error'
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
files: [
|
files: [
|
||||||
'./src/**/*.js'
|
'./src/**/*.js'
|
||||||
],
|
],
|
||||||
parser: "babel-eslint",
|
parser: 'babel-eslint',
|
||||||
env: {
|
env: {
|
||||||
node: false,
|
node: false,
|
||||||
amd: true,
|
amd: true,
|
||||||
|
@ -98,11 +98,11 @@ module.exports = {
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
// TODO: Fix warnings and remove these rules
|
// TODO: Fix warnings and remove these rules
|
||||||
'no-redeclare': ["warn"],
|
'no-redeclare': ['warn'],
|
||||||
'no-unused-vars': ["warn"],
|
'no-unused-vars': ['warn'],
|
||||||
'no-useless-escape': ["warn"],
|
'no-useless-escape': ['warn'],
|
||||||
// TODO: Remove after ES6 migration is complete
|
// TODO: Remove after ES6 migration is complete
|
||||||
'import/no-unresolved': ["off"]
|
'import/no-unresolved': ['off']
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
polyfills: [
|
polyfills: [
|
||||||
|
|
|
@ -55,7 +55,7 @@ define(['layoutManager', 'browser', 'css!./emby-textarea', 'registerElement', 'e
|
||||||
newHeight = textarea.scrollHeight/* - offset*/;
|
newHeight = textarea.scrollHeight/* - offset*/;
|
||||||
hasGrown = true;
|
hasGrown = true;
|
||||||
}
|
}
|
||||||
$('.customCssContainer').css("height", newHeight + 'px');
|
$('.customCssContainer').css('height', newHeight + 'px');
|
||||||
textarea.style.height = newHeight + 'px';
|
textarea.style.height = newHeight + 'px';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue