Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3da9aca

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines 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)