-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (43 loc) · 1.1 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
/* eslint-env node */
module.exports = {
"parserOptions": {
"ecmaVersion": 9
},
"overrides": [
{
"files": ["build.js"],
"parserOptions": {
"sourceType": "module"
},
},
{
"files": ["src/vega-chart.html"],
"parserOptions": {
"ecmaFeatures": {
"globalReturn": true
}
}
}
],
"env": {
"browser": true, // Include browser environment
"es6": true, // Include ES6 features
},
"plugins": [
"html" // Lint JS within HTML files
],
"globals": {
"uifactory": true, // Test cases use uifactory
},
"extends": "eslint:recommended",
"rules": {
// Override default rules
"indent": [2, 2, {"VariableDeclarator": 2}], // Force 2 space indentation
"linebreak-style": ["error", "unix"], // Force UNIX style line
"semi": ["error", "never"], // Force no-semicolon style
"quotes": ["off", "double"] // We may go for a double-quotes style
},
"ignorePatterns": [
"test/tape.js", // Ignore generated file
]
}