Skip to content

Commit

Permalink
Add eslint and prettier with configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mpourismaiel committed Jan 30, 2020
1 parent 352a522 commit 9749a7f
Show file tree
Hide file tree
Showing 4 changed files with 983 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": ["airbnb", "prettier"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": ["error"]
},
}

11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always"
}
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,21 @@
"@fortawesome/fontawesome-free": "^5.6.3",
"bootstrap": "^4.4.1",
"chart.js": "^2.7.2",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.18.0",
"foreman": "^3.0.0",
"form-validator-simple": "^0.1.1",
"fuse.js": "^3.2.1",
"i": "^0.3.6",
"parse-price": "^1.1.8",
"particles.js": "^2.0.0",
"popper.js": "^1.14.3",
"prettier": "^1.19.1",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"react-jsonschema-form": "^1.0.3"
Expand Down
Loading

0 comments on commit 9749a7f

Please sign in to comment.