Skip to content

Commit 2749b79

Browse files
authored
fix: resolve eslint script issue (#18)
Changes made: - update eslint script. - exclude `tailwind.config.js` from linting.
1 parent 9fe2edf commit 2749b79

File tree

3 files changed

+2724
-2220
lines changed

3 files changed

+2724
-2220
lines changed

.eslintrc.cjs

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ module.exports = {
66
'plugin:@typescript-eslint/recommended',
77
'plugin:react-hooks/recommended',
88
],
9-
ignorePatterns: ['dist', '.eslintrc.cjs', 'src/components/ui'],
9+
ignorePatterns: [
10+
'dist',
11+
'.eslintrc.cjs',
12+
'src/components/ui',
13+
'tailwind.config.js',
14+
],
1015
parser: '@typescript-eslint/parser',
1116
plugins: ['react-refresh'],
1217
rules: {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "tsc && vite build",
9-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
9+
"lint": "eslint .",
1010
"preview": "vite preview",
1111
"format:check": "prettier --check .",
1212
"format": "prettier --write ."

0 commit comments

Comments
 (0)