Skip to content

Commit

Permalink
Merge pull request #164 from gitdallas/chore/162-pf5
Browse files Browse the repository at this point in the history
chore: 162 update to react 18 and pf5
  • Loading branch information
nicolethoen authored Sep 7, 2023
2 parents 62e92b7 + 2b42cba commit 5229262
Show file tree
Hide file tree
Showing 14 changed files with 22,544 additions and 44,603 deletions.
27 changes: 25 additions & 2 deletions .eslintrc → .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
module.exports = {
// tells eslint to use the TypeScript parser
"parser": "@typescript-eslint/parser",
// tell the TypeScript parser that we want to use JSX syntax
Expand All @@ -12,6 +12,7 @@
},
// we want to use the recommended rules provided from the typescript plugin
"extends": [
"@redhat-cloud-services/eslint-config-redhat-cloud-services",
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
Expand All @@ -23,8 +24,24 @@
"expect": "readonly",
"it": "readonly",
"process": "readonly",
"document": "readonly"
"document": "readonly",
"insights": "readonly",
"shallow": "readonly",
"render": "readonly",
"mount": "readonly"
},
"overrides": [
{
"files": ["src/**/*.ts", "src/**/*.tsx"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"react/prop-types": "off",
"@typescript-eslint/no-unused-vars": "error"
},
},
],
"settings": {
"react": {
"version": "^16.11.0"
Expand All @@ -37,6 +54,12 @@
"eslint-plugin-react-hooks"
],
"rules": {
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true
}
],
"@typescript-eslint/explicit-function-return-type": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
Expand Down
7 changes: 0 additions & 7 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ module.exports = {
// A preset that is used as a base for Jest's configuration
preset: "ts-jest/presets/js-with-ts",

// The path to a module that runs some code to configure or set up the testing framework before each test
setupFilesAfterEnv: ['<rootDir>/test-setup.js'],

// The test environment that will be used for testing.
testEnvironment: "jsdom",

// A list of paths to snapshot serializer modules Jest should use for snapshot testing
snapshotSerializers: ['enzyme-to-json/serializer'],

};
Loading

0 comments on commit 5229262

Please sign in to comment.