Update README.md
[KisSync.git] / .eslintrc.yml
blob96565757f6bc489c7be46a1ccb1d889ecf329a99
1 env:
2   es6: true
3   node: true
4 extends: 'eslint:recommended'
5 parser: '@babel/eslint-parser'
6 parserOptions:
7   sourceType: module
8   ecmaVersion: 2017 # For async/await
9 rules:
10   brace-style:
11     - error
12     - 1tbs
13     - allowSingleLine: true
14   indent:
15     - off # temporary... a lot of stuff needs to be reformatted | 2020-08-21: I guess it's not so temporary...
16     - 4
17     - SwitchCase: 1
18   linebreak-style:
19     - error
20     - unix
21   no-control-regex:
22     - off
23   no-prototype-builtins:
24     - off # should consider cleaning up the code and turning this back on at some point
25   no-trailing-spaces:
26     - error
27   no-unused-vars:
28     - error
29     - argsIgnorePattern: ^_
30       varsIgnorePattern: ^_|^Promise$
31   semi:
32     - error
33     - always
34   quotes:
35     - off # Old code uses double quotes, new code uses single / template