Skip to content

Commit

Permalink
feat(react client): added linter to project
Browse files Browse the repository at this point in the history
- Related OWASP#192
  • Loading branch information
KoolTheba committed Mar 22, 2020
1 parent fed2529 commit a24718b
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 3 deletions.
26 changes: 26 additions & 0 deletions apps/react-apirest/client/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'react',
],
rules: {
},
};
36 changes: 33 additions & 3 deletions apps/react-apirest/client/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 apps/react-apirest/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,13 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^2.5.1"
}
}

0 comments on commit a24718b

Please sign in to comment.