]> git.openstreetmap.org Git - nominatim-ui.git/blob - .eslintrc.json
Merge pull request #37 from mtmail/merge-detailslink-and-detailspermalink
[nominatim-ui.git] / .eslintrc.json
1 {
2   "extends": [
3     "airbnb-base/legacy"
4   ],
5   "parser": "espree",
6   "env": {
7     "browser": true,
8     "jquery": true
9   },
10   "overrides": [
11     {
12       "files": ["*"],
13       "globals": {
14         "Nominatim_Config": true,
15         "Handlebars": true,
16         "L": true // leaflet library
17       },
18       "rules": {
19         "camelcase": "off", // my_var is fine, no need for myVar
20         "func-names": "off", // anonymous 'function()' is fine
21         "vars-on-top": "off",
22         "new-cap": "off", // constructor name can start lowercase (as Leaflet does)
23         "no-multiple-empty-lines": "off",
24         "padded-blocks": "off",
25         "no-param-reassign": "off",
26         "max-len": [
27           "error",
28           100,
29           2,
30           {
31             "ignoreUrls": true,
32             "ignoreComments": false
33           }
34         ]
35       }
36     },
37     {
38       "files": ["handlebar_helpers.js"],
39       "globals": {
40         "get_config_value": true
41       }
42     }
43   ]
44 }