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

Commit 3ddf157

Browse files
lucasecdbMatt Goo
authored and
Matt Goo
committed
chore: add prettier (#863)
1 parent 88697da commit 3ddf157

File tree

175 files changed

+5166
-2939
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+5166
-2939
lines changed

.eslintrc.json

+21-24
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,36 @@
11
{
22
"extends": [
33
"google",
4-
"plugin:react/recommended"
4+
"plugin:@typescript-eslint/eslint-recommended",
5+
"plugin:react/recommended",
6+
"prettier/@typescript-eslint",
7+
"prettier",
8+
"prettier/react"
59
],
610
"plugins": [
7-
"react"
11+
"@typescript-eslint",
12+
"react",
13+
"prettier"
814
],
915
"rules": {
16+
"prettier/prettier": "warn",
17+
"no-unused-vars": "off",
18+
"@typescript-eslint/no-unused-vars": "warn",
1019
"strict": 0,
1120
"require-jsdoc": "off",
1221
"valid-jsdoc": "off",
1322
"switch-colon-spacing": 0,
14-
"max-len": ["error", 120],
15-
"indent": ["error", 2, {"SwitchCase":1}],
23+
"max-len": "off",
24+
"indent": "off",
1625
"no-invalid-this": "off",
17-
"object-curly-spacing": ["error", "never"]
26+
"object-curly-spacing": "off",
27+
"react/prop-types": ["error", { "skipUndeclared": true }]
1828
},
19-
"overrides": [
20-
{
21-
"parser": "typescript-eslint-parser",
22-
"parserOptions": {
23-
"jsx": true
24-
},
25-
"plugins": [
26-
"typescript"
27-
],
28-
"rules": {
29-
"typescript/no-unused-vars": "warn",
30-
"quotes": ["error", "single"],
31-
"jsx-quotes": ["error", "prefer-single"]
32-
},
33-
"files": ["**/*.+(tsx|ts)"]
34-
}, {
35-
"parser": "babel-eslint",
36-
"files": ["**/*.jsx", "**/*.js"]
29+
"parser": "@typescript-eslint/parser",
30+
"parserOptions": {
31+
"sourceType": "module",
32+
"ecmaFeatures": {
33+
"jsx": true
3734
}
38-
]
35+
}
3936
}

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"bracketSpacing": false,
5+
"jsxSingleQuote": true,
6+
"arrowParens": "always"
7+
}

0 commit comments

Comments
 (0)