-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Expand file tree
/
Copy path.eslintrc.js
More file actions
32 lines (32 loc) · 666 Bytes
/
.eslintrc.js
File metadata and controls
32 lines (32 loc) · 666 Bytes
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
module.exports = {
root: true,
ignorePatterns: ["jquery-ui-*/", "node_modules/"],
env: {
browser: true,
jquery: true,
},
extends: ["eslint:recommended", "prettier"],
globals: {
IPython: "readonly",
MozWebSocket: "readonly",
},
rules: {
indent: ["error", 2, { SwitchCase: 1 }],
"no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
},
],
quotes: ["error", "double", { avoidEscape: true }],
},
overrides: [
{
files: "js/**/*.js",
rules: {
indent: ["error", 4, { SwitchCase: 1 }],
quotes: ["error", "single", { avoidEscape: true }],
},
},
],
};