Skip to content

Commit

Permalink
refactor: use flat config for eslint (#201)
Browse files Browse the repository at this point in the history
* 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
kecrily and mdjermanovic committed Mar 30, 2024
1 parent 256e089 commit 1030daf
Show file tree
Hide file tree
Showing 14 changed files with 1,337 additions and 566 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

32 changes: 0 additions & 32 deletions .eslintrc.js

This file was deleted.

38 changes: 38 additions & 0 deletions eslint.config.js
@@ -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"
]
}
]
}
}
];

0 comments on commit 1030daf

Please sign in to comment.