forked from stevemac007/aws-to-slack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
54 lines (54 loc) · 1.62 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
# Based on the AirBnb JavaScript styleguides with our own twist
parserOptions:
ecmaVersion: 8
sourceType: module
env:
es6: true
node: true
mocha: true
globals:
_: readonly
extends:
- eslint:recommended
- plugin:lodash/canonical
- plugin:lodash/recommended
- plugin:promise/recommended
- plugin:import/errors
- plugin:import/warnings
plugins:
- promise
- lodash
- import
rules:
indent: [ error, tab, {
MemberExpression: off
} ]
linebreak-style: [ error, unix ]
semi: [ error, always ]
quotes: [ error, double, { avoidEscape: true } ]
curly: error
no-console: off
no-mixed-spaces-and-tabs: error
space-before-blocks: error
arrow-spacing: error
key-spacing: [ error, { afterColon: true, mode: minimum } ]
brace-style: [ error, stroustrup ]
comma-spacing: [ error, { before: false, after: true } ]
comma-style: [ error, last, { exceptions: { VariableDeclaration: true } } ]
array-bracket-spacing: off # [ error, always, { singleValue: false } ]
computed-property-spacing: [ error, never ]
object-curly-spacing: [ error, always ]
prefer-const: error
no-var: error
valid-jsdoc: [ warn, { prefer: { "arg": "param", "argument": "param", "class": "constructor", "return": "returns", "virtual": "abstract" } } ]
promise/no-nesting: off
import/first: error
import/newline-after-import: error
import/no-named-as-default: off
import/no-extraneous-dependencies: [ error, { devDependencies: true } ]
lodash/import-scope: off
lodash/preferred-alias: off
lodash/prop-shorthand: off
lodash/prefer-constant: off
lodash/prefer-lodash-method: [ error, { ignoreObjects: [ ] } ]