sync/.eslintrc.yml

36 lines
818 B
YAML

env:
es6: true
node: true
extends: 'eslint:recommended'
parser: '@babel/eslint-parser'
parserOptions:
sourceType: module
ecmaVersion: 2017 # For async/await
rules:
brace-style:
- error
- 1tbs
- allowSingleLine: true
indent:
- off # temporary... a lot of stuff needs to be reformatted | 2020-08-21: I guess it's not so temporary...
- 4
- SwitchCase: 1
linebreak-style:
- error
- unix
no-control-regex:
- off
no-prototype-builtins:
- off # should consider cleaning up the code and turning this back on at some point
no-trailing-spaces:
- error
no-unused-vars:
- error
- argsIgnorePattern: ^_
varsIgnorePattern: ^_|^Promise$
semi:
- error
- always
quotes:
- off # Old code uses double quotes, new code uses single / template