-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
area: repository toolingconcerning ease of contributionconcerning ease of contributionstatus: in discussionLet's talk about it!Let's talk about it!
Description
Tooling Suggestion Checklist
- I have tried restarting my IDE and the issue persists.
- I have pulled the latest
mainbranch of the repository. - I have read and agree to Mocha's Code of Conduct and Contributing Guidelines
- I have searched for related issues and issues with the
faqlabel, but none matched my issue. - I want to provide a PR to resolve this
Overview
Back in #5060, I'd added an ESLint config but not enabled any of the recommended rules from js.configs.recommended. The rules object is overridden by our custom settings:
Lines 11 to 26 in 3c191c0
| module.exports = [ | |
| { | |
| ...js.configs.recommended, | |
| languageOptions: { | |
| ecmaVersion: 2020, | |
| globals: { | |
| ...globals.browser, | |
| ...globals.node | |
| }, | |
| sourceType: 'script' | |
| }, | |
| rules: { | |
| 'no-var': 'off', | |
| strict: ['error', 'global'] | |
| } | |
| }, |
Additional Info
The fact that I missed this and no reviewers caught it is a testament to the ... joy of being new adopters of flat config. 🙃
Metadata
Metadata
Assignees
Labels
area: repository toolingconcerning ease of contributionconcerning ease of contributionstatus: in discussionLet's talk about it!Let's talk about it!
Type
Projects
Status
No status