Skip to content

Commit fb20ec4

Browse files
committed
ci: changeset
1 parent 083f72c commit fb20ec4

File tree

6 files changed

+46
-20
lines changed

6 files changed

+46
-20
lines changed

.changeset/true-peas-attack.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@lglab/react-qr-code': patch
3+
'reactqrcode.com': patch
4+
---
5+
6+
chore(deps)

apps/docs/eslint.config.mjs

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
import { FlatCompat } from '@eslint/eslintrc'
2-
import { dirname } from 'path'
3-
import { fileURLToPath } from 'url'
1+
import { defineConfig, globalIgnores } from 'eslint/config';
2+
import nextVitals from 'eslint-config-next/core-web-vitals';
3+
import nextTs from 'eslint-config-next/typescript';
44

5-
const __filename = fileURLToPath(import.meta.url)
6-
const __dirname = dirname(__filename)
7-
8-
const compat = new FlatCompat({
9-
baseDirectory: __dirname,
10-
})
11-
12-
const eslintConfig = [
13-
...compat.extends('next/core-web-vitals', 'next/typescript'),
5+
const eslintConfig = defineConfig([
6+
...nextVitals,
7+
...nextTs,
8+
// Override default ignores of eslint-config-next.
9+
globalIgnores([
10+
// Default ignores of eslint-config-next:
11+
'.next/**',
12+
'out/**',
13+
'build/**',
14+
'next-env.d.ts',
15+
]),
1416
{
1517
rules: {
1618
'@typescript-eslint/consistent-type-imports': 'error',
1719
'no-console': 'error',
1820
},
19-
ignores: ['.next/*'],
2021
},
21-
]
22+
]);
2223

23-
export default eslintConfig
24+
export default eslintConfig;

apps/docs/next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
import './.next/dev/types/routes.d.ts'
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"cmdk": "1.1.1",
4747
"date-fns": "^4.1.0",
4848
"embla-carousel-react": "^8.6.0",
49+
"eslint-config-next": "16.0.1",
4950
"input-otp": "^1.4.2",
5051
"lucide-react": "^0.553.0",
5152
"next": "16.0.1",

apps/docs/tsconfig.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "ES2017",
4-
"lib": ["dom", "dom.iterable", "esnext"],
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
59
"allowJs": true,
610
"skipLibCheck": true,
711
"strict": true,
@@ -11,17 +15,27 @@
1115
"moduleResolution": "bundler",
1216
"resolveJsonModule": true,
1317
"isolatedModules": true,
14-
"jsx": "preserve",
18+
"jsx": "react-jsx",
1519
"incremental": true,
1620
"plugins": [
1721
{
1822
"name": "next"
1923
}
2024
],
2125
"paths": {
22-
"@/*": ["./src/*"]
26+
"@/*": [
27+
"./src/*"
28+
]
2329
}
2430
},
25-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
26-
"exclude": ["node_modules"]
31+
"include": [
32+
"next-env.d.ts",
33+
"**/*.ts",
34+
"**/*.tsx",
35+
".next/types/**/*.ts",
36+
".next/dev/types/**/*.ts"
37+
],
38+
"exclude": [
39+
"node_modules"
40+
]
2741
}

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)