Skip to content

Commit

Permalink
feat: allow commonjs config file for eslint (#629)
Browse files Browse the repository at this point in the history
* feat: allow commonjs config file for eslint

* Update CHANGELOG.md

Co-authored-by: Nicolas Vuillamy <[email protected]>
  • Loading branch information
vitaliytv and nvuillam authored Aug 9, 2021
1 parent b53f1fa commit 5371dba
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Note: Can be used with `nvuillam/mega-linter@insiders` in your GitHub Action meg

- Store docker pulls statistics history
- add `IGNORE_GENERATED_FILES` in json schema
- allow commonjs config file for eslint - [#629](https://github.com/nvuillam/mega-linter/pull/629), by [vitalitytv](https://github.com/vitaliytv)

- Linter versions upgrades
- [checkov](https://www.checkov.io/) from 2.0.295 to **2.0.297** on 2021-07-25
Expand Down
2 changes: 1 addition & 1 deletion docs/descriptors/javascript_eslint.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ This linter is available in the following flavours

### How are identified applicable files

- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js`
- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js, .eslintrc.cjs`
- File extensions: `.js`, `.vue`

<!-- markdownlint-disable -->
Expand Down
2 changes: 1 addition & 1 deletion docs/descriptors/jsx_eslint.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ This linter is available in the following flavours

### How are identified applicable files

- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js`
- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js, .eslintrc.cjs`
- File extensions: `.jsx`

<!-- markdownlint-disable -->
Expand Down
2 changes: 1 addition & 1 deletion docs/descriptors/tsx_eslint.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ This linter is available in the following flavours

### How are identified applicable files

- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js`
- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js, .eslintrc.cjs`
- File extensions: `.tsx`

<!-- markdownlint-disable -->
Expand Down
2 changes: 1 addition & 1 deletion docs/descriptors/typescript_eslint.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ This linter is available in the following flavours

### How are identified applicable files

- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js`
- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js, .eslintrc.cjs`
- File extensions: `.ts`

<!-- markdownlint-disable -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ linters:
- ".eslintrc.yml"
- ".eslintrc.yaml"
- ".eslintrc.js"
- ".eslintrc.cjs"
cli_lint_mode: list_of_files
config_file_name: .eslintrc.json
cli_config_extra_args:
Expand Down
1 change: 1 addition & 0 deletions megalinter/descriptors/jsx.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ linters:
- ".eslintrc.yml"
- ".eslintrc.yaml"
- ".eslintrc.js"
- ".eslintrc.cjs"
cli_lint_mode: list_of_files
config_file_name: .eslintrc.json
cli_config_extra_args:
Expand Down
1 change: 1 addition & 0 deletions megalinter/descriptors/tsx.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ linters:
- ".eslintrc.yml"
- ".eslintrc.yaml"
- ".eslintrc.js"
- ".eslintrc.cjs"
cli_lint_mode: list_of_files
config_file_name: .eslintrc.json
cli_config_extra_args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ linters:
- ".eslintrc.yml"
- ".eslintrc.yaml"
- ".eslintrc.js"
- ".eslintrc.cjs"
cli_lint_mode: list_of_files
config_file_name: .eslintrc.json
cli_config_extra_args:
Expand Down

0 comments on commit 5371dba

Please sign in to comment.