✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
update lint rules
AykutSaracda0186839d05
diff --git a/.eslintrc.json b/.eslintrc.jsonindex 2a0ddc71..53b55f7f 100644--- a/.eslintrc.json+++ b/.eslintrc.json@@ -25,6 +25,6 @@}]},- "extends": ["next/core-web-vitals"],+ "extends": ["next/core-web-vitals", "prettier"],"plugins": ["prettier", "unused-imports"]}diff --git a/package.json b/package.jsonindex 159c4605..50c8bd6f 100644--- a/package.json+++ b/package.json@@ -7,11 +7,10 @@"scripts": {"dev": "next dev","build": "next build",- "analyze": "ANALYZE=true npm run build","start": "next start","lint": "tsc && eslint src && prettier --check src","lint:fix": "eslint --fix src & prettier --write src",- "deploy": "gh-pages -d out -t true"+ "analyze": "ANALYZE=true npm run build"},"dependencies": {"@emotion/react": "^11.11.1",@@ -69,6 +68,7 @@"@types/styled-components": "^5.1.26","eslint": "8.45.0","eslint-config-next": "13.4.10",+ "eslint-config-prettier": "^8.8.0","eslint-plugin-prettier": "^5.0.0","eslint-plugin-unused-imports": "^3.0.0","prettier": "^3.0.0",diff --git a/src/components/AdTest/index.tsx b/src/components/AdTest/index.tsxindex 3dd99074..3850a882 100644--- a/src/components/AdTest/index.tsx+++ b/src/components/AdTest/index.tsx@@ -45,13 +45,17 @@ const AdWrapper = styled.div`background: #fff;box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, 0.15);opacity: 0;- transition: transform 0.2s ease-in-out, opacity 0.1s ease-in-out;+ transition:+ transform 0.2s ease-in-out,+ opacity 0.1s ease-in-out;transform: scale(1) translateY(-50px);}& #native-button:checked + .native-overlay {opacity: 1;- transition: transform 0.2s ease-in-out, opacity 0.4s ease-in-out;+ transition:+ transform 0.2s ease-in-out,+ opacity 0.4s ease-in-out;transform: scale(1) translateY(0);}diff --git a/src/components/Graph/PremiumView.tsx b/src/components/Graph/PremiumView.tsxindex 6088c325..2fea2a07 100644--- a/src/components/Graph/PremiumView.tsx+++ b/src/components/Graph/PremiumView.tsx@@ -64,20 +64,32 @@ const StyledPremiumView = styled.div`.glowing span:nth-child(3n + 1)::before {background: rgba(134, 255, 0, 1);- box-shadow: 0 0 20px rgba(134, 255, 0, 1), 0 0 40px rgba(134, 255, 0, 1),- 0 0 60px rgba(134, 255, 0, 1), 0 0 80px rgba(134, 255, 0, 1), 0 0 0 8px rgba(134, 255, 0, 0.1);+ box-shadow:+ 0 0 20px rgba(134, 255, 0, 1),+ 0 0 40px rgba(134, 255, 0, 1),+ 0 0 60px rgba(134, 255, 0, 1),+ 0 0 80px rgba(134, 255, 0, 1),+ 0 0 0 8px rgba(134, 255, 0, 0.1);}.glowing span:nth-child(3n + 2)::before {background: rgba(255, 214, 0, 1);- box-shadow: 0 0 20px rgba(255, 214, 0, 1), 0 0 40px rgba(255, 214, 0, 1),- 0 0 60px rgba(255, 214, 0, 1), 0 0 80px rgba(255, 214, 0, 1), 0 0 0 8px rgba(255, 214, 0, 0.1);+ box-shadow:+ 0 0 20px rgba(255, 214, 0, 1),+ 0 0 40px rgba(255, 214, 0, 1),+ 0 0 60px rgba(255, 214, 0, 1),+ 0 0 80px rgba(255, 214, 0, 1),+ 0 0 0 8px rgba(255, 214, 0, 0.1);}.glowing span:nth-child(3n + 3)::before {background: rgba(0, 226, 255, 1);- box-shadow: 0 0 20px rgba(0, 226, 255, 1), 0 0 40px rgba(0, 226, 255, 1),- 0 0 60px rgba(0, 226, 255, 1), 0 0 80px rgba(0, 226, 255, 1), 0 0 0 8px rgba(0, 226, 255, 0.1);+ box-shadow:+ 0 0 20px rgba(0, 226, 255, 1),+ 0 0 40px rgba(0, 226, 255, 1),+ 0 0 60px rgba(0, 226, 255, 1),+ 0 0 80px rgba(0, 226, 255, 1),+ 0 0 0 8px rgba(0, 226, 255, 0.1);}.glowing span:nth-child(3n + 1) {diff --git a/src/components/Graph/index.tsx b/src/components/Graph/index.tsxindex 089dd1c5..c0f5de09 100644--- a/src/components/Graph/index.tsx+++ b/src/components/Graph/index.tsx@@ -35,8 +35,16 @@ const StyledEditorWrapper = styled.div<{ widget: boolean }>`linear-gradient(90deg, var(--line-color-1) 1.5px, transparent 1.5px),linear-gradient(var(--line-color-2) 1px, transparent 1px),linear-gradient(90deg, var(--line-color-2) 1px, transparent 1px);- background-position: -1.5px -1.5px, -1.5px -1.5px, -1px -1px, -1px -1px;- background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;+ background-position:+ -1.5px -1.5px,+ -1.5px -1.5px,+ -1px -1px,+ -1px -1px;+ background-size:+ 100px 100px,+ 100px 100px,+ 20px 20px,+ 20px 20px;:active {cursor: move;diff --git a/src/pages/index.tsx b/src/pages/index.tsxindex acf0b5d2..fb8ef971 100644--- a/src/pages/index.tsx+++ b/src/pages/index.tsx@@ -35,8 +35,16 @@ const StyledHeroSection = styled.div`linear-gradient(90deg, var(--line-color-1) 1.5px, transparent 1.5px),linear-gradient(var(--line-color-2) 1px, transparent 1px),linear-gradient(90deg, var(--line-color-2) 1px, transparent 1px);- background-position: -1.5px -1.5px, -1.5px -1.5px, -1px -1px, -1px -1px;- background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;+ background-position:+ -1.5px -1.5px,+ -1.5px -1.5px,+ -1px -1px,+ -1px -1px;+ background-size:+ 100px 100px,+ 100px 100px,+ 20px 20px,+ 20px 20px;@media only screen and (max-width: 1240px) {flex-direction: column;diff --git a/yarn.lock b/yarn.lockindex b6e1afcc..64895d1a 100644--- a/yarn.lock+++ b/yarn.lock@@ -2038,6 +2038,11 @@ [email protected]:eslint-plugin-react "^7.31.7"eslint-plugin-react-hooks "5.0.0-canary-7118f5dd7-20230705"+eslint-config-prettier@^8.8.0:+ version "8.8.0"+ resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz#bfda738d412adc917fd7b038857110efe98c9348"+ integrity sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==+eslint-import-resolver-node@^0.3.6, eslint-import-resolver-node@^0.3.7:version "0.3.7"resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz#83b375187d412324a1963d84fa664377a23eb4d7"