forked from xtuc/webassemblyjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
55 lines (52 loc) · 1.34 KB
/
.eslintrc.js
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
/* eslint-disable */
module.exports = {
parser: "babel-eslint",
extends: ["prettier", "eslint:recommended", "plugin:flowtype/recommended"],
plugins: ["flowtype", "mocha", "flowtype-errors", "prettier"],
rules: {
"mocha/no-exclusive-tests": "error",
"mocha/no-identical-title": "error",
"mocha/no-skipped-tests": "warn",
"prettier/prettier": "error",
"flowtype-errors/show-errors": "error",
camelcase: "off",
"comma-dangle": "off",
"consistent-return": "off",
curly: "off",
"linebreak-style": ["error", "unix"],
"key-spacing": "off",
"no-case-declarations": "off",
"no-cond-assign": "off",
"no-console": "off",
"no-constant-condition": "off",
"no-empty": "off",
"no-fallthrough": "off",
"no-inner-declarations": "off",
"no-multi-spaces": "off",
"no-labels": "off",
"no-loop-func": "off",
"no-process-exit": "off",
"no-return-assign": "off",
"no-shadow": "off",
"no-unreachable": "off",
"no-use-before-define": "off",
"no-var": "error",
"no-debugger": "error",
"prefer-const": "error",
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
strict: "off"
},
parserOptions: {
ecmaVersion: 8
},
globals: {
React: true,
MACRO: true
},
env: {
node: true,
browser: true,
es6: true,
mocha: true
}
};