-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from hildjj/update-deps
Update to eslint9.
- Loading branch information
Showing
14 changed files
with
3,959 additions
and
4,100 deletions.
There are no files selected for viewing
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 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,32 @@ | ||
import cjs from "./flat/cjs.js"; | ||
import js from "./flat/js.js"; | ||
import meta from "@cto.af/eslint-plugin-meta"; | ||
import mjs from "./flat/mjs.js"; | ||
import { plugin } from "typescript-eslint"; | ||
import stylistic from "@stylistic/eslint-plugin"; | ||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
"node_modules/**", | ||
"test/**", | ||
], | ||
}, | ||
js, | ||
cjs, | ||
mjs, | ||
{ | ||
files: [ | ||
"rules/*.js", | ||
], | ||
settings: { | ||
meta: { | ||
libs: { | ||
"@stylistic": stylistic, | ||
"@typescript-eslint": plugin, | ||
}, | ||
}, | ||
}, | ||
...meta.configs.all, | ||
}, | ||
]; |
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,19 +1,21 @@ | ||
"use strict"; | ||
|
||
// Requires the optional peerDependencies be in place. | ||
const tslint = require("typescript-eslint"); | ||
const { rules } = require("../rules/ts.js"); | ||
|
||
module.exports = { | ||
files: ["**/*.ts"], | ||
languageOptions: { | ||
parser: require("@typescript-eslint/parser"), | ||
parserOptions: { | ||
project: true, | ||
}, | ||
sourceType: "module", | ||
}, | ||
plugins: { | ||
"@typescript-eslint": require("@typescript-eslint/eslint-plugin"), | ||
}, | ||
ignores: [ | ||
"**/node_modules/**", | ||
"**/*.d.ts", | ||
], | ||
...tslint.configs.base, | ||
rules, | ||
}; | ||
|
||
module.exports.languageOptions.parserOptions = { | ||
// It's undefined for now, but just in case. | ||
...module.exports.languageOptions.parserOptions, | ||
project: true, | ||
}; |
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.