forked from serverless-heaven/serverless-webpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
51 lines (51 loc) · 1.45 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
---
# Based on the AirBnb JavaScript styleguides with our own twist
env:
es6: true
node: true
mocha: true
extends:
- eslint:recommended
- plugin:lodash/recommended
- plugin:promise/recommended
- plugin:import/errors
- plugin:import/warnings
- prettier
parser: babel-eslint
parserOptions:
sourceType: module
ecmaFeatures:
classes: true
experimentalObjectRestSpread: true
plugins:
- promise
- lodash
- import
rules:
indent: [ error, 2, {
MemberExpression: off
} ]
linebreak-style: [ error, unix ]
semi: [ error, always ]
quotes: [ error, single, { avoidEscape: true } ]
no-mixed-spaces-and-tabs: error
space-before-blocks: error
arrow-spacing: error
key-spacing: [ error, { afterColon: true, mode: minimum } ]
brace-style: [ error, '1tbs' ]
comma-spacing: [ error, { before: false, after: true } ]
comma-style: [ error, last, { exceptions: { VariableDeclaration: true } } ]
array-bracket-spacing: [ error, always, { singleValue: false } ]
computed-property-spacing: [ error, never ]
object-curly-spacing: [ error, always ]
prefer-const: error
no-var: error
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-lodash-method: [ error, { ignoreObjects: [ BbPromise, path ] } ]