Skip to content

Commit

Permalink
Update linter to be local
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Jan 15, 2024
1 parent ee06c80 commit c5c57f2
Show file tree
Hide file tree
Showing 7 changed files with 2,048 additions and 1,730 deletions.
2 changes: 1 addition & 1 deletion code/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ ember-output
!.eslintrc.js
!.eslintrc-markdown.js
!.storybook

lib/core-common/templates/base-preview-head.html
7 changes: 1 addition & 6 deletions code/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ module.exports = {
},
plugins: ['local-rules'],
rules: {
// remove as shared eslint has jest rules removed
'jest/no-standalone-expect': 'off',
'jest/no-done-callback': 'off',
'jest/no-deprecated-functions': 'off',
'jest/valid-expect': 'off',

'eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }],
'eslint-comments/no-unused-disable': 'error',
'react-hooks/rules-of-hooks': 'off',
Expand All @@ -52,6 +46,7 @@ module.exports = {
],
},
],
'@typescript-eslint/default-param-last': 'off',
},
overrides: [
{
Expand Down
18 changes: 5 additions & 13 deletions code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,9 @@
],
"resolutions": {
"@playwright/test": "1.36.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/experimental-utils": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@storybook/linter-config": "portal:/Users/kasperpeulen/code/storybook/linter-config",
"@vitest/[email protected]": "patch:@vitest/expect@npm%3A1.1.3#~/.yarn/patches/@vitest-expect-npm-1.1.3-2062bf533f.patch",
"esbuild": "^0.18.0",
"eslint": "^8.28.0",
"eslint-plugin-prettier": "^5.1.2",
"playwright": "1.36.0",
"playwright-core": "1.36.0",
"serialize-javascript": "^3.1.0",
Expand Down Expand Up @@ -184,9 +180,8 @@
"@types/react-dom": "^18.0.11",
"@types/semver": "^7.3.4",
"@types/serve-static": "^1.13.8",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/experimental-utils": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@typescript-eslint/experimental-utils": "^5.62.0",
"@typescript-eslint/parser": "^6.18.1",
"@vitejs/plugin-react": "^3.0.1",
"@vitest/coverage-v8": "^1.0.1",
"chromatic": "7.1.0",
Expand All @@ -196,12 +191,9 @@
"esbuild": "^0.18.0",
"esbuild-loader": "^3.0.0",
"esbuild-plugin-alias": "^0.2.1",
"eslint": "^8.28.0",
"eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-import": "^2.26.0",
"eslint": "^8.56.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-local-rules": "portal:../scripts/eslint-plugin-local-rules",
"eslint-plugin-prettier": "^5.1.2",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-storybook": "^0.6.15",
"fs-extra": "^11.1.0",
"github-release-from-changelog": "^2.1.1",
Expand Down
Loading

0 comments on commit c5c57f2

Please sign in to comment.