Skip to content

Commit 3f631ca

Browse files
authored
cli-ext: setup linting and prettification (#4463)
1 parent fb175f2 commit 3f631ca

File tree

19 files changed

+3217
-305
lines changed

19 files changed

+3217
-305
lines changed

cli-ext/.eslintrc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"env": {
3+
"node": true
4+
},
5+
"extends": "airbnb-base",
6+
"plugins": ["promise"],
7+
"rules": {
8+
"no-console": "off",
9+
"consistent-return": "off",
10+
"no-case-declarations": "off",
11+
"no-useless-catch": "off",
12+
"no-unused-vars": "off",
13+
"no-eval": "off",
14+
"no-new": "off",
15+
"max-len": "off",
16+
"no-plusplus": "off",
17+
"import/no-unresolved": "off",
18+
"promise/always-return": "off",
19+
"promise/no-return-wrap": "error",
20+
"promise/param-names": "error",
21+
"promise/catch-or-return": "error",
22+
"promise/no-native": "off",
23+
"promise/no-nesting": "error",
24+
"promise/no-promise-in-callback": "error",
25+
"promise/no-callback-in-promise": "error",
26+
"promise/no-return-in-finally": "error",
27+
"prefer-arrow-callback": "error"
28+
}
29+
}

0 commit comments

Comments
 (0)