Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion backend/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { User as IUser } from "../src/models/user";

declare global {
Expand Down
34 changes: 13 additions & 21 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
import globals from 'globals'
import { defineConfig } from 'eslint/config'
import pluginJs from '@eslint/js'
import pluginTs from 'typescript-eslint'
import pluginTsParser from '@typescript-eslint/parser'
import { defineConfig, globalIgnores } from 'eslint/config'
import js from '@eslint/js'
import tseslint from 'typescript-eslint'
import pluginCypress from 'eslint-plugin-cypress'

export default defineConfig([
{
ignores: ['build/'],
},
globalIgnores(['build/']),
{
files: ['**/*.ts'],
languageOptions: {
parser: pluginTsParser,
},
},
pluginJs.configs.recommended,
pluginTs.configs.recommended,
pluginCypress.configs.recommended,
{
extends: [
js.configs.recommended,
tseslint.configs.recommended,
pluginCypress.configs.recommended,
],
rules: {
// TO-DO review violations of disabled rules
// TODO: review violations of disabled rules
'no-empty': 'off',
'no-prototype-builtins': 'off',
'no-undef': 'off',
Expand All @@ -38,9 +32,7 @@ export default defineConfig([
'@typescript-eslint/triple-slash-reference': 'off',
},
languageOptions: {
globals: {
...globals.node,
},
}
}
globals: globals.node,
},
},
])
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"@babel/preset-env": "^7.28.0",
"@cypress/code-coverage": "^3.14.5",
"@cypress/instrument-cra": "1.4.0",
"@eslint/js": "^9.37.0",
"@faker-js/faker": "6.1.2",
"@percy/cli": "^1.27.4",
"@percy/cypress": "3.1.6",
Expand Down Expand Up @@ -91,7 +92,6 @@
"@types/validator": "13.7.2",
"@types/webpack-env": "1.16.4",
"@types/yup": "0.29.13",
"@typescript-eslint/parser": "^8.35.1",
"@vitejs/plugin-react": "^5.0.1",
"babel-loader": "^10.0.0",
"bcryptjs": "2.4.3",
Expand All @@ -101,8 +101,8 @@
"cross-env": "7.0.3",
"cypress": "15.0.0",
"dotenv": "16.0.0",
"eslint": "^9.30.1",
"eslint-plugin-cypress": "^5.1.0",
"eslint": "^9.37.0",
"eslint-plugin-cypress": "^5.2.0",
"express": "4.20.0",
"express-jwt": "6.1.2",
"express-paginate": "1.0.2",
Expand Down Expand Up @@ -132,7 +132,7 @@
"start-server-and-test": "1.14.0",
"ts-node": "10.9.2",
"typescript": "5.8.3",
"typescript-eslint": "^8.35.1",
"typescript-eslint": "^8.46.0",
"vite": "^7.1.3",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-istanbul": "^4.1.0",
Expand Down
Loading