Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflow: eslint #16

Merged
merged 4 commits into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .eslintignore

This file was deleted.

8 changes: 0 additions & 8 deletions .eslintrc.js

This file was deleted.

7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2

updates:
- package-ecosystem: npm
directory: /
schedule:
interval: daily
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ dist
.eslintcache
node_modules
coverage

1 change: 1 addition & 0 deletions .prototools
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm = "9.0.4"
14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import createEslintConfig from 'talljack-eslint-config';

export default createEslintConfig({
react: true,
typescript: true,
rules: {
'no-console': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'react/no-unknown-property': ['error', { ignore: ['css'] }],
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/ban-ts-comment': 'off',
'ts/ban-ts-comment': 'warn',
},
});
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "react-starter",
"type": "module",
"version": "1.0.0",
"packageManager": "pnpm@8.15.7",
"packageManager": "pnpm@9.0.4",
"description": "My React template",
"author": "Talljack <yugang.cao12@gmail.com> (https://github.com/talljack)",
"license": "MIT",
"homepage": "https://github.com/talljack/react-starter",
"funding": "https://github.com/sponsors/talljack",
"homepage": "https://github.com/talljack/react-starter",
"bugs": {
"url": "https://github.com/talljack/react-starter/issues"
},
Expand All @@ -29,7 +30,6 @@
"test:cov": "vitest run --coverage"
},
"dependencies": {
"@antfu/eslint-config-react": "^0.43.1",
"@headlessui/react": "^1.7.19",
"@headlessui/tailwindcss": "^0.2.0",
"@tanstack/react-router": "0.0.1-beta.83",
Expand All @@ -39,7 +39,7 @@
"i18next-browser-languagedetector": "^7.2.1",
"immer": "^10.0.4",
"jotai": "^2.8.0",
"jotai-devtools": "^0.8.0",
"jotai-devtools": "^0.9.0",
"jotai-immer": "^0.3.0",
"next-i18next": "^15.3.0",
"react": "^18.2.0",
Expand All @@ -55,9 +55,9 @@
"@types/react-dom": "^18.2.25",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-c8": "^0.33.0",
"@vitest/coverage-v8": "^1.5.0",
"autoprefixer": "^10.4.19",
"eslint": "^8.37.0",
"eslint": "^9.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"esno": "^4.7.0",
Expand All @@ -70,8 +70,9 @@
"prettier": "^3.2.5",
"simple-git-hooks": "^2.11.1",
"tailwindcss": "^3.4.3",
"talljack-eslint-config": "^0.2.1",
"typescript": "^5.4.5",
"vite": "^5.2.8",
"vite": "^5.2.9",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.5.0"
},
Expand Down
Loading
Loading