forked from sql-js/sql.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
47 lines (47 loc) · 1.12 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
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
extends: [
"airbnb-base"
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly"
},
ignorePatterns: [
"/dist/",
"/examples/",
"/node_modules/",
"/out/",
"/src/shell-post.js",
"/src/shell-pre.js",
"/test/",
"!/.eslintrc.js"
],
parserOptions: {
ecmaVersion: 5,
sourceType: "script"
},
rules: {
camelcase: "off",
"comma-dangle": "off",
"dot-notation": "off",
indent: ["error", 4, { SwitchCase: 1 }],
"no-bitwise": "off",
"no-cond-assign": ["error", "except-parens"],
"no-param-reassign": "off",
"no-throw-literal": "off",
"no-var": "off",
"object-shorthand": "off",
"prefer-arrow-callback": "off",
"prefer-destructuring": "off",
"prefer-spread": "off",
"prefer-template": "off",
quotes: ["error", "double"],
strict: ["error", "function"],
"vars-on-top": "off"
}
};