Skip to content

Commit

Permalink
Add linting config
Browse files Browse the repository at this point in the history
Updates editor config to fix conflicts
.prettierrc could probably be merged into eslint
  • Loading branch information
henryboldi committed Jun 9, 2021
1 parent c2c8e35 commit 648a80f
Show file tree
Hide file tree
Showing 5 changed files with 732 additions and 32 deletions.
7 changes: 2 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
root = true

[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

[*.yml]
indent_style = space
Expand Down
11 changes: 11 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "airbnb",
"globals": {
"chrome": "readonly"
},
"rules": {
"react/jsx-one-expression-per-line": [0],
"react/jsx-filename-extension": [0]
},
"parser": "babel-eslint"
}
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"singleQuote": true,
"trailingComma": "es5",
"requirePragma": false,
"arrowParens": "always",
"prettier.eslintIntegration": true
}
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,14 @@
"devDependencies": {
"@babel/core": "^7.13.1",
"@babel/preset-react": "^7.12.13",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.2",
"copy-webpack-plugin": "^9.0.0",
"eslint": "^7.28.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.24.0",
"install": "^0.13.0",
"npm": "^7.5.6",
"npm-run-all": "^4.1.5",
Expand Down
Loading

0 comments on commit 648a80f

Please sign in to comment.