forked from osm-search/nominatim-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
52 lines (52 loc) · 1.15 KB
/
.eslintrc.json
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
// https://eslint.org/docs/latest/user-guide/configuring/configuration-files
{
"extends": [
"airbnb-base/legacy",
"plugin:mocha/recommended",
"plugin:svelte/recommended"
],
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module"
},
"env": {
"browser": true
},
"plugins": [
"svelte",
"mocha"
],
"overrides": [
{
"files": ["*"],
"globals": {
"L": true, // leaflet library
"Nominatim_Config": true
},
"rules": {
"camelcase": "off", // my_var is fine, no need for myVar
"func-names": "off", // anonymous "function()" is fine
"vars-on-top": "off",
"new-cap": "off", // constructor name can start lowercase (as Leaflet does)
"no-multiple-empty-lines": "off",
"no-use-before-define": ["error", { "functions": false }],
"padded-blocks": "off",
"no-param-reassign": "off",
"max-len": [
"error",
100,
2,
{
"ignoreUrls": true
}
]
}
},
{
"files": ["test/**"],
"globals": {
"browser": true
}
}
]
}