-
Notifications
You must be signed in to change notification settings - Fork 29
/
.eslintrc
43 lines (43 loc) · 1.11 KB
/
.eslintrc
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
{
"extends": ["standard", "prettier"],
"plugins": ["import", "mocha", "markdown"],
"env": {
"mocha": true
},
"rules": {
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/test/**/*.js",
"**/bootstrap-unexpected-markdown.js",
"rollup.tests.js"
],
"optionalDependencies": false,
"peerDependencies": false
}
],
"mocha/no-exclusive-tests": "error",
"mocha/no-nested-tests": "error",
"mocha/no-identical-title": "error"
},
"overrides": [
{
"files": ["documentation/**/*.md"],
"processor": "markdown/markdown"
},
{
"files": ["documentation/**/*.md/*.js"],
"rules": {
// Some snippets reference variables from previous ones
// but eslint-plugin-markdown lints them independently.
// Disable the rules that this causes trouble with:
"no-unused-vars": 0,
"no-undef": 0
},
"parserOptions": {
"sourceType": "script" // Otherwise globalReturn won't work, we use that for the async snippets
}
}
]
}