Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Task/clean up ESLint configuration (#7963)

Thomas Kauld1764863ffeb
diff --git a/eslint.config.cjs b/eslint.config.cjs
index 9c1b2024b6..1b4aa6a0c0 100644
--- a/eslint.config.cjs
+++ b/eslint.config.cjs
@@ -1,6 +1,7 @@
const nxEslintPlugin = require('@nx/eslint-plugin');
const importPlugin = require('eslint-plugin-import');
const storybook = require('eslint-plugin-storybook');
+const { defineConfig } = require('eslint/config');
const typescriptEslint = require('typescript-eslint');
module.exports = [
@@ -25,14 +26,12 @@ module.exports = [
],
enforceBuildableLibDependency: true
}
- ],
- '@typescript-eslint/no-extra-semi': 'error',
- 'no-extra-semi': 'off'
+ ]
}
},
...nxEslintPlugin.configs['flat/typescript'],
...nxEslintPlugin.configs['flat/javascript'],
- ...typescriptEslint.config({
+ ...defineConfig({
files: ['**/*.ts'],
plugins: { import: importPlugin },
extends: [
@@ -91,8 +90,6 @@ module.exports = [
}
],
'@typescript-eslint/unified-signatures': 'error',
- '@typescript-eslint/no-loss-of-precision': 'warn',
- '@typescript-eslint/no-var-requires': 'warn',
'arrow-body-style': 'off',
'constructor-super': 'error',
eqeqeq: ['error', 'smart'],
diff --git a/nx.json b/nx.json
index 3b8c3846a1..e0a41e9835 100644
--- a/nx.json
+++ b/nx.json
@@ -98,6 +98,7 @@
"cache": true
},
"lint": {
+ "inputs": ["default", "^default", "{workspaceRoot}/eslint.config.cjs"],
"cache": true
},
"@nx/jest:jest": {
diff --git a/package-lock.json b/package-lock.json
index c4896f0436..22665183a4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -152,8 +152,6 @@
"@types/papaparse": "5.5.2",
"@types/passport-google-oauth20": "2.0.17",
"@types/passport-openidconnect": "0.1.3",
- "@typescript-eslint/eslint-plugin": "8.67.0",
- "@typescript-eslint/parser": "8.67.0",
"eslint": "9.35.0",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-import": "2.32.0",
diff --git a/package.json b/package.json
index 3361c354ba..755f661d28 100644
--- a/package.json
+++ b/package.json
@@ -196,8 +196,6 @@
"@types/papaparse": "5.5.2",
"@types/passport-google-oauth20": "2.0.17",
"@types/passport-openidconnect": "0.1.3",
- "@typescript-eslint/eslint-plugin": "8.67.0",
- "@typescript-eslint/parser": "8.67.0",
"eslint": "9.35.0",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-import": "2.32.0",