Add eslint rules from jellyfin-web

This commit is contained in:
Bill Thornton 2020-04-08 12:45:58 -04:00
parent 93b9c867ab
commit bcc0b249e9

View File

@ -28,6 +28,22 @@
}
},
"rules": {
"react/prop-types": ["error", { "ignore": ["navigation"] }]
"react/prop-types": ["error", { "ignore": ["navigation"] }],
"block-spacing": ["error"],
"brace-style": ["error"],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error"],
"eol-last": ["error"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"keyword-spacing": ["error"],
"max-statements-per-line": ["error"],
"no-floating-decimal": ["error"],
"no-multi-spaces": ["error"],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-trailing-spaces": ["error"],
"one-var": ["error", "never"],
"semi": ["error"],
"space-before-blocks": ["error"]
}
}