CyTube/.eslintrc.yml

36 lines
818 B
YAML
Raw Normal View History

2018-04-07 22:30:30 +00:00
env:
es6: true
node: true
extends: 'eslint:recommended'
2021-04-04 21:22:39 +00:00
parser: '@babel/eslint-parser'
2018-04-07 22:30:30 +00:00
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...
2018-04-07 22:30:30 +00:00
- 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
2018-04-07 22:30:30 +00:00
no-trailing-spaces:
- error
no-unused-vars:
- error
- argsIgnorePattern: ^_
2018-04-09 02:17:03 +00:00
varsIgnorePattern: ^_|^Promise$
2018-04-07 22:30:30 +00:00
semi:
- error
- always
quotes:
- off # Old code uses double quotes, new code uses single / template