-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy path.eslintrc.yaml
71 lines (63 loc) · 1.16 KB
/
.eslintrc.yaml
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
68
69
70
71
extends:
- eslint:recommended
- plugin:import/recommended
- plugin:mozilla/recommended
- plugin:react/recommended
env:
browser: true
es6: true
jquery: true
settings:
react:
version: "16.5.0"
plugins:
- babel
- mozilla
parser: babel-eslint
parserOptions:
ecmaVersion: 6
root: true
rules:
strict: 0
no-trailing-spaces: off
eol-last: off
arrow-parens: off
comma-dangle: off
function-paren-newline: off
guard-for-in: off
import/no-named-as-default: off
import/prefer-default-export: off
linebreak-style: off
no-multi-assign: off
no-plusplus: off
no-restricted-syntax: off
no-use-before-define: off
object-curly-newline: off
react/prop-types: off
mozilla/no-define-cc-etc: off
overrides:
-
files: ['src/**/*.js']
globals:
process: true
require: true
module: true
-
files: ['src/extension/**/*.js']
env:
webextensions: true
-
files: ['webpack.*.js','bin/*.js']
rules:
import/unambiguous: off
env:
node: true
-
files:
- 'src/lib/test-setup.js'
- 'src/**/*-test.js'
rules:
import/unambiguous: off
env:
node: true
mocha: true