Skip to content

Commit

Permalink
switch to yarn, add prettier & eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
AlyssaKirstine committed Jun 7, 2022
1 parent aee0b1c commit 5ec8010
Show file tree
Hide file tree
Showing 7 changed files with 11,207 additions and 30,010 deletions.
53 changes: 53 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parser": "@typescript-eslint/parser",
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts", ".tsx"],
"moduleDirectory": ["node_modules", "src"]
}
},
"react": {
"version": "detect"
}
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["@emotion", "react"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_"
}
],
"arrow-parens": "off",
"camelcase": "off",
"react/destructuring-assignment": "warn",
"react/jsx-props-no-spreading": "warn",
"no-use-before-define": "off"
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
},
{
"files": ["*.tsx"],
"rules": {
"react/prop-types": "off"
}
}
]
}
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"arrowParens": "always",
"endOfLine": "lf",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
}
Loading

0 comments on commit 5ec8010

Please sign in to comment.