-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ESLint v9 flat config support (#34)
* make the entrypoint compatible with eslint v9 * Add a local test * Updated readme * Added a flat config compatibility check * Use eslint 9 for local development * Fix unit tests * Remove ESLint ignore * Update README.md Co-authored-by: Brett Zamir <brettz9@yahoo.com> --------- Co-authored-by: Brett Zamir <brettz9@yahoo.com>
- Loading branch information
1 parent
4a33848
commit 7321fbc
Showing
8 changed files
with
372 additions
and
266 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"use strict"; | ||
|
||
const pluginChaiFriendly = require("./lib"); | ||
|
||
module.exports = [ | ||
pluginChaiFriendly.configs.recommended, | ||
{ | ||
ignores: ["node_modules", "!.eslintrc.js", "examples"], | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const { expect } = require('chai'); | ||
|
||
// these are valid chai expect statement that should not cause any linter errors | ||
expect(true).to.be.true; | ||
foo.should.be.true; | ||
|
||
// this should cause unused expression error | ||
const foo = {bar: 'baz'}; | ||
foo.bar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.