diff --git a/bun.lockb b/bun.lockb index c9b724c..b81ae3e 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/eslint.config.cjs b/eslint.config.cjs new file mode 100644 index 0000000..8ec7056 --- /dev/null +++ b/eslint.config.cjs @@ -0,0 +1,13 @@ +const eslintPluginPrettier = require('eslint-plugin-prettier/recommended') + +module.exports = [ + eslintPluginPrettier, + { + ...require('eslint-config-love'), + files: ['**/*.ts'], + rules: { + "@typescript-eslint/explicit-function-return-type": "off", + "@typescript-eslint/explicit-function-return-type": "off" + } + } +] diff --git a/eslint.config.js b/eslint.config.js deleted file mode 100644 index af33f16..0000000 --- a/eslint.config.js +++ /dev/null @@ -1,97 +0,0 @@ -import pluginJs from '@eslint/js' -import pluginImport from 'eslint-plugin-import' -import eslintPluginPrettier from 'eslint-plugin-prettier/recommended' -import globals from 'globals' -import tsEslint from 'typescript-eslint' - -export default [ - pluginJs.configs.recommended, - ...tsEslint.configs.recommended, - eslintPluginPrettier, - { - languageOptions: { globals: globals.nodeBuiltin }, - plugins: { - import: pluginImport - }, - rules: { - 'import/order': [ - 'error', - { - 'newlines-between': 'always', - alphabetize: { - order: 'asc', - caseInsensitive: true - }, - groups: [ - 'NodeJS', - 'Third-Party libraries', - 'Constants', - 'Utils', - 'User-Input', - 'Controllers', - 'Config', - 'Types' - ], - pathGroups: [ - { - pattern: 'node:**', - group: 'NodeJS', - patternOptions: { - nocomment: false - } - }, - { - pattern: '@/utils/**', - group: 'Utils', - patternOptions: { - nocomment: false - } - }, - { - pattern: '@/types/**', - group: 'Types', - patternOptions: { - nocomment: false - } - }, - { - pattern: '@/user-input/**', - group: 'User-Input', - patternOptions: { - nocomment: false - } - }, - { - pattern: '@/controllers/**', - group: 'Controllers', - patternOptions: { - nocomment: false - } - }, - { - pattern: '@/constants/**', - group: 'Constants', - patternOptions: { - nocomment: false - } - }, - { - pattern: '@/config/**', - group: 'Config', - patternOptions: { - nocomment: false - } - } - ] - } - ], - 'import/newline-after-import': [ - 'error', - { - count: 2, - considerComments: true - } - ] - } - } -] diff --git a/package.json b/package.json index 4aab446..416b378 100644 --- a/package.json +++ b/package.json @@ -33,16 +33,15 @@ "@types/npmcli__promise-spawn": "6.0.3", "@types/opener": "1.4.3", "esbuild": "0.21.4", - "eslint": "9.3.0", + "eslint": "^8.0.1", + "eslint-config-love": "50.0.0", "eslint-config-prettier": "9.1.0", "eslint-plugin-prettier": "5.1.3", - "globals": "15.3.0", "husky": "9.0.11", "lint-staged": "15.2.5", "markdownlint": "0.34.0", "prettier": "3.2.5", - "typescript": "5.4.5", - "typescript-eslint": "7.10.0" + "typescript": "5.4.5" }, "contributors": [ {