Skip to content

Commit

Permalink
add eslint to project with AirBnB style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgraham4401 committed Jul 14, 2022
1 parent e57b3b5 commit 7d4449c
Show file tree
Hide file tree
Showing 28 changed files with 593 additions and 406 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 David Paul Graham
Copyright (c) 2022 U.S. Environmental Protection Agency

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
40 changes: 40 additions & 0 deletions frontend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"airbnb"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
// temporary turn off until resolve
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
"import/no-cycle": "off",
"react/jsx-props-no-spreading": "off",
"jsx-a11y/label-has-associated-control": "off",
"object-curly-spacing": "off",
"no-param-reassign": "off"
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": [
"node_modules",
"src/"
]
}
}
}
}
193 changes: 149 additions & 44 deletions frontend/package-lock.json

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

8 changes: 8 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,13 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"eslint": "^8.19.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.0",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0"
}
}
Loading

0 comments on commit 7d4449c

Please sign in to comment.