photoprism/frontend/.eslintrc.js
Michael Mayer 7c214d7039 Frontend: Pull updated config every 10 minutes in case push fails
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-07-02 09:10:29 +02:00

23 lines
610 B
JavaScript

module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
mocha: true,
},
extends: 'eslint:recommended',
parserOptions: {
sourceType: 'module',
},
rules: {
'comma-dangle': ['error', 'always-multiline'],
indent: ['error', 4, { "SwitchCase": 1 }],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'double'], // Easier for Go developers!
semi: ['error', 'always'],
'no-unused-vars': ['warn'],
'no-console': 0,
'no-prototype-builtins': 0,
},
};