From 543525b09982b9910b904978de87ac255da36b42 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 23 Mar 2026 20:24:30 -0300 Subject: [PATCH] Adicionado prettier, use npm prettier . --write para formatar todas as mudancas criadas --- .prettierignore | 3 + .prettierrc | 1 + eslint.config.js | 22 ++++---- index.html | 24 ++++---- package-lock.json | 17 ++++++ package.json | 1 + postcss.config.js | 2 +- src/App.jsx | 133 +++++++++++++++++++++++---------------------- src/main.jsx | 12 ++-- src/stylesheet.css | 2 +- tailwind.config.js | 8 +-- vite.config.js | 13 ++--- 12 files changed, 127 insertions(+), 111 deletions(-) create mode 100644 .prettierignore create mode 100644 .prettierrc diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..1b8ac88 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +# Ignore artifacts: +build +coverage diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/.prettierrc @@ -0,0 +1 @@ +{} diff --git a/eslint.config.js b/eslint.config.js index 4fa125d..6196e83 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,13 +1,13 @@ -import js from '@eslint/js' -import globals from 'globals' -import reactHooks from 'eslint-plugin-react-hooks' -import reactRefresh from 'eslint-plugin-react-refresh' -import { defineConfig, globalIgnores } from 'eslint/config' +import js from "@eslint/js"; +import globals from "globals"; +import reactHooks from "eslint-plugin-react-hooks"; +import reactRefresh from "eslint-plugin-react-refresh"; +import { defineConfig, globalIgnores } from "eslint/config"; export default defineConfig([ - globalIgnores(['dist']), + globalIgnores(["dist"]), { - files: ['**/*.{js,jsx}'], + files: ["**/*.{js,jsx}"], extends: [ js.configs.recommended, reactHooks.configs.flat.recommended, @@ -17,13 +17,13 @@ export default defineConfig([ ecmaVersion: 2020, globals: globals.browser, parserOptions: { - ecmaVersion: 'latest', + ecmaVersion: "latest", ecmaFeatures: { jsx: true }, - sourceType: 'module', + sourceType: "module", }, }, rules: { - 'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }], + "no-unused-vars": ["error", { varsIgnorePattern: "^[A-Z_]" }], }, }, -]) +]); diff --git a/index.html b/index.html index cd8f794..079132a 100644 --- a/index.html +++ b/index.html @@ -1,16 +1,14 @@ + + + + + Graphics Analitics + - - - - - Graphics Analitics - - - -
- - - - \ No newline at end of file + +
+ + + diff --git a/package-lock.json b/package-lock.json index 561bb02..2781cb6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,7 @@ "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-refresh": "^0.5.2", "globals": "^17.4.0", + "prettier": "3.8.1", "tailwindcss": "^3.4.1", "vite": "^8.0.1", "vite-plugin-eslint": "^1.8.1" @@ -3101,6 +3102,22 @@ "node": ">= 0.8.0" } }, + "node_modules/prettier": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.1.tgz", + "integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", diff --git a/package.json b/package.json index b9b65cc..1042e60 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-refresh": "^0.5.2", "globals": "^17.4.0", + "prettier": "3.8.1", "tailwindcss": "^3.4.1", "vite": "^8.0.1", "vite-plugin-eslint": "^1.8.1" diff --git a/postcss.config.js b/postcss.config.js index 2e7af2b..2aa7205 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -3,4 +3,4 @@ export default { tailwindcss: {}, autoprefixer: {}, }, -} +}; diff --git a/src/App.jsx b/src/App.jsx index 1e1f747..4f09b01 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,74 +1,77 @@ - function App() { - return ( <>
-
-
-
- Watch.ME -
- -
-
-
-
-
- - -

- Be on - - Time - -

-

- Dimension of reality that makes change possible and understandable. An indefinite and homogeneous environment in which natural events and human existence take place. -

- -
- -
+
+ +
+
+
+
+ +

+ Be on + Time +

+

+ Dimension of reality that makes change possible and + understandable. An indefinite and homogeneous environment in + which natural events and human existence take place. +

+ +
+ +
+
- ) + ); } -export default App +export default App; diff --git a/src/main.jsx b/src/main.jsx index abaa74a..17b4028 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -1,10 +1,10 @@ -import { StrictMode } from 'react' -import { createRoot } from 'react-dom/client' -import App from './App' -import './stylesheet.css' +import { StrictMode } from "react"; +import { createRoot } from "react-dom/client"; +import App from "./App"; +import "./stylesheet.css"; -createRoot(document.getElementById('root')).render( +createRoot(document.getElementById("root")).render( , -) +); diff --git a/src/stylesheet.css b/src/stylesheet.css index bd6213e..b5c61c9 100644 --- a/src/stylesheet.css +++ b/src/stylesheet.css @@ -1,3 +1,3 @@ @tailwind base; @tailwind components; -@tailwind utilities; \ No newline at end of file +@tailwind utilities; diff --git a/tailwind.config.js b/tailwind.config.js index fcf8755..c1a1726 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,12 +1,8 @@ /** @type {import('tailwindcss').Config} */ export default { - content: [ - "index.html", - "./src/**/*.{js,ts,jsx,tsx}" - ], + content: ["index.html", "./src/**/*.{js,ts,jsx,tsx}"], theme: { extend: {}, }, plugins: [], -} - +}; diff --git a/vite.config.js b/vite.config.js index b767728..b43d2b1 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,11 +1,8 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' -import eslint from 'vite-plugin-eslint' +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; +import eslint from "vite-plugin-eslint"; // https://vite.dev/config/ export default defineConfig({ - plugins: [ - react(), - eslint() - ], -}) + plugins: [react(), eslint()], +});