Skip to content

Commit

Permalink
fix: eslint CI 오류 수정 (#203)
Browse files Browse the repository at this point in the history
* fix: eslint 버전 업데이트

* chore: changeset 추가
  • Loading branch information
kangju2000 authored Jul 30, 2024
1 parent 5fa97f8 commit fbe3ad6
Show file tree
Hide file tree
Showing 8 changed files with 153 additions and 424 deletions.
6 changes: 6 additions & 0 deletions .changeset/fifty-eels-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"docs": patch
"es-hangul": patch
---

fix: eslint CI가 제대로 작동하지 않는 문제를 수정합니다.
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ module.exports = {

extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier', 'plugin:@cspell/recommended'],
plugins: ['@typescript-eslint'],
settings: {
next: {
rootDir: 'docs/',
},
},
rules: {
'no-implicit-coercion': 'error',
'no-warning-comments': [
Expand Down
2 changes: 1 addition & 1 deletion cspell.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"words": ["choseong", "jungseong", "jongseong"]
"words": ["choseong", "jongseong", "jungseong", "Nextra"]
}
5 changes: 3 additions & 2 deletions docs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx',
Expand All @@ -9,6 +10,6 @@ module.exports = withNextra({
reactStrictMode: true,
i18n: {
locales: ['en', 'ko'],
defaultLocale: 'ko'
}
defaultLocale: 'ko',
},
});
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.0.1",
"eslint": "^8",
"eslint": "^8.57.0",
"eslint-config-next": "14.1.4",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"typescript": "^5"
"typescript": "^5.4.3"
}
}
2 changes: 1 addition & 1 deletion docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "src/pages/index.mdx"],
"include": ["next-env.d.ts", "next.config.js", "**/*.ts", "**/*.tsx", "src/pages/index.mdx"],
"exclude": ["node_modules"]
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@
"@netlify/plugin-nextjs": "^5.0.0",
"@types/broken-link-checker": "^0",
"@types/node": "^20.11.30",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"@vitest/coverage-istanbul": "^1.5.0",
"@vitest/ui": "^1.5.0",
"broken-link-checker": "^0.7.8",
"eslint": "^7",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.5.0",
"packlint": "^0.2.4",
"prettier": "^3.2.5",
Expand Down
Loading

0 comments on commit fbe3ad6

Please sign in to comment.