Skip to content

Commit 1750ec6

Browse files
rolandszokesolkimicreb
authored andcommitted
refactor(lint): add eslint, commitlint, husky
fix lint issues
1 parent 3cf2180 commit 1750ec6

25 files changed

+1661
-762
lines changed

.eslintrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": ["airbnb", "prettier"],
4+
"plugins": ["prettier"],
5+
"rules": {
6+
"prettier/prettier": ["error"],
7+
"import/prefer-default-export": "off",
8+
"import/no-extraneous-dependencies": "off",
9+
"import/no-mutable-exports": "off",
10+
"no-nested-ternary": "off",
11+
"no-param-reassign": "off",
12+
"func-names": "off"
13+
},
14+
"globals": {
15+
"window": true,
16+
"EventTarget": true,
17+
"WebSocket": true
18+
}
19+
}

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"singleQuote": true,
5+
"printWidth": 70
6+
}

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"files.insertFinalNewline": true,
3+
"files.trimFinalNewlines": true,
4+
"editor.defaultFormatter": "esbenp.prettier-vscode",
5+
"editor.formatOnSave": true
6+
}

0 commit comments

Comments
 (0)