forked from murdos/musicbrainz-userscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
30 lines (30 loc) · 782 Bytes
/
.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
module.exports = {
env: {
browser: true,
es2017: true,
greasemonkey: true,
jquery: true,
},
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
globals: {
LOGGER: true,
MBImportStyle: true,
MBImport: true,
MBLinks: true,
MBSearchItStyle: true,
},
rules: {
'prettier/prettier': 'error',
'prefer-template': 'error',
'no-console': 'off',
'no-inner-declarations': 'warn',
'no-global-assign': 'warn',
'no-redeclare': 'warn',
'no-self-assign': 'warn',
'no-undef': 'warn',
'no-useless-concat': 'warn',
'no-useless-escape': 'warn',
'no-unused-vars': 'warn',
'no-var': 'warn',
},
};