-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency eslint to v9 (#3011)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: nameless-mc <[email protected]>
- Loading branch information
1 parent
1da8bb0
commit 6afbb4e
Showing
44 changed files
with
661 additions
and
648 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,25 @@ | ||
import presetsNodeTypescriptPrettier from "@cybozu/eslint-config/flat/presets/node-typescript-prettier.js"; | ||
|
||
/** @type {import("eslint").Linter.Config[]} */ | ||
export default [ | ||
...presetsNodeTypescriptPrettier, | ||
{ | ||
rules: { | ||
curly: ["error", "all"], | ||
"func-style": ["error"], | ||
|
||
"@typescript-eslint/no-empty-object-type": "off", | ||
|
||
"@typescript-eslint/no-wrapper-object-types": "off", | ||
|
||
"@typescript-eslint/consistent-type-imports": [ | ||
"error", | ||
{ | ||
prefer: "type-imports", | ||
}, | ||
], | ||
|
||
"n/no-missing-import": "off", | ||
}, | ||
}, | ||
]; |
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,4 @@ | ||
import rootConfig from "../../eslint.config.mjs"; | ||
|
||
/** @type {import("eslint").Linter.Config[]} */ | ||
export default [...rootConfig]; |
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 was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
packages/create-plugin/templates/minimum/eslint.config.mjs
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,19 @@ | ||
import kintoneGlobalConfig from "@cybozu/eslint-config/flat/globals/kintone.js"; | ||
import baseConfig from "@cybozu/eslint-config/flat/lib/base.js"; | ||
import kintoneConfig from "@cybozu/eslint-config/flat/lib/kintone.js"; | ||
import prettierConfig from "@cybozu/eslint-config/flat/lib/prettier.js"; | ||
|
||
/** @type {import("eslint").Linter.Config[]} */ | ||
export default [ | ||
...kintoneGlobalConfig, | ||
...baseConfig, | ||
...kintoneConfig, | ||
...prettierConfig, | ||
{ | ||
rules: { | ||
"prettier/prettier": ["error", { singleQuote: true }], | ||
"space-before-function-paren": 0, | ||
"object-curly-spacing": 0, | ||
}, | ||
}, | ||
]; |
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,4 @@ | ||
import presetsPrettier from "@cybozu/eslint-config/flat/presets/prettier.js"; | ||
|
||
/** @type {import("eslint").Linter.Config[]} */ | ||
export default [...presetsPrettier]; |
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,4 @@ | ||
import rootConfig from "../../eslint.config.mjs"; | ||
|
||
/** @type {import("eslint").Linter.Config[]} */ | ||
export default [...rootConfig]; |
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,4 @@ | ||
import rootConfig from "../../eslint.config.mjs"; | ||
|
||
/** @type {import("eslint").Linter.Config[]} */ | ||
export default [...rootConfig]; |
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
2 changes: 1 addition & 1 deletion
2
packages/dts-gen/src/integration-tests/dts-gen-integration-test.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export const log = (message: string) => { | ||
// eslint-disable-next-line no-console | ||
console.log(message); | ||
}; |
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,4 @@ | ||
import rootConfig from "../../eslint.config.mjs"; | ||
|
||
/** @type {import("eslint").Linter.Config[]} */ | ||
export default [...rootConfig]; |
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,6 @@ | ||
import presetsNodePrettier from "@cybozu/eslint-config/flat/presets/node-prettier.js"; | ||
|
||
/** @type {import("eslint").Linter.Config[]} */ | ||
export default [ | ||
...presetsNodePrettier | ||
]; |
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,28 @@ | ||
import rootConfig from "../../eslint.config.mjs"; | ||
import siteConfig from "./site/eslint.config.mjs"; | ||
import binConfig from "./bin/eslint.config.mjs"; | ||
import globals from "globals"; | ||
|
||
/** @type {import("eslint").Linter.Config[]} */ | ||
export default [ | ||
...siteConfig.map((configObject) => ({ | ||
files: ["site/**/*.{js,ts}"], | ||
...configObject, | ||
})), | ||
...binConfig.map((configObject) => ({ | ||
files: ["bin/**/*.{js,ts}"], | ||
...configObject, | ||
})), | ||
...rootConfig.map((configObject) => ({ | ||
ignores: ["site/*", "bin/*"], | ||
...configObject, | ||
})), | ||
{ | ||
files: ["test/**/*.{js,ts}"], | ||
languageOptions: { | ||
globals: { | ||
...globals.jest, | ||
}, | ||
}, | ||
}, | ||
]; |
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,15 @@ | ||
import globals from "globals"; | ||
import presetsPrettier from "@cybozu/eslint-config/flat/presets/prettier.js"; | ||
|
||
/** @type {import("eslint").Linter.Config[]} */ | ||
export default [ | ||
...presetsPrettier, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.jest, | ||
...globals.node, | ||
}, | ||
}, | ||
}, | ||
]; |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.