diff --git a/babel.config.js b/babel.config.js
index 42555d7..895a71c 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -1,7 +1,7 @@
module.exports = {
presets: [
[
- "@babel/preset-env",
+ '@babel/preset-env',
{
modules: false,
},
@@ -10,8 +10,8 @@ module.exports = {
env: {
test: {
presets: [
- ["@babel/preset-env", { targets: { node: "current" } }],
- "@babel/preset-typescript",
+ ['@babel/preset-env', { targets: { node: 'current' } }],
+ '@babel/preset-typescript',
],
},
},
diff --git a/eslint.config.js b/eslint.config.js
index 1dcc1ba..e87bbd9 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -1,34 +1,44 @@
-import pluginVue from "eslint-plugin-vue";
-import vueTsConfig from "@vue/eslint-config-typescript";
-import vuePrettierConfig from "@vue/eslint-config-prettier";
+import pluginVue from 'eslint-plugin-vue';
+import vueTsConfig from '@vue/eslint-config-typescript';
+import vuePrettierConfig from '@vue/eslint-config-prettier';
export default [
{
ignores: [
- "node_modules/**",
- "dist/**",
- "coverage/**",
- "public/**",
- "p2pix-smart-contracts/**",
- "vendor/**",
- "src/generated.ts",
+ 'node_modules/**',
+ 'dist/**',
+ 'coverage/**',
+ 'public/**',
+ 'p2pix-smart-contracts/**',
+ 'vendor/**',
+ 'src/generated.ts',
],
},
- ...pluginVue.configs["flat/essential"],
+ ...pluginVue.configs['flat/essential'],
...vueTsConfig(),
+
+ // 1. Mantemos a config base do Prettier
vuePrettierConfig,
+
{
rules: {
- "@typescript-eslint/no-unused-vars": [
- "warn",
+ // 2. Forçamos o ESLint a exigir aspas simples
+ quotes: ['error', 'single', { avoidEscape: true }],
+
+ // 3. IMPORTANTÍSSIMO: Forçamos o PRETTIER a também usar aspas simples
+ // Isso evita que um atropele o outro
+ 'prettier/prettier': ['error', { singleQuote: true }],
+
+ '@typescript-eslint/no-unused-vars': [
+ 'warn',
{
- argsIgnorePattern: "^_",
- varsIgnorePattern: "^_",
- caughtErrorsIgnorePattern: "^_",
- destructuredArrayIgnorePattern: "^_",
+ argsIgnorePattern: '^_',
+ varsIgnorePattern: '^_',
+ caughtErrorsIgnorePattern: '^_',
+ destructuredArrayIgnorePattern: '^_',
},
],
- "@typescript-eslint/no-explicit-any": "warn",
+ '@typescript-eslint/no-explicit-any': 'warn',
},
},
];
diff --git a/src/App.vue b/src/App.vue
index eae0de3..b9d0f30 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,13 +1,13 @@
diff --git a/src/components/Explorer/TransactionTable.vue b/src/components/Explorer/TransactionTable.vue
index 9594b2f..8fa4b89 100644
--- a/src/components/Explorer/TransactionTable.vue
+++ b/src/components/Explorer/TransactionTable.vue
@@ -1,9 +1,9 @@
diff --git a/src/components/ListingComponent/BalanceCard.vue b/src/components/ListingComponent/BalanceCard.vue
index a421d49..2dace58 100644
--- a/src/components/ListingComponent/BalanceCard.vue
+++ b/src/components/ListingComponent/BalanceCard.vue
@@ -1,11 +1,11 @@
diff --git a/src/components/SellerSteps/SellerComponent.vue b/src/components/SellerSteps/SellerComponent.vue
index e7edb18..d27c11c 100644
--- a/src/components/SellerSteps/SellerComponent.vue
+++ b/src/components/SellerSteps/SellerComponent.vue
@@ -1,16 +1,16 @@
diff --git a/src/components/ui/CustomAlert.vue b/src/components/ui/CustomAlert.vue
index 0d70d52..daba192 100644
--- a/src/components/ui/CustomAlert.vue
+++ b/src/components/ui/CustomAlert.vue
@@ -1,36 +1,36 @@
diff --git a/src/components/ui/CustomButton.vue b/src/components/ui/CustomButton.vue
index f2ab698..2fa8939 100644
--- a/src/components/ui/CustomButton.vue
+++ b/src/components/ui/CustomButton.vue
@@ -1,6 +1,6 @@
diff --git a/src/components/ui/CustomModal.vue b/src/components/ui/CustomModal.vue
index bc99912..cbaa962 100644
--- a/src/components/ui/CustomModal.vue
+++ b/src/components/ui/CustomModal.vue
@@ -1,18 +1,18 @@
diff --git a/src/components/ui/Dropdown.vue b/src/components/ui/Dropdown.vue
index 9696d89..21481d2 100644
--- a/src/components/ui/Dropdown.vue
+++ b/src/components/ui/Dropdown.vue
@@ -1,9 +1,9 @@
diff --git a/src/components/ui/ErrorMessage.vue b/src/components/ui/ErrorMessage.vue
index ae8837b..d8fa08b 100644
--- a/src/components/ui/ErrorMessage.vue
+++ b/src/components/ui/ErrorMessage.vue
@@ -1,5 +1,5 @@
diff --git a/src/components/ui/FormCard.vue b/src/components/ui/FormCard.vue
index 5e10846..dc23f1c 100644
--- a/src/components/ui/FormCard.vue
+++ b/src/components/ui/FormCard.vue
@@ -1,5 +1,5 @@
diff --git a/src/components/ui/InfoTooltip.vue b/src/components/ui/InfoTooltip.vue
index c85415f..c8ecb1f 100644
--- a/src/components/ui/InfoTooltip.vue
+++ b/src/components/ui/InfoTooltip.vue
@@ -1,17 +1,17 @@
diff --git a/src/components/ui/NetworkBadges.vue b/src/components/ui/NetworkBadges.vue
index de947b8..6f8a26c 100644
--- a/src/components/ui/NetworkBadges.vue
+++ b/src/components/ui/NetworkBadges.vue
@@ -1,16 +1,16 @@
diff --git a/src/components/ui/PageHeader.vue b/src/components/ui/PageHeader.vue
index 0c20262..eeaad87 100644
--- a/src/components/ui/PageHeader.vue
+++ b/src/components/ui/PageHeader.vue
@@ -1,5 +1,5 @@
diff --git a/src/components/ui/StatusBadge.vue b/src/components/ui/StatusBadge.vue
index 360d922..a32a834 100644
--- a/src/components/ui/StatusBadge.vue
+++ b/src/components/ui/StatusBadge.vue
@@ -1,7 +1,7 @@
diff --git a/src/components/ui/VersionFooter.vue b/src/components/ui/VersionFooter.vue
index 3c1c798..62e19d3 100644
--- a/src/components/ui/VersionFooter.vue
+++ b/src/components/ui/VersionFooter.vue
@@ -1,5 +1,6 @@
diff --git a/src/components/ui/WalletConnectButton.vue b/src/components/ui/WalletConnectButton.vue
index 8ad7ca2..8edd60b 100644
--- a/src/components/ui/WalletConnectButton.vue
+++ b/src/components/ui/WalletConnectButton.vue
@@ -1,16 +1,16 @@
diff --git a/src/views/ManageBidsView.vue b/src/views/ManageBidsView.vue
index a1ea80d..6ace37c 100644
--- a/src/views/ManageBidsView.vue
+++ b/src/views/ManageBidsView.vue
@@ -1,19 +1,19 @@
diff --git a/tailwind.config.js b/tailwind.config.js
index ea0cd4b..9319184 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -1,6 +1,6 @@
/** @type {import('tailwindcss').Config} */
export default {
- content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}", "./src/**/*.vue"],
+ content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}', './src/**/*.vue'],
theme: {
extend: {},
},
diff --git a/vite.config.ts b/vite.config.ts
index 758d3e0..b80ce8f 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,46 +1,46 @@
-import { fileURLToPath, URL } from "node:url";
-import { execSync } from "node:child_process";
+import { fileURLToPath, URL } from 'node:url';
+import { execSync } from 'node:child_process';
-import { defineConfig } from "vite";
-import vue from "@vitejs/plugin-vue";
-import vueJsx from "@vitejs/plugin-vue-jsx";
-import tailwindcss from "@tailwindcss/vite";
-import svgLoader from "vite-svg-loader";
+import { defineConfig } from 'vite';
+import vue from '@vitejs/plugin-vue';
+import vueJsx from '@vitejs/plugin-vue-jsx';
+import tailwindcss from '@tailwindcss/vite';
+import svgLoader from 'vite-svg-loader';
function sh(cmd: string): string {
try {
- return execSync(cmd, { stdio: ["ignore", "pipe", "ignore"] })
+ return execSync(cmd, { stdio: ['ignore', 'pipe', 'ignore'] })
.toString()
.trim();
} catch {
- return "";
+ return '';
}
}
function getAppVersion(): string {
- const tag = sh("git tag --sort=-version:refname").split("\n")[0] || "";
- const shortSha = sh("git rev-parse --short HEAD");
- const tagSha = tag ? sh(`git rev-list -n 1 ${tag}`) : "";
- const headSha = sh("git rev-parse HEAD");
+ const tag = sh('git tag --sort=-version:refname').split('\n')[0] || '';
+ const shortSha = sh('git rev-parse --short HEAD');
+ const tagSha = tag ? sh(`git rev-list -n 1 ${tag}`) : '';
+ const headSha = sh('git rev-parse HEAD');
if (tag && tagSha === headSha) return tag;
if (tag && shortSha) return `${tag}+${shortSha}`;
- return shortSha || "dev";
+ return shortSha || 'dev';
}
// https://vitejs.dev/config/
export default defineConfig({
- base: "./",
+ base: './',
build: {
- target: "esnext",
+ target: 'esnext',
},
define: {
__APP_VERSION__: JSON.stringify(getAppVersion()),
},
optimizeDeps: {
esbuildOptions: {
- target: "esnext",
+ target: 'esnext',
define: {
- global: "globalThis",
+ global: 'globalThis',
},
supported: {
bigint: true,
@@ -50,9 +50,9 @@ export default defineConfig({
plugins: [vue(), vueJsx(), tailwindcss(), svgLoader()],
resolve: {
alias: {
- "@": fileURLToPath(new URL("./src", import.meta.url)),
- "viem/errors": fileURLToPath(
- new URL("./node_modules/viem/errors", import.meta.url),
+ '@': fileURLToPath(new URL('./src', import.meta.url)),
+ 'viem/errors': fileURLToPath(
+ new URL('./node_modules/viem/errors', import.meta.url),
),
},
},
diff --git a/wagmi.config.ts b/wagmi.config.ts
index d7544e8..bf1f610 100644
--- a/wagmi.config.ts
+++ b/wagmi.config.ts
@@ -1,12 +1,12 @@
-import { defineConfig } from "@wagmi/cli";
-import { hardhat } from "@wagmi/cli/plugins";
+import { defineConfig } from '@wagmi/cli';
+import { hardhat } from '@wagmi/cli/plugins';
export default defineConfig({
- out: "src/blockchain/abi.ts",
+ out: 'src/blockchain/abi.ts',
contracts: [],
plugins: [
hardhat({
- project: "p2pix-smart-contracts",
+ project: 'p2pix-smart-contracts',
}),
],
});