mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-26 23:25:55 -05:00
f5aa0080bb
* A little more UI refactor, cleanup, eslint more strict * Split out imports for jQuery components and put them where needed. * No longer do all of it in application module. * Prepares better for code splitting. * Split out video player dialog * Simplifies jquery-ui dependencies for code splitting * Simplifies code * Configure to generate more, but smaller bundles. * Setup some more strict eslint settings * Fix css to import rather than require * Change settings to correctly support tree shaking in production build Signed-off-by: Dolf Starreveld <dolf@starreveld.com> * Remove “old” code from TimeFormatter * Accidentally left behind due to overlapping PRs Signed-off-by: Dolf Starreveld <dolf@starreveld.com>
23 lines
709 B
JSON
23 lines
709 B
JSON
{
|
|
"parserOptions": {
|
|
"ecmaVersion": 6,
|
|
"sourceType": "module"
|
|
},
|
|
"env": {
|
|
"es6": true,
|
|
"browser": true,
|
|
"node": true
|
|
},
|
|
"extends": "google",
|
|
"rules": {
|
|
"init-declarations": ["error", "always"],
|
|
"no-catch-shadow": ["error"],
|
|
"no-delete-var": ["error"],
|
|
"no-shadow": ["error", { "builtinGlobals": false, "hoist": "functions", "allow": [] }],
|
|
"no-shadow-restricted-names": ["error"],
|
|
"no-undef": ["error", {"typeof": true}],
|
|
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
|
|
"no-use-before-define": ["error", { "functions": true, "classes": true }]
|
|
}
|
|
}
|