Skip to content

Commit

Permalink
Merge pull request #1123 from dotboris/eslint-v9
Browse files Browse the repository at this point in the history
Eslint v9
  • Loading branch information
dotboris committed May 12, 2024
2 parents 0528d1b + 6d15fc9 commit 8b13fff
Show file tree
Hide file tree
Showing 19 changed files with 294 additions and 822 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

35 changes: 0 additions & 35 deletions .eslintrc.cjs

This file was deleted.

30 changes: 30 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// @ts-check
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import eslintConfigPrettier from 'eslint-config-prettier'

export default tseslint.config(
{
ignores: [
'dist',
'node_modules',
'playwright-report',
'test-results',
'web-ext-artifacts',
'babel.config.js',
'prettier.config.js',
'webpack.config.js',
],
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked,
{
languageOptions: {
parserOptions: {
project: true,
},
},
},
eslintConfigPrettier,
)
17 changes: 6 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"changeset": "changeset",
"package": "web-ext build -s dist -o",
"lint": "run-p 'lint:**' 'format:check'",
"lint:js": "eslint . --ext .js --ext .jsx --ext .ts --ext .tsx",
"lint:js": "eslint .",
"lint:web-ext": "web-ext lint -s dist",
"lint:typecheck": "tsc --noEmit",
"test": "vitest",
Expand All @@ -29,30 +29,24 @@
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@emotion/babel-plugin": "^11.11.0",
"@eslint/js": "^9.2.0",
"@playwright/test": "^1.44.0",
"@testing-library/react": "^15.0.7",
"@testing-library/user-event": "^14.5.2",
"@tsconfig/recommended": "^1.0.6",
"@types/eslint-config-prettier": "^6.11.3",
"@types/eslint__js": "^8.42.3",
"@types/lodash-es": "^4.17.12",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"@types/uuid": "^9.0.8",
"@types/webextension-polyfill": "^0.10.7",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"babel-loader": "^9.1.3",
"copy-webpack-plugin": "^12.0.2",
"cross-env": "^7.0.3",
"css-loader": "^7.1.1",
"eslint": "^8.57.0",
"eslint": "^9.2.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-config-standard-jsx": "^11.0.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^17.6.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.2",
"html-webpack-plugin": "^5.6.0",
"http-server": "^14.1.1",
"husky": "^9.0.11",
Expand All @@ -64,6 +58,7 @@
"sharp": "^0.33.3",
"style-loader": "^4.0.0",
"typescript": "^5.4.5",
"typescript-eslint": "^7.8.0",
"vitest": "^1.6.0",
"web-ext": "^7.11.0",
"webpack": "^5.91.0",
Expand Down

0 comments on commit 8b13fff

Please sign in to comment.