Skip to content

Commit 4e76c92

Browse files
committed
chore: Setup eslint rules
1 parent b8c71e3 commit 4e76c92

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

client/.eslintrc.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
11
{
2-
"extends": "next/core-web-vitals"
2+
"env": {
3+
"node": true,
4+
"browser": true,
5+
"es6": true
6+
},
7+
"extends": "next/core-web-vitals",
8+
"plugins": [
9+
"eslint-plugin-react", "eslint-plugin-react-hooks"
10+
],
11+
"rules": {
12+
"indent": ["error", 2],
13+
"linebreak-style": ["error", "unix"],
14+
"quotes": ["error", "single"],
15+
"semi": ["error", "never"],
16+
"no-unused-vars": "error",
17+
"no-undef": "error",
18+
"no-trailing-spaces": "error",
19+
"no-console": ["error", { "allow": ["error"] }]
20+
}
321
}

client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"build": "next build",
1212
"start": "next start",
1313
"lint": "next lint",
14+
"lint:fix": "next lint --fix .",
1415
"export": "npm run build && next export"
1516
},
1617
"dependencies": {

0 commit comments

Comments
 (0)