forked from musa-611-fall-2022/function-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
28 lines (28 loc) · 801 Bytes
/
.eslintrc
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
{
"extends": ["eslint:recommended"],
"ignorePatterns": ["site/data/*.js"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"globals": {
"console": "readonly",
"document": "readonly",
"fetch": "readonly",
"L": "readonly",
"mapboxgl": "readonly",
"maplibregl": "readonly",
"ol": "readonly",
"window": "readonly"
},
"rules": {
"camelcase": ["error"],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": ["error", { "before": false, "after": true }],
"no-trailing-spaces": ["error"],
"no-use-before-define": ["error", { "allowNamedExports": true }],
"no-var": ["error"],
"object-curly-spacing": ["error", "always"],
"semi": ["error", "always", { "omitLastInOneLineBlock": true }]
}
}