Skip to content

Commit 779ba78

Browse files
author
Ankur Chaudhary
committed
Added prettier and eslint config files
1 parent f11ef64 commit 779ba78

File tree

4 files changed

+585
-70
lines changed

4 files changed

+585
-70
lines changed

.eslintrc.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:react/recommended"
9+
],
10+
"parserOptions": {
11+
"ecmaFeatures": {
12+
"jsx": true,
13+
"modules": true
14+
},
15+
"ecmaVersion": 12,
16+
"sourceType": "module"
17+
},
18+
"plugins": [
19+
"react",
20+
"import"
21+
],
22+
"rules": {
23+
"react/jsx-filename-extension": [1, {
24+
"extensions": [".js", ".jsx"]}
25+
]}
26+
}

.prettierrc

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
{
22
"arrowParens": "avoid",
3-
"semi": false
4-
}
3+
"bracketSpacing": false,
4+
"endOfLine": "lf",
5+
"htmlWhitespaceSensitivity": "css",
6+
"jsxBracketSameLine": false,
7+
"printWidth": 80,
8+
"proseWrap": "preserve",
9+
"requirePragma": false,
10+
"semi": true,
11+
"singleQuote": true,
12+
"tabWidth": 2,
13+
"trailingComma": "all",
14+
"useTabs": false,
15+
"overrides": [
16+
{
17+
"files": "*.json",
18+
"options": {
19+
"printWidth": 200
20+
}
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)