Skip to content

Commit

Permalink
updates to package json and eslintrc for lint060 and getting all DXCB…
Browse files Browse the repository at this point in the history
… templates to build to same version
  • Loading branch information
paulgagnon-pega committed Dec 22, 2023
1 parent b21ae4c commit c926123
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
35 changes: 22 additions & 13 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
"version": "detect"
}
},
"ignorePatterns": ["node_modules", "packages/*/lib", "!.storybook", ".storybook/public"],
"ignorePatterns": [
"node_modules", "packages/*/lib", "!.storybook", ".storybook/public",
"src/components/custom-sdk/**/demo.stories.*",
"src/components/custom-sdk/**/mock.stories.*"
],
"rules": {

// Prettier recommends running separately from a linter.
Expand Down Expand Up @@ -55,6 +59,8 @@
"import/no-unresolved": "off",
"import/no-useless-path-segments": "off",
"import/order": "off",
"import/prefer-default-export": "off",
"import/no-relative-packages": "off",

"no-else-return": "off",
"no-restricted-syntax": "off",
Expand All @@ -66,7 +72,7 @@
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/no-static-element-interactions": "off",

"react/jsx-fragments": "off",
"react/jsx-fragments": "error",
"react/jsx-no-bind": "off",
"react/self-closing-comp": "off",

Expand All @@ -78,16 +84,19 @@

//
// Initial release: set to error
"@typescript-eslint/no-inferrable-types": "error",
"eqeqeq": "error",
"no-alert": "error",
"no-console": "error",
"@typescript-eslint/no-inferrable-types": "off",
"eqeqeq": "off",
"no-alert": "off",
"no-console": "off",
"no-fallthrough": "error",
"no-undef": "warn",
"no-unused-vars": "error",
"no-var": "error",
"prefer-const": "error",
"no-undef": "off",
"no-unused-vars": "off",
"no-var": "off",
"prefer-const": "off",
"yoda": "error",
"no-irregular-whitespace": "off",
"no-empty": "off",
"no-new-object": "off",

"import/no-mutable-exports": "error",
"sonarjs/max-switch-cases": "error",
Expand All @@ -106,7 +115,7 @@
"react/static-property-placement": "error",
"array-callback-return": "error",
"camelcase": "error",
"default-case": "error",
"default-case": "off",
"func-names": "error",
"no-case-declarations": "error",
"no-lonely-if": "error",
Expand All @@ -122,7 +131,7 @@
"sonarjs/no-nested-switch": "error",
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-useless-constructor": "error",
"react/button-has-type": "error",
"react/jsx-curly-brace-presence": "error",
Expand Down Expand Up @@ -175,7 +184,7 @@
"react/react-in-jsx-scope": "off",
// Set up configuration for future sweep
"react-hooks/exhaustive-deps": [
"off",
"error",
{
"additionalHooks": "useAfterInitialEffect"
}
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,9 @@
"devDependencies": {
"@kooneko/livereload-webpack-plugin": "^1.2.0",
"@loadable/component": "^5.13.1",
"@pega/configs": "^0.4.0",
"@pega/configs": "^0.6.0",
"@pega/cspell-config": "^0.4.0",
"@pega/dx-component-builder-sdk": "~23.1.11",
"@pega/eslint-config": "^0.4.0",
"@pega/pcore-pconnect-typedefs": "2.0.0",
"@pega/prettier-config": "^0.4.0",
"@pega/react-sdk-overrides": "~23.1.10",
Expand All @@ -103,7 +102,7 @@
"copy-webpack-plugin": "^7.0.0",
"cspell": "^6.17.0",
"css-loader": "^5.0.1",
"eslint": "^8.30.0",
"eslint": "^8.24.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.7",
"eslint-plugin-jsx-a11y": "^6.6.1",
Expand Down

0 comments on commit c926123

Please sign in to comment.