Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
Added eslint to fix travis build

OKTA-473377
<<<Jenkins Check-In of Tested SHA: 708e0ce for [email protected]>>>
Artifact: samples-js-react
Files changed count: 6
PR Link: "#256"
  • Loading branch information
denys.oblohin authored and eng-prod-CI-bot-okta committed Mar 23, 2022
1 parent 08beb21 commit 213b16a
Show file tree
Hide file tree
Showing 6 changed files with 11,796 additions and 980 deletions.
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
dist
build
build2
/scripts
/tools
okta-oidc-tck
samples-nodejs-express-4
51 changes: 51 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// https://eslint.org/docs/user-guide/configuring

module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
ecmaFeatures: {
jsx: true
}
},
extends: [
'eslint:recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:react/recommended',
'plugin:@typescript-eslint/eslint-recommended',
],
plugins: [
'import',
'@typescript-eslint',
'react',
'react-hooks'
],
rules: {
'react/prop-types': 0
},
env: {
node: true,
browser: true
},
settings: {
'react': {
'version': '16.8',
}
},
overrides: [
{
files: [
'**/*.test.jsx'
],
env: {
jest: true
},
rules: {
'react/display-name': 0
}
}
]
}
2 changes: 1 addition & 1 deletion custom-login/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"vite": "^2.8.0",
"dotenv": "^16.0.0"
}
}
}
2 changes: 1 addition & 1 deletion okta-hosted-login/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"vite": "^2.8.0",
"dotenv": "^16.0.0"
}
}
}
Loading

0 comments on commit 213b16a

Please sign in to comment.