Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3da9aca

Browse filesBrowse files
committed
Add indent settings to eslintrc.
This matches prettier's settings, but should now warn in CI too.
1 parent 1357102 commit 3da9aca
Copy full SHA for 3da9aca

File tree

Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed

‎lib/matplotlib/backends/web_backend/.eslintrc.js

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/web_backend/.eslintrc.js
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,20 @@ module.exports = {
1111
MozWebSocket: "readonly",
1212
},
1313
rules: {
14+
indent: ["error", 2, { SwitchCase: 1 }],
1415
"no-unused-vars": [
1516
"error",
1617
{
1718
argsIgnorePattern: "^_",
1819
},
1920
],
2021
},
22+
overrides: [
23+
{
24+
files: "js/**/*.js",
25+
rules: {
26+
indent: ["error", 4, { SwitchCase: 1 }],
27+
},
28+
},
29+
],
2130
};

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.