forked from expanse-org/mist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
40 lines (36 loc) · 1.16 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
extends: airbnb-base
plugins:
- import
settings:
import/core-modules: ## don't lint for these missing packages in package.json
- electron ## 'electron' is only needed as devDependency / global installation
rules:
# "off" or 0 - turn the rule off
# "warn" or 1 - turn the rule on as a warning (doesn’t affect exit code)
# "error" or 2 - turn the rule on as an error (exit code is 1 when triggered)
indent:
- error
- 4 ## number of spaces
no-console: off ## allowed for chrome dev-console
padded-blocks: off
arrow-body-style: off
prefer-arrow-callback: off
no-underscore-dangle: off
comma-dangle:
- error
- only-multiline ## no comma after last item if one line, though allow comma if multiline
import/no-extraneous-dependencies: ## checks if required modules are missing in packages.json
- error
- devDependencies: ## declares files, whose imports belong to devDependencies
- "**/scripts/build-dist.js"
- "**/tests/_base.js"
- "**/*.test.js"
globals: # don't warn about missing declarations
i18n: true
mist: true
beforeEach: true
LocalStore: true
web3: true
Tabs: true
Tracker: true
_: true