Skip to content

Commit 0d5312b

Browse files
committed
chore: ignore public folders, updated eslint config
1 parent a2e6230 commit 0d5312b

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ cache
3535
tsconfig.tsbuildinfo
3636
dist/
3737

38-
# Ignore the blog-data json that we generate during dev and build
39-
apps/site/public/blog-data.json
40-
4138
# Cloudflare Build Output
4239
apps/site/.open-next
4340
apps/site/.wrangler

.husky/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# undo staged changes to blog data
2+
git restore --staged apps/site/public/blog-data.json
3+
14
# lint and format staged files
25
node --run lint:staged
36

.prettierignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ package-lock.json
1111
.next
1212
build
1313

14-
# Next.js Generated Files
15-
public/static/documents
16-
1714
# Test Runner
1815
junit.xml
1916
lcov.info
@@ -39,6 +36,9 @@ tsconfig.tsbuildinfo
3936
# Metadata Files
4037
CODEOWNERS
4138

39+
# Public Folders
40+
apps/site/public
41+
4242
# Prettier's Handlebar parser is limited and chokes on some syntax features
4343
# https://github.com/prettier/prettier/issues/11834
4444
scripts/release-post/template.hbs

apps/site/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const compatConfig = compat.config({
2020

2121
export default tseslint.config(
2222
...baseConfig,
23-
{ ignores: ['pages/en/blog/**/*.{md,mdx}/**'] },
23+
{ ignores: ['pages/en/blog/**/*.{md,mdx}/**', 'public'] },
2424
{
2525
extends: [
2626
react.configs.flat['jsx-runtime'],

apps/site/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"serve": "node --run dev",
2525
"start": "cross-env NODE_NO_WARNINGS=1 next start",
2626
"sync-orama": "node ./scripts/orama-search/sync-orama-cloud.mjs",
27-
"test": "turbo test:unit",
27+
"test": "test:unit",
2828
"test:unit": "cross-env NODE_NO_WARNINGS=1 node --experimental-test-coverage --test-coverage-exclude=**/*.test.* --experimental-test-module-mocks --enable-source-maps --import=global-jsdom/register --import=tsx --import=tests/setup.jsx --test **/*.test.*",
29-
"test:unit:watch": "cross-env NODE_OPTIONS=\"--watch\" node --run test:unit"
29+
"test:unit:watch": "node --run test:unit -- --watch"
3030
},
3131
"dependencies": {
3232
"@heroicons/react": "~2.2.0",

eslint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import js from '@eslint/js';
2-
import importX from 'eslint-plugin-import-x';
2+
import { flatConfigs } from 'eslint-plugin-import-x';
33

44
export default [
55
js.configs.recommended,
6-
importX.flatConfigs.recommended,
6+
flatConfigs.recommended,
77
{
88
ignores: [
99
'node_modules',

0 commit comments

Comments
 (0)