Free, simple, and intuitive online database diagram editor and SQL generator.
JavaScript databasedatabase-designdatabase-diagramdatabase-schemadbmldiagram-editoreditorer-diagramerderdiagramindexeddbmariadbmcporacle-databaseoracle-dbpostgresqlschema-designsqlsql-serversqlite
Add prettier
1ilit2c525a2ffd69
diff --git a/.eslintrc.cjs b/.eslintrc.cjsindex 799586a8..49a28bef 100644--- a/.eslintrc.cjs+++ b/.eslintrc.cjs@@ -6,6 +6,7 @@ module.exports = {"plugin:react/recommended","plugin:react/jsx-runtime","plugin:react-hooks/recommended",+ "prettier"],ignorePatterns: ["dist", ".eslintrc.cjs"],parserOptions: { ecmaVersion: "latest", sourceType: "module" },diff --git a/.prettierrc.json b/.prettierrc.jsonnew file mode 100644index 00000000..9ffe8f46--- /dev/null+++ b/.prettierrc.json@@ -0,0 +1,7 @@+{+ "singleQuote": false,+ "arrowParens": "always",+ "trailingComma": "all",+ "tabWidth": 2,+ "semi": true+}diff --git a/package-lock.json b/package-lock.jsonindex 4a9a0819..2050303d 100644--- a/package-lock.json+++ b/package-lock.json@@ -34,10 +34,12 @@"@vitejs/plugin-react": "^4.2.1","autoprefixer": "^10.4.16","eslint": "^8.55.0",+ "eslint-config-prettier": "^9.1.0","eslint-plugin-react": "^7.33.2","eslint-plugin-react-hooks": "^4.6.0","eslint-plugin-react-refresh": "^0.4.5","postcss": "^8.4.32",+ "prettier": "3.2.5","tailwindcss": "^3.3.6","vite": "^5.0.11"}@@ -2671,6 +2673,18 @@"url": "https://opencollective.com/eslint"}},+ "node_modules/eslint-config-prettier": {+ "version": "9.1.0",+ "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz",+ "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==",+ "dev": true,+ "bin": {+ "eslint-config-prettier": "bin/cli.js"+ },+ "peerDependencies": {+ "eslint": ">=7.0.0"+ }+ },"node_modules/eslint-plugin-react": {"version": "7.33.2","resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz",@@ -4584,6 +4598,21 @@"node": ">= 0.8.0"}},+ "node_modules/prettier": {+ "version": "3.2.5",+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz",+ "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==",+ "dev": true,+ "bin": {+ "prettier": "bin/prettier.cjs"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/prettier/prettier?sponsor=1"+ }+ },"node_modules/prismjs": {"version": "1.29.0","resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz",diff --git a/package.json b/package.jsonindex a05fb4e1..a84d269a 100644--- a/package.json+++ b/package.json@@ -36,10 +36,12 @@"@vitejs/plugin-react": "^4.2.1","autoprefixer": "^10.4.16","eslint": "^8.55.0",+ "eslint-config-prettier": "^9.1.0","eslint-plugin-react": "^7.33.2","eslint-plugin-react-hooks": "^4.6.0","eslint-plugin-react-refresh": "^0.4.5","postcss": "^8.4.32",+ "prettier": "3.2.5","tailwindcss": "^3.3.6","vite": "^5.0.11"},