mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 02:48:19 -07:00
3739741786
* enable one-var rule * enable indent rule * enable no-multiple-empty-lines rule * enable no-empty rule * enable no-trailing-spaces rule * enable no-extra-semi rule * add eslint rules to fix block spacing * enable max-statements-per-line rule * enable brace-style rule * fix some spacing issues and add future rules * add code suggestions
28 lines
681 B
YAML
28 lines
681 B
YAML
env:
|
|
es6: true
|
|
browser: true
|
|
amd: true
|
|
|
|
rules:
|
|
block-spacing: ["error"]
|
|
brace-style: ["error"]
|
|
comma-dangle: ["error", "never"]
|
|
comma-spacing: ["error"]
|
|
eol-last: ["off"]
|
|
indent: ["error", 4, { "SwitchCase": 1 }]
|
|
keyword-spacing: ["error"]
|
|
line-comment-position: ["off"]
|
|
max-statements-per-line: ["error"]
|
|
no-empty: ["error"]
|
|
no-extra-semi: ["error"]
|
|
no-floating-decimal: ["error"]
|
|
no-multi-spaces: ["error"]
|
|
no-multiple-empty-lines: ["error", { "max": 1 }]
|
|
no-trailing-spaces: ["error"]
|
|
no-void: ["off"]
|
|
one-var: ["error", "never"]
|
|
padding-line-between-statements: ["off"]
|
|
semi: ["off"]
|
|
space-before-blocks: ["error"]
|
|
yoda: ["off"]
|