Skip to content

Commit

Permalink
fix: eslinting
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldkjain committed Oct 31, 2021
1 parent 004401a commit 9ba8ccf
Show file tree
Hide file tree
Showing 37 changed files with 2,097 additions and 2,606 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"browser": true,
"es2021": true
},
"extends": ["plugin:react/recommended", "airbnb"],
"extends": ["plugin:react/recommended", "airbnb", "prettier"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
Expand All @@ -12,5 +12,7 @@
"sourceType": "module"
},
"plugins": ["react"],
"rules": {}
"rules": {
"react/forbid-prop-types": 0
}
}
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged
13 changes: 4 additions & 9 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"tabWidth": 2,
"printWidth": 480,
"trailingComma": "all",
"bracketSpacing": true,
"jsxBracketSameLine": true,
"arrowParens": "avoid",
"endOfLine": "auto"
"semi": true,
"exclude": ["node_modules", "codepipeline"]
}
31 changes: 27 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"dependencies": {
"@primer/octicons-react": "^10.0.0",
"axios": "^0.24.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",
"enzyme-to-json": "^3.6.1",
Expand Down
Loading

0 comments on commit 9ba8ccf

Please sign in to comment.