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

No files matching '{src,tests}/**/.*.js' were found. #3243

Closed
lwh2015 opened this issue Jan 3, 2019 · 4 comments · Fixed by #3325
Closed

No files matching '{src,tests}/**/.*.js' were found. #3243

lwh2015 opened this issue Jan 3, 2019 · 4 comments · Fixed by #3325

Comments

@lwh2015
Copy link

lwh2015 commented Jan 3, 2019

Version

3.2.2

Environment info

![image](https://user-images.githubusercontent.com/16028333/50626945-26011300-0f6c-11e9-888f-36fc3500d602.png)

  System:
    OS: macOS 10.14.2
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  Binaries:
    Node: 10.14.1 - /usr/local/bin/node
    Yarn: Not Found
    npm: 6.4.1 - /usr/local/bin/npm
  Browsers:
    Chrome: 71.0.3578.98
    Firefox: Not Found
    Safari: 12.0.2
  npmPackages:
    @vue/babel-preset-app:  3.2.2
    @vue/cli-overlay:  3.2.0
    @vue/cli-plugin-babel: ^3.2.2 => 3.2.2
    @vue/cli-plugin-e2e-cypress: ^3.2.2 => 3.2.2
    @vue/cli-plugin-eslint: ^3.2.2 => 3.2.2
    @vue/cli-plugin-pwa: ^3.2.2 => 3.2.2
    @vue/cli-plugin-unit-mocha: ^3.2.2 => 3.2.2
    @vue/cli-service: ^3.2.2 => 3.2.2
    @vue/cli-shared-utils:  3.2.2
    @vue/component-compiler-utils:  2.4.0
    @vue/eslint-config-prettier: ^4.0.1 => 4.0.1
    @vue/preload-webpack-plugin:  1.1.0
    @vue/test-utils: ^1.0.0-beta.28 => 1.0.0-beta.28
    @vue/web-component-wrapper:  1.2.0
    babel-helper-vue-jsx-merge-props:  2.0.3
    babel-plugin-transform-vue-jsx:  4.0.1
    eslint-plugin-vue: ^5.1.0 => 5.1.0
    vue: ^2.5.17 => 2.5.21
    vue-eslint-parser:  2.0.3
    vue-hot-reload-api:  2.3.1
    vue-loader:  15.4.2
    vue-router: ^3.0.1 => 3.0.2
    vue-style-loader:  4.1.2
    vue-template-compiler: ^2.5.17 => 2.5.21
    vue-template-es2015-compiler:  1.6.0
    vuex: ^3.0.1 => 3.0.1
  npmGlobalPackages:
    @vue/cli: 3.2.2

Steps to reproduce

1、在.eslintignore文件中指定忽略文件
2、执行npm run lint
3、报No files matching '{src,tests}/**/..js' were found.
4、若指定准确文件名,例如vue.config.js,则会报Error: All files matched by '.
.js' are ignored.

What is expected?

期望能够准确的忽略指定的文件及指定目录下的文件

What is actually happening?

实际结果error


之前是给了指定目录test,该问题已解决,但其他的并没有,附地址链接#3167

@lwh2015
Copy link
Author

lwh2015 commented Jan 3, 2019

image

@michalsnik
Copy link
Member

Hey @lwh2015 I can't reproduce this problem on the latest version of @vue/cli-plugin-eslint. Could you perhaps create an example repository that reproduces this problem?

@lwh2015
Copy link
Author

lwh2015 commented Jan 9, 2019

Hey @lwh2015 I can't reproduce this problem on the latest version of @vue/cli-plugin-eslint. Could you perhaps create an example repository that reproduces this problem?

@michalsnik ok,you can pull this git https://github.com/lwh2015/vue-demo.git.

@haoqunjiang
Copy link
Member

See #3325
Is that the actual behavior you expected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants