Skip to content

Commit

Permalink
bump eslint to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Oct 14, 2024
1 parent 319365e commit 605aa31
Show file tree
Hide file tree
Showing 32 changed files with 806 additions and 1,718 deletions.
37 changes: 0 additions & 37 deletions .eslintrc.js

This file was deleted.

36 changes: 36 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
const js = require('@eslint/js')
const globals = require('globals')
const reactHooks = require('eslint-plugin-react-hooks')
const tseslint = require('typescript-eslint')
const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended')

module.exports = tseslint.config(
{ ignores: ['dist'] },
{
extends: [
js.configs.recommended,
...tseslint.configs.recommended,
eslintPluginPrettierRecommended
],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser
},
plugins: {
'react-hooks': reactHooks
},
rules: {
...reactHooks.configs.recommended.rules,
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'@typescript-eslint/no-explicit-any': 'off',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
]
},
},
)
31 changes: 15 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"start": "webpack serve --config webpack.dev.js",
"build": "NODE_ENV=production webpack --config webpack.prod.js",
"build-netlify": "pnpm run build && cp dist/assets/config_sample.js dist/assets/config.js",
"lint": "prettier --write \"./src/**/*.{ts,tsx,scss}\" && eslint --fix --ext .tsx,.ts src/",
"format-check": "prettier --check \"./src/**/*.{ts,tsx,scss}\" && eslint --quiet --ext .tsx,.ts src/",
"lint": "prettier --write \"./src/**/*.{ts,tsx,scss}\" && eslint --fix",
"format-check": "prettier --check \"./src/**/*.{ts,tsx,scss}\" && eslint --quiet",
"lint-staged": "lint-staged",
"prepare": "husky",
"size-limit": "pnpm run build && size-limit --json"
Expand All @@ -27,10 +27,10 @@
"copy-text-to-clipboard": "3.2.0",
"emoji-picker-react": "4.12.0",
"eventemitter3": "5.0.1",
"i18next": "23.15.2",
"i18next": "23.16.0",
"i18next-browser-languagedetector": "8.0.0",
"i18next-http-backend": "2.6.2",
"livekit-client": "2.5.7",
"livekit-client": "2.5.9",
"lodash": "4.17.21",
"microsoft-cognitiveservices-speech-sdk": "1.40.0",
"mobile-detect": "1.4.5",
Expand All @@ -43,41 +43,38 @@
"react-dom": "18.3.1",
"react-draggable": "npm:@tdaniil/react-draggable@5.0.1",
"react-hotkeys-hook": "4.5.1",
"react-i18next": "15.0.2",
"react-i18next": "15.0.3",
"react-player": "2.16.0",
"react-redux": "9.1.2",
"react-toastify": "10.0.5",
"react-toastify": "10.0.6",
"resumablejs": "1.1.0",
"sanitize-html": "2.13.1",
"validator": "13.12.0",
"video.js": "8.18.1"
},
"devDependencies": {
"@eslint/js": "^9.12.0",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
"@size-limit/preset-app": "11.1.6",
"@tensorflow/tfjs-backend-webgl": "4.21.0",
"@tensorflow/tfjs-core": "4.21.0",
"@types/emscripten": "1.39.13",
"@types/lodash": "4.17.10",
"@types/react": "18.3.11",
"@types/react-dom": "18.3.0",
"@types/react-dom": "18.3.1",
"@types/sanitize-html": "2.13.0",
"@types/video.js": "7.3.58",
"@typescript-eslint/eslint-plugin": "8.8.1",
"@typescript-eslint/parser": "8.8.1",
"autoprefixer": "10.4.20",
"clean-webpack-plugin": "4.0.0",
"copy-webpack-plugin": "12.0.2",
"css-loader": "7.1.2",
"css-minimizer-webpack-plugin": "7.0.0",
"eslint": "8.57.1",
"eslint": "9.12.0",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.6.3",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.37.1",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-react-hooks": "5.0.0",
"fork-ts-checker-webpack-plugin": "9.0.2",
"globals": "15.11.0",
"html-webpack-plugin": "5.6.0",
"husky": "9.1.6",
"lint-staged": "15.2.10",
Expand All @@ -88,17 +85,19 @@
"prettier": "3.3.3",
"react-refresh": "0.14.2",
"react-refresh-typescript": "2.0.9",
"sass": "1.79.4",
"sass": "1.79.5",
"sass-loader": "16.0.2",
"size-limit": "11.1.6",
"style-loader": "4.0.0",
"tailwindcss": "3.4.13",
"terser-webpack-plugin": "5.3.10",
"ts-loader": "9.5.1",
"typescript": "5.6.3",
"typescript-eslint": "^8.8.1",
"webpack": "5.95.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.1.0"
"webpack-dev-server": "5.1.0",
"webpack-merge": "^6.0.1"
},
"lint-staged": {
"*.{ts,tsx,scss}": [
Expand Down
Loading

0 comments on commit 605aa31

Please sign in to comment.