Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #293 from ofk/prettier
Browse files Browse the repository at this point in the history
Upgrade deps and setup prettier
  • Loading branch information
ofk authored Aug 15, 2019
2 parents b728186 + 1011941 commit 3e761ab
Show file tree
Hide file tree
Showing 67 changed files with 4,261 additions and 3,077 deletions.
46 changes: 46 additions & 0 deletions frontend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"root": true,
"env": {
"browser": true,
"es6": true
},
"extends": [
"airbnb",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:eslint-comments/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint",
"prettier/react"
],
"rules": {
"@typescript-eslint/camelcase": ["error", { "ignoreDestructuring": true }],
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-empty-interface": ["error", { "allowSingleExtends": true }],
"@typescript-eslint/no-unused-vars": [
"warn",
{ "ignoreRestSiblings": true, "argsIgnorePattern": "^_" }
],
"eslint-comments/disable-enable-pair": ["error", { "allowWholeFile": true }],
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/media-has-caption": "off",
"react/destructuring-assignment": "off",
"react/jsx-curly-newline": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".jsx", ".tsx"] }],
"react/jsx-fragments": "off",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off"
},
"overrides": [
{
"files": ["*.js", "*.jsx"],
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-var-requires": "off",
"react/prop-types": "error"
}
}
]
}
69 changes: 0 additions & 69 deletions frontend/.eslintrc.yml

This file was deleted.

3 changes: 3 additions & 0 deletions frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
package-lock.json
tsconfig.json
6 changes: 6 additions & 0 deletions frontend/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"printWidth": 100,
"singleQuote": true,
"trailingComma": "es5",
"arrowParens": "always"
}
Loading

0 comments on commit 3e761ab

Please sign in to comment.