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

Skip to content

Commit 5eef7b1

Browse files
authored
Merge pull request #17026 from QuLogic/js-format
Add eslint & prettier, and re-format JS
2 parents 8768d13 + 33d496b commit 5eef7b1

File tree

8 files changed

+366
-256
lines changed

8 files changed

+366
-256
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,5 @@ lib/z.lib
104104
#########################
105105

106106
jquery-ui-*/
107+
lib/matplotlib/backends/web_backend/node_modules/
108+
lib/matplotlib/backends/web_backend/package-lock.json
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
root: true,
3+
ignorePatterns: ["jquery-ui-*/", "node_modules/"],
4+
env: {
5+
browser: true,
6+
jquery: true,
7+
},
8+
extends: ["eslint:recommended", "prettier"],
9+
globals: {
10+
IPython: "readonly",
11+
MozWebSocket: "readonly",
12+
},
13+
rules: {
14+
"no-unused-vars": [
15+
"error",
16+
{
17+
argsIgnorePattern: "^_",
18+
},
19+
],
20+
},
21+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules/
2+
3+
# Vendored dependencies
4+
css/boilerplate.css
5+
css/fbm.css
6+
css/page.css
7+
jquery-ui-*/
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"overrides": [
3+
{
4+
"files": "js/**/*.js",
5+
"options": {
6+
"singleQuote": true,
7+
"tabWidth": 4,
8+
}
9+
}
10+
]
11+
}

0 commit comments

Comments
 (0)