Skip to content

Commit ef03cdb

Browse files
authored
Replace eslint-config-standard-with-typescript with eslint-config-love (#196)
- Removed deprecated eslint-config-standard-with-typescript from devDependencies - Added eslint-config-love@47.0.0 to devDependencies - Updated TypeScript ESLint packages to v7.18.0 for compatibility - Updated ESLint to v8.57.1 - Updated .eslintrc.js to extend 'love' configuration - Added overrides for rules to maintain existing code style - Added npm override for minimatch to fix type compatibility issues - Updated @types/glob to v8.1.0 - Verified linting and compilation work correctly
1 parent 9758f54 commit ef03cdb

File tree

3 files changed

+953
-750
lines changed

3 files changed

+953
-750
lines changed

.eslintrc.js

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ module.exports = {
1111
},
1212
plugins: ['@typescript-eslint', 'header', 'no-null', 'eslint-plugin-tsdoc', 'prettier'],
1313
extends: [
14-
'eslint:recommended',
15-
'plugin:@typescript-eslint/eslint-recommended',
16-
'plugin:@typescript-eslint/recommended-requiring-type-checking',
17-
'plugin:@typescript-eslint/recommended',
14+
'love',
1815
'prettier',
19-
'plugin:import/recommended',
20-
'plugin:import/typescript',
2116
],
2217
rules: {
2318
curly: 2,
@@ -58,6 +53,27 @@ module.exports = {
5853
'@typescript-eslint/explicit-module-boundary-types': 'off',
5954
'no-constant-condition': ['error', { checkLoops: false }],
6055
'no-empty': 'off',
56+
// Additional overrides for eslint-config-love compatibility
57+
// These rules are disabled to maintain backward compatibility with the existing codebase
58+
// and prevent unnecessary code changes during the migration from eslint-config-standard-with-typescript
59+
'@typescript-eslint/naming-convention': 'off',
60+
'@typescript-eslint/strict-boolean-expressions': 'off',
61+
'@typescript-eslint/consistent-type-imports': 'off',
62+
'@typescript-eslint/array-type': 'off',
63+
'@typescript-eslint/no-base-to-string': 'off',
64+
'@typescript-eslint/promise-function-async': 'off',
65+
'@typescript-eslint/prefer-promise-reject-errors': 'off',
66+
'@typescript-eslint/return-await': 'off',
67+
'@typescript-eslint/prefer-optional-chain': 'off',
68+
'@typescript-eslint/lines-between-class-members': 'off',
69+
'@typescript-eslint/no-confusing-void-expression': 'off',
70+
'eqeqeq': 'off',
71+
'object-shorthand': 'off',
72+
'no-useless-return': 'off',
73+
'no-template-curly-in-string': 'off',
74+
'@typescript-eslint/prefer-nullish-coalescing': 'off',
75+
'@typescript-eslint/prefer-readonly': 'off',
76+
'@typescript-eslint/method-signature-style': 'off',
6177
'sort-imports': [
6278
'error',
6379
{

0 commit comments

Comments
 (0)