-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: Upgrade ESLint * Add back eslintignore * Skip tests relying on project files * Update eslint.config.js Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> * Update eslint.config.js Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> * Update eslint.config.js Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> * Update package.json Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> * Add formatting config --------- Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
- Loading branch information
1 parent
f05aea7
commit 18d22b7
Showing
30 changed files
with
172 additions
and
136 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,52 @@ | ||
/** | ||
* @fileoverview ESLint configuration file | ||
* @author Nicholas C. Zakas | ||
*/ | ||
|
||
//----------------------------------------------------------------------------- | ||
// Imports | ||
//----------------------------------------------------------------------------- | ||
|
||
import eslintConfigESLint from "eslint-config-eslint"; | ||
import eslintConfigESLintFormatting from "eslint-config-eslint/formatting"; | ||
|
||
//----------------------------------------------------------------------------- | ||
// Config | ||
//----------------------------------------------------------------------------- | ||
|
||
export default [ | ||
|
||
{ | ||
ignores: [ | ||
"tests/fixtures", | ||
"coverage", | ||
"docs", | ||
"jsdoc", | ||
"dist" | ||
] | ||
}, | ||
|
||
...eslintConfigESLint, | ||
eslintConfigESLintFormatting, | ||
{ | ||
files: ["tests/**/*"], | ||
languageOptions: { | ||
globals: { | ||
describe: "readonly", | ||
xdescribe: "readonly", | ||
it: "readonly", | ||
xit: "readonly", | ||
beforeEach: "readonly", | ||
afterEach: "readonly", | ||
before: "readonly", | ||
after: "readonly" | ||
} | ||
}, | ||
rules: { | ||
"no-restricted-syntax": ["error", { | ||
selector: "CallExpression[callee.object.name='assert'][callee.property.name='doesNotThrow']", | ||
message: "`assert.doesNotThrow()` should be replaced with a comment next to the code." | ||
}] | ||
} | ||
} | ||
]; |
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
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
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
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.