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

Is there a way to let ESLint decide what files are relevant, rather than use the specified globs? #4

Open
NullVoxPopuli opened this issue Dec 23, 2021 · 0 comments

Comments

@NullVoxPopuli
Copy link

found this: https://github.com/mansona/lint-to-the-future-eslint/blob/main/index.js#L71

  const files = walkSync(cwd, {
    globs: ['**/*.js'],
    ignore: ignoreFile || ['node_modules/*'],
  });

in my own code / tests, I needed to add **/*.ts as well.
We also have the (maybe) upcoming *.gts and *gjs files -- which we can control via eslint plugin without the user having to do anything,
ref: https://github.com/ember-cli/eslint-plugin-ember/pull/1395/files#diff-92bbac9a308cd5fcf9db165841f2d90ce981baddcb2b1e26cfff170929af3bd1R15

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

No branches or pull requests

1 participant