Skip to content

Commit

Permalink
chore(repo): move eslint config to root
Browse files Browse the repository at this point in the history
  • Loading branch information
bambanah committed Oct 4, 2024
1 parent dc689d2 commit 6b1d252
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 113 deletions.
19 changes: 0 additions & 19 deletions cli/eslint.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions cli/lint-staged.config.js

This file was deleted.

23 changes: 0 additions & 23 deletions deemix/eslint.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions deemix/lint-staged.config.js

This file was deleted.

23 changes: 0 additions & 23 deletions deezer-sdk/eslint.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions deezer-sdk/lint-staged.config.js

This file was deleted.

28 changes: 15 additions & 13 deletions webui/eslint.config.js → eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-check
import eslint from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import pluginVue from "eslint-plugin-vue";
Expand All @@ -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,
Expand All @@ -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",
Expand All @@ -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
);
19 changes: 0 additions & 19 deletions gui/eslint.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions gui/lint-staged.config.js

This file was deleted.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 0 additions & 3 deletions webui/lint-staged.config.js

This file was deleted.

1 change: 0 additions & 1 deletion webui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6b1d252

Please sign in to comment.