remove console print
This commit is contained in:
@@ -28,7 +28,7 @@ lint: node_modules ## lint code
|
|||||||
@$(BUN) run lint
|
@$(BUN) run lint
|
||||||
@$(BUN) run type-check
|
@$(BUN) run type-check
|
||||||
|
|
||||||
fix: node_modules ## fix and reformat code
|
format: node_modules ## fix and reformat code
|
||||||
@$(BUN) run format
|
@$(BUN) run format
|
||||||
@$(BUN) run lint-fix
|
@$(BUN) run lint-fix
|
||||||
|
|
||||||
|
|||||||
+17
-11
@@ -1,7 +1,7 @@
|
|||||||
import { globalIgnores } from "eslint/config";
|
import { globalIgnores } from "eslint/config";
|
||||||
import {
|
import {
|
||||||
defineConfigWithVueTs,
|
defineConfigWithVueTs,
|
||||||
vueTsConfigs,
|
vueTsConfigs,
|
||||||
} from "@vue/eslint-config-typescript";
|
} from "@vue/eslint-config-typescript";
|
||||||
import pluginVue from "eslint-plugin-vue";
|
import pluginVue from "eslint-plugin-vue";
|
||||||
import skipFormatting from "@vue/eslint-config-prettier/skip-formatting";
|
import skipFormatting from "@vue/eslint-config-prettier/skip-formatting";
|
||||||
@@ -10,15 +10,21 @@ import { configureVueProject } from "@vue/eslint-config-typescript";
|
|||||||
configureVueProject({ scriptLangs: ["ts", "tsx"] });
|
configureVueProject({ scriptLangs: ["ts", "tsx"] });
|
||||||
|
|
||||||
export default defineConfigWithVueTs(
|
export default defineConfigWithVueTs(
|
||||||
{
|
{
|
||||||
name: "app/files-to-lint",
|
name: "app/files-to-lint",
|
||||||
files: ["**/*.{ts,mts,tsx,vue}"],
|
files: ["**/*.{ts,mts,tsx,vue}"],
|
||||||
},
|
},
|
||||||
|
|
||||||
globalIgnores(["**/dist/**"]),
|
globalIgnores(["**/dist/**"]),
|
||||||
|
|
||||||
pluginVue.configs["flat/recommended"],
|
pluginVue.configs["flat/recommended"],
|
||||||
vueTsConfigs.strictTypeChecked,
|
vueTsConfigs.strictTypeChecked,
|
||||||
vueTsConfigs.stylisticTypeChecked,
|
vueTsConfigs.stylisticTypeChecked,
|
||||||
skipFormatting,
|
skipFormatting,
|
||||||
|
|
||||||
|
{
|
||||||
|
rules: {
|
||||||
|
"no-console": "error",
|
||||||
|
},
|
||||||
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, onMounted } from "vue";
|
import { computed } from "vue";
|
||||||
import * as icons from "lucide-vue-next";
|
import * as icons from "lucide-vue-next";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
@@ -25,10 +25,6 @@ function kebab2camel(kebab: string): string {
|
|||||||
.join("");
|
.join("");
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
console.log(kebab2camel(props.name));
|
|
||||||
});
|
|
||||||
|
|
||||||
// @ts-expect-error: cannot infer type of all exported data
|
// @ts-expect-error: cannot infer type of all exported data
|
||||||
const icon = computed(() => icons[kebab2camel(props.name)]);
|
const icon = computed(() => icons[kebab2camel(props.name)]);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user