forked from flozz/StackBlur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
42 lines (42 loc) · 935 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
31
32
33
34
35
36
37
38
39
40
41
42
module.exports = {
extends: ['ash-nazg/sauron-node'],
parserOptions: {
sourceType: 'module'
},
env: {
node: true,
browser: true
},
overrides: [{
files: '*.md',
globals: {
require: true,
StackBlur: true,
width: true,
height: true,
top_x: true,
top_y: true,
radius: true,
imageData: true,
sourceImage: true,
targetCanvas: true,
blurAlphaChannel: true,
},
rules: {
'import/unambiguous': 0,
'import/no-commonjs': 0,
'node/no-missing-import': 0,
'import/no-unresolved': ['error', {
ignore: ['stackblur-canvas']
}],
'node/no-missing-require': ['error', {
allowModules: ['stackblur-canvas'],
}],
'no-shadow': 0,
'no-unused-vars': ['error', {varsIgnorePattern: 'StackBlur'}]
}
}],
rules: {
'jsdoc/require-returns': ['error', {exemptedBy: ['see']}]
}
};