Skip to content

Commit 61443dd

Browse files
committed
feat: Add eslint & stylelint
1 parent 4cd1f8c commit 61443dd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

buildchain/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,23 @@
1212
},
1313
"devDependencies": {
1414
"@rollup/plugin-node-resolve": "^13.0.0",
15+
"@typescript-eslint/eslint-plugin": "^3.6.1",
16+
"@typescript-eslint/parser": "^3.6.1",
1517
"@vitejs/plugin-vue": "^1.10.0",
1618
"@vue/compiler-sfc": "^3.2.0",
1719
"autoprefixer": "^10.4.0",
20+
"eslint": "^7.4.0",
21+
"eslint-plugin-vue": "^7.2.0",
1822
"postcss": "^8.4.0",
23+
"stylelint": "^13.7.0",
24+
"stylelint-config-recommended": "^3.0.0",
1925
"tailwindcss": "^3.0.0",
2026
"vite": "^2.7.0",
2127
"vite-plugin-restart": "0.0.2"
2228
},
2329
"scripts": {
2430
"dev": "vite",
25-
"build": "vite build"
31+
"build": "vite build",
32+
"lint": "tsc --noEmit && eslint '../../src/**/*.{js,ts,vue}' --fix"
2633
}
2734
}

0 commit comments

Comments
 (0)