Skip to content

Commit

Permalink
fix: options
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Nov 13, 2020
1 parent 34ca93d commit fb9fab3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
21 changes: 14 additions & 7 deletions README.md
Expand Up @@ -12,7 +12,7 @@

## Requirements

You need to ensure that you have `eslint` installed:
You need to ensure that you have `eslint >= 7` installed:

```bash
yarn add --dev eslint # or npm install --save-dev eslint
Expand Down Expand Up @@ -84,22 +84,29 @@ A string indicating the root of your files.

Path to `eslint` instance that will be used for linting.

### `files`
### `exclude`

- Type: `String|Array[String]`
- Default: `'.'`
- Default: `'node_modules'`

Specify directories, files, or globs. Must be relative to `options.context`.
Directories are traversed recursively looking for files matching `options.extensions`.
File and glob patterns ignore `options.extensions`.
Specify the files and/or directories to exclude. Must be relative to `options.context`.

### `extensions`

- Type: `String|Array[String]`
- Default: `['ts', 'js', 'vue']`
- Default: `['js', 'ts', 'vue']`

Specify extensions that should be checked.

### `files`

- Type: `String|Array[String]`
- Default: `null`

Specify directories, files, or globs. Must be relative to `options.context`.
Directories are traversed recursively looking for files matching `options.extensions`.
File and glob patterns ignore `options.extensions`.

### `fix`

- Type: `Boolean`
Expand Down
2 changes: 1 addition & 1 deletion lib/module.js
Expand Up @@ -6,7 +6,7 @@ module.exports = function (moduleOptions) {
const options = {
context: this.options.srcDir,
eslintPath: 'eslint',
extensions: ['ts', 'js', 'vue'],
extensions: ['js', 'ts', 'vue'],
cache: true,
lintDirtyModulesOnly: true,
...this.options.eslint,
Expand Down

0 comments on commit fb9fab3

Please sign in to comment.