Skip to content

Commit

Permalink
chore: config
Browse files Browse the repository at this point in the history
  • Loading branch information
wildduck2 committed Aug 14, 2024
1 parent 073f1b7 commit 7684098
Show file tree
Hide file tree
Showing 9 changed files with 4,788 additions and 69 deletions.
2 changes: 1 addition & 1 deletion .esli → .eslintrc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
env: {
browser: true,
es2021: true,
Expand Down
31 changes: 31 additions & 0 deletions docs/www/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"root": true,
"extends": [
"next/core-web-vitals",
"turbo",
"prettier",
"plugin:tailwindcss/recommended"
],
"plugins": ["tailwindcss"],
"rules": {
"@next/next/no-html-link-for-pages": "off",
"tailwindcss/no-custom-classname": "off",
"tailwindcss/classnames-order": "error"
},
"settings": {
"tailwindcss": {
"callees": ["cn", "cva"],
"config": "tailwind.config.cjs"
},
"next": {
"rootDir": ["apps/*/"]
}
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser"
}
]
}
51 changes: 51 additions & 0 deletions docs/www/.eslintrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
export default {
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'react-app',
'standard-with-typescript',
'plugin:import/typescript',
'plugin:prettier/recommended',
],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs,ts,cts}'],
parserOptions: {
sourceType: 'script',
},
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
},
plugins: ['@typescript-eslint', 'react', 'prettier', 'spellcheck'],
rules: {
'@typescript-eslint/no-empty-object-type': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
'no-var': 'error',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'react-refresh/only-export-components': 'warn',
'react/jsx-uses-react': 'off',
'react/jsx-filename-extension': ['warn'],
'spellcheck/spell-checker': ['warn'],
'react/react-in-jsx-scope': 'off',
},
settings: {
react: {
version: 'detect',
},
},
}
5 changes: 1 addition & 4 deletions esl → docs/www/esling.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ export default tseslint.config({
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
},
})
26 changes: 26 additions & 0 deletions docs/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@
"format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache"
},
"dependencies": {
"@babel/core": "^7.22.1",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.1",
"@commitlint/cli": "^17.6.3",
"@commitlint/config-conventional": "^17.6.3",
"@eslint/js": "^9.9.0",
"@faker-js/faker": "^8.4.1",
"@hookform/resolvers": "^3.9.0",
"@ianvs/prettier-plugin-sort-imports": "^3.7.2",
"@manypkg/cli": "^0.20.0",
"@radix-ui/react-accessible-icon": "^1.1.0",
"@radix-ui/react-accordion": "^1.2.0",
"@radix-ui/react-alert-dialog": "^1.1.1",
Expand Down Expand Up @@ -51,16 +59,27 @@
"@radix-ui/react-toggle-group": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@tanstack/react-table": "^8.20.1",
"@typescript-eslint/parser": "^5.59.7",
"@typescript-eslint/typescript-estree": "^8.1.0",
"@vercel/analytics": "^1.3.1",
"@vercel/og": "^0.0.21",
"autoprefixer": "^10.4.14",
"class-variance-authority": "^0.7.0",
"clsx": "^1.2.1",
"cmdk": "^1.0.0",
"concurrently": "^8.0.1",
"contentlayer2": "^0.4.6",
"cross-env": "^7.0.3",
"date-fns": "^2.30.0",
"embla-carousel-autoplay": "8.0.0-rc15",
"embla-carousel-react": "8.0.0-rc15",
"eslint": "^8.41.0",
"eslint-config-next": "13.3.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-turbo": "^1.9.9",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-tailwindcss": "3.13.1",
"framer-motion": "^11.3.24",
"geist": "^1.3.1",
"input-otp": "^1.2.4",
Expand All @@ -72,7 +91,9 @@
"next": "14.3.0-canary.43",
"next-contentlayer2": "^0.4.6",
"next-themes": "^0.2.1",
"postcss": "^8.4.24",
"prettier": "^3.3.3",
"pretty-quick": "^3.1.3",
"react": "^18.3.1",
"react-day-picker": "^8.10.1",
"react-dom": "^18.3.1",
Expand All @@ -85,8 +106,13 @@
"swr": "2.2.6-beta.3",
"tailwind-merge": "^1.14.0",
"tailwindcss": "^3.4.10",
"tailwindcss-animate": "^1.0.7",
"ts-morph": "^22.0.0",
"tsx": "^4.1.4",
"turbo": "^1.9.9",
"vaul": "0.9.0",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^0.31.1",
"zod": "^3.23.8"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 7684098

Please sign in to comment.