Skip to content

Commit

Permalink
style: bump eslint to 9
Browse files Browse the repository at this point in the history
  • Loading branch information
SocketSomeone committed Jan 21, 2025
1 parent d112075 commit b5e40b2
Show file tree
Hide file tree
Showing 4 changed files with 1,286 additions and 328 deletions.
29 changes: 0 additions & 29 deletions .eslintrc

This file was deleted.

54 changes: 54 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import eslint from '@eslint/js';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{
ignores: ['node_modules', '**/node_modules/**', '**/*.js', '**/*.d.ts']
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
eslintPluginPrettierRecommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.jest
},
ecmaVersion: 5,
sourceType: 'module',
parserOptions: {
project: ['tsconfig.json', 'tsconfig.build.json', 'tsconfig.spec.json'],
projectService: true,
tsconfigRootDir: import.meta.dirname
}
}
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-function-type': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-misused-promises': [
'error',
{
checksVoidReturn: false,
checksConditionals: false
}
],
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/prefer-promise-reject-errors': 'off',
'@typescript-eslint/no-base-to-string': 'off',
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/only-throw-error': 'off'
}
}
);
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,20 @@
"devDependencies": {
"@commitlint/cli": "19.6.1",
"@commitlint/config-angular": "19.7.0",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.18.0",
"@favware/npm-deprecate": "2.0.0",
"@nestjs/common": "10.4.15",
"@nestjs/core": "10.4.15",
"@nestjs/testing": "10.4.15",
"@types/jest": "29.5.14",
"@types/node": "22.10.7",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"discord.js": "^14.16.2",
"eslint": "8.57.1",
"eslint": "^9.18.0",
"eslint-config-prettier": "10.0.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "5.2.3",
"globals": "^15.14.0",
"husky": "9.1.7",
"jest": "29.7.0",
"lavalink-client": "^2.4.0",
Expand All @@ -71,14 +73,15 @@
"rxjs": "7.8.1",
"ts-jest": "29.2.5",
"ts-node": "10.9.2",
"typescript": "5.7.3"
"typescript": "5.7.3",
"typescript-eslint": "^8.21.0"
},
"peerDependencies": {
"@nestjs/common": "^10.2.0",
"@nestjs/core": "^10.2.0",
"discord.js": "^14.0.1",
"necord": "^6.0.0",
"lavalink-client": "^2.4.0",
"necord": "^6.0.0",
"reflect-metadata": "^0.2.1",
"rxjs": "^7.2.0"
}
Expand Down
Loading

0 comments on commit b5e40b2

Please sign in to comment.