-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/v2.0.0-alpha.0'
- Loading branch information
Showing
14 changed files
with
2,810 additions
and
2,464 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import generalConfig from "./index.js"; | ||
|
||
const config = [ | ||
{ | ||
files: ["**/*.ts"], | ||
}, | ||
{ | ||
ignores: ["coverage/"], | ||
}, | ||
...generalConfig, | ||
]; | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default config; |
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,18 @@ | ||
import tsParser from "@typescript-eslint/parser"; | ||
import globals from "globals"; | ||
|
||
export const languageOptions = { | ||
globals: { | ||
...globals.node, | ||
}, | ||
parser: tsParser, | ||
parserOptions: { | ||
// As of typescript-eslint v8.18.0, it is not entirely clear how projectService should be configured. | ||
// Many examples specify allowDefaultProject: ["*.js"], but that does not work here. | ||
projectService: { | ||
allowDefaultProject: ["eslint.config.js"], | ||
defaultProject: "./tsconfig.json", | ||
}, | ||
tsconfigRootDir: process.cwd(), | ||
}, | ||
}; |
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// https://github.com/andreashuber69/eslint-config/blob/master/README.md#----andreashuber69eslint-config | ||
|
||
import { rules } from "eslint-plugin-jsdoc"; | ||
import jsdoc from "eslint-plugin-jsdoc"; | ||
import { getSeverities } from "./getSeverities.js"; | ||
|
||
export const allJsdocRules = getSeverities(rules, "jsdoc"); | ||
export const allJsdocRules = getSeverities(jsdoc.rules, "jsdoc"); |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// https://github.com/andreashuber69/eslint-config/blob/master/README.md#----andreashuber69eslint-config | ||
|
||
import { rules } from "eslint-plugin-promise"; | ||
import promise from "eslint-plugin-promise"; | ||
import { getSeverities } from "./getSeverities.js"; | ||
|
||
export const allPromiseRules = getSeverities(rules, "promise"); | ||
export const allPromiseRules = getSeverities(promise.rules, "promise"); |
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,9 @@ | ||
// https://github.com/andreashuber69/eslint-config/blob/master/README.md#----andreashuber69eslint-config | ||
|
||
import { getRules } from "./getRules.js"; | ||
import { getSeverities } from "./getSeverities.js"; | ||
|
||
export const getRuleSeverities = async (config?: unknown[]) => | ||
// eslint-disable-next-line no-warning-comments | ||
// TODO: Possibly superfluous? | ||
Object.fromEntries(Object.entries(getSeverities(await getRules(config)))); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,6 @@ | |
"noEmit": true | ||
}, | ||
"include": [ | ||
".eslintrc.cjs", | ||
"index.js", | ||
"test/**/*.ts" | ||
] | ||
} |