2019-05-16 05:57:47 +00:00
|
|
|
root: true
|
|
|
|
|
|
|
|
extends:
|
2019-11-14 21:39:51 +00:00
|
|
|
- eslint-config-airbnb-base
|
2019-05-16 05:57:47 +00:00
|
|
|
- eslint:recommended
|
|
|
|
|
2020-02-07 17:09:30 +00:00
|
|
|
ignorePatterns:
|
2020-03-11 19:34:54 +00:00
|
|
|
- /web_src/js/vendor
|
2020-02-07 17:09:30 +00:00
|
|
|
|
2019-05-16 05:57:47 +00:00
|
|
|
parserOptions:
|
2019-11-14 21:39:51 +00:00
|
|
|
ecmaVersion: 2020
|
2019-05-16 05:57:47 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
browser: true
|
|
|
|
es6: true
|
2019-11-14 21:39:51 +00:00
|
|
|
jquery: true
|
2019-11-13 14:52:13 +00:00
|
|
|
node: true
|
2019-05-16 05:57:47 +00:00
|
|
|
|
|
|
|
globals:
|
2019-11-17 21:39:06 +00:00
|
|
|
__webpack_public_path__: true
|
2019-05-16 05:57:47 +00:00
|
|
|
CodeMirror: false
|
2019-11-14 21:39:51 +00:00
|
|
|
Dropzone: false
|
2019-05-16 05:57:47 +00:00
|
|
|
SimpleMDE: false
|
|
|
|
u2fApi: false
|
2020-04-28 18:05:39 +00:00
|
|
|
Tribute: false
|
2019-05-16 05:57:47 +00:00
|
|
|
|
2020-04-13 13:02:31 +00:00
|
|
|
overrides:
|
|
|
|
- files: ["web_src/**/*.worker.js"]
|
|
|
|
env:
|
|
|
|
worker: true
|
|
|
|
rules:
|
|
|
|
no-restricted-globals: [0]
|
|
|
|
|
2019-05-16 05:57:47 +00:00
|
|
|
rules:
|
2019-11-21 23:30:14 +00:00
|
|
|
arrow-body-style: [0]
|
2020-03-11 19:34:54 +00:00
|
|
|
arrow-parens: [2, always]
|
2019-11-14 21:39:51 +00:00
|
|
|
camelcase: [0]
|
|
|
|
comma-dangle: [2, only-multiline]
|
|
|
|
consistent-return: [0]
|
|
|
|
default-case: [0]
|
|
|
|
func-names: [0]
|
2020-03-11 19:34:54 +00:00
|
|
|
import/extensions: [2, always, {ignorePackages: true}]
|
2020-02-12 01:53:18 +00:00
|
|
|
import/prefer-default-export: [0]
|
2019-11-14 21:39:51 +00:00
|
|
|
max-len: [0]
|
2020-03-11 19:34:54 +00:00
|
|
|
multiline-comment-style: [2, separate-lines]
|
2019-11-14 21:39:51 +00:00
|
|
|
newline-per-chained-call: [0]
|
|
|
|
no-alert: [0]
|
2020-03-09 00:41:52 +00:00
|
|
|
no-cond-assign: [2, except-parens]
|
|
|
|
no-console: [1, {allow: [info, warn, error]}]
|
2019-11-14 21:39:51 +00:00
|
|
|
no-continue: [0]
|
2020-05-22 15:46:39 +00:00
|
|
|
no-empty: [2, {allowEmptyCatch: true}]
|
2020-03-11 19:34:54 +00:00
|
|
|
no-eq-null: [2]
|
2019-11-14 21:39:51 +00:00
|
|
|
no-mixed-operators: [0]
|
|
|
|
no-multi-assign: [0]
|
|
|
|
no-new: [0]
|
|
|
|
no-param-reassign: [0]
|
|
|
|
no-plusplus: [0]
|
|
|
|
no-restricted-syntax: [0]
|
2020-04-24 03:57:38 +00:00
|
|
|
no-return-await: [0]
|
2019-11-14 21:39:51 +00:00
|
|
|
no-shadow: [0]
|
|
|
|
no-unused-vars: [2, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}]
|
|
|
|
no-use-before-define: [0]
|
2019-07-16 01:51:46 +00:00
|
|
|
no-var: [2]
|
2020-05-14 16:06:01 +00:00
|
|
|
object-curly-newline: [0]
|
2020-03-11 19:34:54 +00:00
|
|
|
object-curly-spacing: [2, never]
|
2019-11-14 21:39:51 +00:00
|
|
|
one-var-declaration-per-line: [0]
|
|
|
|
one-var: [0]
|
2020-03-11 19:34:54 +00:00
|
|
|
operator-linebreak: [2, after]
|
2019-11-14 21:39:51 +00:00
|
|
|
prefer-const: [2, {destructuring: all}]
|
|
|
|
prefer-destructuring: [0]
|
2020-03-11 19:34:54 +00:00
|
|
|
quotes: [2, single, {avoidEscape: true, allowTemplateLiterals: true}]
|
2019-11-14 21:39:51 +00:00
|
|
|
radix: [2, as-needed]
|
2020-03-11 19:34:54 +00:00
|
|
|
semi: [2, always, {omitLastInOneLineBlock: true}]
|