diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 913cdba..0000000 --- a/.eslintrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": ["next", "next/core-web-vitals", "prettier"] -} diff --git a/.prettierrc.js b/.prettierrc.js deleted file mode 100644 index 77ab421..0000000 --- a/.prettierrc.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = { - printWidth: 120, - arrowParens: "avoid", - singleQuote: true, - semi: false, - plugins: [ - require('prettier-plugin-tailwindcss') - ] -} diff --git a/package.json b/package.json index d566c44..16e5e4b 100644 --- a/package.json +++ b/package.json @@ -74,5 +74,21 @@ "prettier-plugin-tailwindcss": "^0.2.2", "tailwindcss": "^3.2.4", "typescript": "4.9.4" + }, + "prettier": { + "printWidth": 120, + "arrowParens": "avoid", + "singleQuote": true, + "semi": false, + "plugins": [ + "prettier-plugin-tailwindcss" + ] + }, + "eslintConfig": { + "extends": [ + "next", + "next/core-web-vitals", + "prettier" + ] } } diff --git a/src/components/FolderGridLayout.tsx b/src/components/FolderGridLayout.tsx index 784e8d1..98d7647 100644 --- a/src/components/FolderGridLayout.tsx +++ b/src/components/FolderGridLayout.tsx @@ -77,7 +77,7 @@ const FolderGridLayout = ({ const getItemPath = (name: string) => `${path === '/' ? '' : path}/${encodeURIComponent(name)}` return ( -
+
{t('{{count}} item(s)', { count: folderChildren.length })}
diff --git a/src/components/FolderListLayout.tsx b/src/components/FolderListLayout.tsx index b13b178..980b980 100644 --- a/src/components/FolderListLayout.tsx +++ b/src/components/FolderListLayout.tsx @@ -54,7 +54,7 @@ const FolderListLayout = ({ const getItemPath = (name: string) => `${path === '/' ? '' : path}/${encodeURIComponent(name)}` return ( -
+
{t('Name')} diff --git a/src/components/previews/Containers.tsx b/src/components/previews/Containers.tsx index 76b980e..757cb16 100644 --- a/src/components/previews/Containers.tsx +++ b/src/components/previews/Containers.tsx @@ -1,10 +1,10 @@ export function PreviewContainer({ children }): JSX.Element { - return
{children}
+ return
{children}
} export function DownloadBtnContainer({ children }): JSX.Element { return ( -
+
{children}
) diff --git a/tailwind.config.js b/tailwind.config.js index 82525b0..43d782d 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -3,8 +3,7 @@ const colors = require('tailwindcss/colors') const siteConfig = require('./config/site.config') module.exports = { - mode: 'jit', - content: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'], + content: ['./src/**/*.{js,ts,jsx,tsx}'], theme: { colors: { transparent: 'transparent',