diff --git a/.eslintrc b/.eslintrc index c628d27350..1eddb26afd 100644 --- a/.eslintrc +++ b/.eslintrc @@ -2,10 +2,6 @@ "root": true, "extends": ["@nutui/eslint-config"], "ignorePatterns": [ - "packages/nutui-playground/dist/**", - "packages/nutui-taro-demo/**/*", - "packages/nutui-touch-emulator/dist/**", - "packages/nutui-vscode-extension/dist/**", "src/sites/**" ] } diff --git a/package.json b/package.json index c825913e88..b522d834a1 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "test": "vitest", "test:ui": "vitest --ui --coverage", "test:c": "vitest --coverage", - "lint": "eslint --ext .vue,.ts,.tsx,.js,.jsx src/", + "lint": "eslint ./src ./packages/**/src --ext .vue,.ts,.tsx,.js,.jsx", "lint:fix": "pnpm lint --fix", "copydocs": "node ./scripts/copymd.cjs", "attrs:taro": "node ./scripts/createAttributes.cjs taro", @@ -116,7 +116,7 @@ }, "lint-staged": { "*.{ts,tsx,js,jsx,vue,scss,md}": "prettier --write", - "src/**/*.{ts,tsx,js,jsx,vue}": "eslint --fix" + "*.{ts,tsx,js,jsx,vue}": "eslint --fix" }, "repository": { "type": "git", diff --git a/packages/nutui-playground/src/App.vue b/packages/nutui-playground/src/App.vue index e83411ffe8..30953abb71 100644 --- a/packages/nutui-playground/src/App.vue +++ b/packages/nutui-playground/src/App.vue @@ -43,12 +43,12 @@ watchEffect(() => { diff --git a/packages/nutui-playground/src/Header.vue b/packages/nutui-playground/src/Header.vue index 03961dc685..bc992cefdf 100644 --- a/packages/nutui-playground/src/Header.vue +++ b/packages/nutui-playground/src/Header.vue @@ -44,9 +44,9 @@ function toggleDark() {