diff --git a/cli/eslint.config.js b/cli/eslint.config.js deleted file mode 100644 index 5ebc10d3..00000000 --- a/cli/eslint.config.js +++ /dev/null @@ -1,19 +0,0 @@ -// @ts-check -import eslint from "@eslint/js"; -import eslintConfigPrettier from "eslint-config-prettier"; -import globals from "globals"; -import tslint from "typescript-eslint"; - -export default tslint.config( - eslint.configs.recommended, - ...tslint.configs.recommended, - { - languageOptions: { - globals: { - ...globals.node, - }, - }, - }, - { ignores: ["node_modules/", "dist/"] }, - eslintConfigPrettier -); diff --git a/cli/lint-staged.config.js b/cli/lint-staged.config.js deleted file mode 100644 index b5ee270b..00000000 --- a/cli/lint-staged.config.js +++ /dev/null @@ -1,3 +0,0 @@ -export default { - "*.{js,jsx,ts,tsx,vue}": "eslint --fix", -}; diff --git a/deemix/eslint.config.js b/deemix/eslint.config.js deleted file mode 100644 index 8e429958..00000000 --- a/deemix/eslint.config.js +++ /dev/null @@ -1,23 +0,0 @@ -// @ts-check -import eslint from "@eslint/js"; -import eslintConfigPrettier from "eslint-config-prettier"; -import globals from "globals"; -import tslint from "typescript-eslint"; - -export default tslint.config( - eslint.configs.recommended, - ...tslint.configs.recommended, - { - languageOptions: { - globals: { - ...globals.node, - }, - }, - rules: { - "@typescript-eslint/no-explicit-any": "off", - "no-console": ["error", { allow: ["warn", "error", "trace"] }], - }, - }, - { ignores: ["node_modules/", "dist/"] }, - eslintConfigPrettier -); diff --git a/deemix/lint-staged.config.js b/deemix/lint-staged.config.js deleted file mode 100644 index b5ee270b..00000000 --- a/deemix/lint-staged.config.js +++ /dev/null @@ -1,3 +0,0 @@ -export default { - "*.{js,jsx,ts,tsx,vue}": "eslint --fix", -}; diff --git a/deezer-sdk/eslint.config.js b/deezer-sdk/eslint.config.js deleted file mode 100644 index 8e429958..00000000 --- a/deezer-sdk/eslint.config.js +++ /dev/null @@ -1,23 +0,0 @@ -// @ts-check -import eslint from "@eslint/js"; -import eslintConfigPrettier from "eslint-config-prettier"; -import globals from "globals"; -import tslint from "typescript-eslint"; - -export default tslint.config( - eslint.configs.recommended, - ...tslint.configs.recommended, - { - languageOptions: { - globals: { - ...globals.node, - }, - }, - rules: { - "@typescript-eslint/no-explicit-any": "off", - "no-console": ["error", { allow: ["warn", "error", "trace"] }], - }, - }, - { ignores: ["node_modules/", "dist/"] }, - eslintConfigPrettier -); diff --git a/deezer-sdk/lint-staged.config.js b/deezer-sdk/lint-staged.config.js deleted file mode 100644 index b5ee270b..00000000 --- a/deezer-sdk/lint-staged.config.js +++ /dev/null @@ -1,3 +0,0 @@ -export default { - "*.{js,jsx,ts,tsx,vue}": "eslint --fix", -}; diff --git a/webui/eslint.config.js b/eslint.config.mjs similarity index 72% rename from webui/eslint.config.js rename to eslint.config.mjs index a55d5e1c..8e36dc0f 100644 --- a/webui/eslint.config.js +++ b/eslint.config.mjs @@ -1,3 +1,4 @@ +// @ts-check import eslint from "@eslint/js"; import eslintConfigPrettier from "eslint-config-prettier"; import pluginVue from "eslint-plugin-vue"; @@ -9,19 +10,18 @@ const extraFileExtensions = [".vue"]; export default tslint.config( eslint.configs.recommended, ...tslint.configs.recommended, - // @ts-expect-error + // @ts-expect-error Fix your plugin ...pluginVue.configs["flat/recommended"], { - files: ["**/*.ts"], languageOptions: { - parserOptions: { - parser: tslint.parser, - extraFileExtensions, + globals: { + ...globals.browser, + ...globals.node, }, }, }, { - files: ["**/*.vue"], + files: ["**/*.ts", "**/*.vue"], languageOptions: { parserOptions: { parser: tslint.parser, @@ -30,12 +30,7 @@ export default tslint.config( }, }, { - languageOptions: { - globals: { - ...globals.browser, - ...globals.node, - }, - }, + files: ["webui/**/*"], rules: { "vue/no-v-html": "off", "vue/require-explicit-emits": "off", @@ -45,6 +40,13 @@ export default tslint.config( "no-console": ["error", { allow: ["warn", "error", "trace"] }], }, }, - { ignores: ["node_modules/", "dist/"] }, + { + files: ["deemix/**/*", "deezer-sdk/**/*"], + rules: { + "@typescript-eslint/no-explicit-any": "off", + "no-console": ["error", { allow: ["warn", "error", "trace"] }], + }, + }, + { ignores: ["**/node_modules/", "**/dist/"] }, eslintConfigPrettier ); diff --git a/gui/eslint.config.js b/gui/eslint.config.js deleted file mode 100644 index 5ebc10d3..00000000 --- a/gui/eslint.config.js +++ /dev/null @@ -1,19 +0,0 @@ -// @ts-check -import eslint from "@eslint/js"; -import eslintConfigPrettier from "eslint-config-prettier"; -import globals from "globals"; -import tslint from "typescript-eslint"; - -export default tslint.config( - eslint.configs.recommended, - ...tslint.configs.recommended, - { - languageOptions: { - globals: { - ...globals.node, - }, - }, - }, - { ignores: ["node_modules/", "dist/"] }, - eslintConfigPrettier -); diff --git a/gui/lint-staged.config.js b/gui/lint-staged.config.js deleted file mode 100644 index b5ee270b..00000000 --- a/gui/lint-staged.config.js +++ /dev/null @@ -1,3 +0,0 @@ -export default { - "*.{js,jsx,ts,tsx,vue}": "eslint --fix", -}; diff --git a/package.json b/package.json index 540241d6..4af82a1a 100644 --- a/package.json +++ b/package.json @@ -25,12 +25,14 @@ "@commitlint/config-conventional": "^19.2.2", "@eslint/js": "^9.11.1", "@total-typescript/tsconfig": "^1.0.4", + "@types/eslint-config-prettier": "^6.11.3", "@types/eslint__js": "^8.42.3", "@types/node": "^20.16.3", "@typescript-eslint/parser": "~8.8.0", "esbuild": "^0.23.1", "eslint": "~9.11.1", "eslint-config-prettier": "^9.1.0", + "eslint-plugin-vue": "^9.28.0", "globals": "^15.9.0", "husky": "^9.1.5", "npm-run-all2": "^6.2.0", diff --git a/webui/lint-staged.config.js b/webui/lint-staged.config.js deleted file mode 100644 index b5ee270b..00000000 --- a/webui/lint-staged.config.js +++ /dev/null @@ -1,3 +0,0 @@ -export default { - "*.{js,jsx,ts,tsx,vue}": "eslint --fix", -}; diff --git a/webui/package.json b/webui/package.json index 5bcc522c..2fc94ac5 100644 --- a/webui/package.json +++ b/webui/package.json @@ -74,7 +74,6 @@ "@vitejs/plugin-vue": "^5.1.3", "autoprefixer": "^10.4.20", "cross-env": "^7.0.3", - "eslint-plugin-vue": "^9.28.0", "genversion": "^3.2.0", "nodemon": "^3.1.4", "postcss-import": "^16.1.0",