Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit bde1076

Browse files
committed
add linter
1 parent c26e3a2 commit bde1076

File tree

18 files changed

+1826
-888
lines changed

18 files changed

+1826
-888
lines changed

.eslintrc.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module.exports = {
2+
extends: [
3+
"eslint:recommended",
4+
"plugin:react/recommended",
5+
"prettier",
6+
],
7+
plugins: [
8+
"react",
9+
"prettier",
10+
],
11+
rules: {
12+
"prettier/prettier": ["error", {
13+
"singleQuote": true,
14+
"trailingComma": "es5",
15+
"bracketSpacing": true,
16+
"jsxBracketSameLine": true,
17+
"printWidth": 100,
18+
"parser": "babylon",
19+
}]
20+
},
21+
parser: "babel-eslint",
22+
env: {
23+
"es6": true,
24+
"node": true,
25+
"browser": true,
26+
"jest": true,
27+
28+
},
29+
};

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"prettier.eslintIntegration": true,
3+
"eslint.enable": true,
4+
"eslint.autoFixOnSave": true,
5+
"editor.tabSize": 2
6+
}

0 commit comments

Comments
 (0)