Skip to content

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

Closed
@lwh2015

Description

@lwh2015

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions