-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
50 lines (46 loc) · 1.09 KB
/
.eslintrc.yml
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
env:
browser: true
parserOptions:
ecmaVersion: 6
extends:
- eslint:recommended
rules:
no-console: warn
no-unused-vars: [error, { argsIgnorePattern: "^_" }]
no-useless-escape: warn # TODO: remove (so this is an error)
overrides:
# Client:
- files: [ "routes/*.js", "static/**/*.js" ]
globals:
$: false
ABE_API_URI: false
SUBMIT_URL: true
db: false
showdown: false
# defined and used in admin.js:
tableColumns: true
# defined in server.js:
io: true
# defined and used in board_carousel:
$activeItem: true
$carousel: true
carouselSelector: true
# defined in vendor files:
Cookies: false
Dropzone: false
rules:
# FIXME: remove these exceptions, to turn them back into errors
no-undef: warn
no-unused-vars: warn
no-redeclare: warn
# Server:
- files: [ "server.js", "models/*.js", "routes/*.js", "scripts/*.js" ]
env:
browser: false
node: true
globals:
Promise: false
module: false
require: false
rules:
no-console: off