-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use flat config for eslint (#201)
* refactor: use flat config for eslint * chore: update * Apply suggestions from code review Co-authored-by: Milos Djermanovic <[email protected]> * Update eslint.config.js Co-authored-by: Milos Djermanovic <[email protected]> --------- Co-authored-by: Milos Djermanovic <[email protected]>
- Loading branch information
1 parent
256e089
commit 1030daf
Showing
14 changed files
with
1,337 additions
and
566 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
"use strict"; | ||
|
||
const eslintConfigESLint = require("eslint-config-eslint/cjs"); | ||
const globals = require("globals"); | ||
|
||
module.exports = [ | ||
...eslintConfigESLint, | ||
{ | ||
ignores: ["coverage/"] | ||
}, | ||
{ | ||
rules: { | ||
camelcase: ["error", { properties: "never" }], | ||
|
||
// Remove after https://github.com/eslint/eslint/pull/17900 is included in new release | ||
"jsdoc/no-multi-asterisks": ["error", { allowWhitespace: true }] | ||
} | ||
}, | ||
{ | ||
files: ["eslint.config.js", "tests/**/*.js"], | ||
languageOptions: { | ||
globals: { | ||
...globals.jest | ||
} | ||
}, | ||
rules: { | ||
"n/no-unpublished-require": "off", | ||
"n/no-extraneous-require": [ | ||
"error", | ||
{ | ||
allowModules: [ | ||
"@octokit/rest" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
]; |
Oops, something went wrong.