forked from serverless-heaven/serverless-webpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
67 lines (67 loc) · 1.73 KB
/
.eslintrc.yml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
---
# Based on the AirBnb JavaScript styleguides with our own twist
env:
es6: true
node: true
jest: true
extends:
- eslint:recommended
- plugin:lodash/recommended
- plugin:promise/recommended
- plugin:import/errors
- plugin:import/warnings
- prettier
overrides:
- files:
- '*.yml'
- '*.yaml'
parser: 'yaml-eslint-parser'
parser: '@babel/eslint-parser'
parserOptions:
requireConfigFile: false
sourceType: module
plugins:
- promise
- lodash
- import
- prettier
- yml
rules:
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 } }]
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] }]
max-len: [error, { code: 120, ignoreStrings: true, ignoreComments: true, ignoreTemplateLiterals: true }]
prettier/prettier:
[
error,
{
printWidth: 120,
arrowParens: 'avoid',
bracketSpacing: true,
semi: true,
singleQuote: true,
trailingComma: 'none'
}
]
ignorePatterns:
- examples/