Skip to content

Commit

Permalink
upgrade eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Oct 24, 2022
1 parent ff46c40 commit a889dac
Show file tree
Hide file tree
Showing 6 changed files with 667 additions and 886 deletions.
17 changes: 17 additions & 0 deletions code/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ const scriptPath = path.join(__dirname, '..', 'scripts');
module.exports = {
root: true,
extends: [path.join(scriptPath, '.eslintrc.js')],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
overrides: [
{
// this package depends on a lot of peerDependencies we don't want to specify, because npm would install them
Expand All @@ -13,6 +17,19 @@ module.exports = {
'import/no-extraneous-dependencies': 'off',
},
},
{
files: ['*.js', '*.jsx', '*.json'],
parserOptions: {
project: null,
},
rules: {
// '@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/no-implied-eval': 'off',
'@typescript-eslint/no-throw-literal': 'off',
'@typescript-eslint/return-await': 'off',
},
},
{
// this package depends on a lot of peerDependencies we don't want to specify, because npm would install them
files: ['**/*.ts', '**/*.tsx'],
Expand Down
4 changes: 2 additions & 2 deletions code/examples/external-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"@types/prop-types": "^15",
"@types/react": "^17.0.39",
"cross-env": "^7.0.3",
"eslint": "8.7.0",
"eslint-config-next": "12.0.8",
"eslint": "^8.26.0",
"eslint-config-next": "^12.3.1",
"storybook": "7.0.0-alpha.41",
"typescript": "~4.6.3",
"webpack": "5"
Expand Down
24 changes: 12 additions & 12 deletions code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@
],
"resolutions": {
"@nrwl/cli": "14.6.1",
"@typescript-eslint/eslint-plugin": "^5.15.0",
"@typescript-eslint/experimental-utils": "5.3.0",
"@typescript-eslint/parser": "^5.15.0",
"@typescript-eslint/eslint-plugin": "^5.40.1",
"@typescript-eslint/experimental-utils": "^5.40.1",
"@typescript-eslint/parser": "^5.40.1",
"boxen": "^5.1.2",
"esbuild": "^0.14.48",
"eslint": "^7.17.0",
"eslint": "^8.26.0",
"serialize-javascript": "^3.1.0",
"typescript": "~4.6.3",
"webpack": "5"
Expand Down Expand Up @@ -189,7 +189,7 @@
"@storybook/csf-tools": "workspace:*",
"@storybook/docs-tools": "workspace:*",
"@storybook/ember": "workspace:*",
"@storybook/eslint-config-storybook": "^2.4.0",
"@storybook/eslint-config-storybook": "^3.1.2",
"@storybook/html": "workspace:*",
"@storybook/html-webpack5": "workspace:*",
"@storybook/instrumenter": "workspace:*",
Expand Down Expand Up @@ -254,9 +254,9 @@
"@types/shelljs": "^0.8.7",
"@types/terser-webpack-plugin": "^5.2.0",
"@types/webpack-dev-middleware": "^5.3.0",
"@typescript-eslint/eslint-plugin": "^5.15.0",
"@typescript-eslint/experimental-utils": "^5.20.0",
"@typescript-eslint/parser": "^5.15.0",
"@typescript-eslint/eslint-plugin": "^5.40.1",
"@typescript-eslint/experimental-utils": "^5.40.1",
"@typescript-eslint/parser": "^5.40.1",
"@vitejs/plugin-react": "^2.1.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
Expand All @@ -279,10 +279,10 @@
"esbuild": "^0.14.48",
"esbuild-loader": "^2.19.0",
"esbuild-plugin-alias": "^0.2.1",
"eslint": "^7.17.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-storybook": "^0.6.4",
"eslint": "^8.26.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-storybook": "^0.6.6",
"esm": "^3.2.25",
"execa": "^5.0.0",
"express": "^4.17.1",
Expand Down
Loading

0 comments on commit a889dac

Please sign in to comment.