diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 000000000..8e57952c9 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,4 @@ +/** @type {import('eslint').Linter.Config} */ +module.exports = { + root: true, +} diff --git a/.lintstagedrc b/.lintstagedrc index eb2c06ea2..f0dd16979 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -1,3 +1,3 @@ { - "*.{ts,tsx}": ["prettier --write"] + "*.{ts,tsx}": ["prettier --write --ignore-unknown"] } diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 24fcd9df8..000000000 --- a/.prettierrc +++ /dev/null @@ -1,14 +0,0 @@ -{ - "arrowParens": "always", - "bracketSameLine": false, - "bracketSpacing": true, - "endOfLine": "lf", - "jsxSingleQuote": false, - "printWidth": 120, - "proseWrap": "preserve", - "quoteProps": "as-needed", - "semi": false, - "singleQuote": true, - "tabWidth": 2, - "trailingComma": "es5" -} diff --git a/configs/tsconfig/README.md b/configs/tsconfig/README.md deleted file mode 100644 index 0da79cf23..000000000 --- a/configs/tsconfig/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `tsconfig` - -These are base shared `tsconfig.json`s from which all other `tsconfig.json`'s inherit from. diff --git a/docs/v1/package.json b/docs/v1/package.json index 9090e29fb..4e1da0003 100644 --- a/docs/v1/package.json +++ b/docs/v1/package.json @@ -33,10 +33,10 @@ "react-dom": "^18.2.0" }, "devDependencies": { + "@next/eslint-plugin-next": "14.0.3", "@types/react": "^18.2.42", "@types/react-dom": "^18.2.15", "autoprefixer": "^10.4.16", - "eslint-config-next": "14.0.3", "postcss": "^8.4.32", "tailwindcss": "^3.3.5" } diff --git a/docs/v1/prettier.config.mjs b/docs/v1/prettier.config.mjs new file mode 100644 index 000000000..a41d81fe6 --- /dev/null +++ b/docs/v1/prettier.config.mjs @@ -0,0 +1,8 @@ +import rootConfig from '../../prettier.config.mjs' + +/** @type {import("prettier").Config} */ +export default { + ...rootConfig, + plugins: ['prettier-plugin-tailwindcss'], + tailwindConfig: './tailwind.config.js', +} diff --git a/docs/v1/src/components/HomePage.tsx b/docs/v1/src/components/HomePage.tsx index 341c8aeff..a64d8b3a4 100644 --- a/docs/v1/src/components/HomePage.tsx +++ b/docs/v1/src/components/HomePage.tsx @@ -17,23 +17,23 @@ export const HomePage = ({ }) => { return (
{description}
{desc}
{description}
{desc}
Body: {postQuery.data.body}
-Body: {postQuery.data.body}
-