generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): bump node-vanilla dependencies and migrated to eslint flat…
… config
- Loading branch information
1 parent
91a1c7e
commit 97fe07f
Showing
4 changed files
with
53 additions
and
35 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,40 @@ | ||
/* | ||
** | ||
** Copyright (c) 2024, Oracle and/or its affiliates. | ||
** All rights reserved | ||
** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ | ||
*/ | ||
import globals from "globals"; | ||
import js from "@eslint/js"; | ||
import nodePlugin from "eslint-plugin-n"; | ||
|
||
export default [ | ||
{ | ||
files: ["src/**/*.js"], | ||
languageOptions: { | ||
ecmaVersion: 2022, | ||
sourceType: "module", | ||
globals: { | ||
...globals.browser, | ||
} | ||
}, | ||
rules: js.configs.recommended.rules | ||
}, | ||
{ | ||
files: ["server/**/*.js", "server/**/*.cjs"], | ||
languageOptions: { | ||
ecmaVersion: 2022, | ||
sourceType: "module", | ||
globals: { | ||
...globals.node, | ||
} | ||
}, | ||
plugins: { | ||
n: nodePlugin | ||
}, | ||
rules: { | ||
...js.configs.recommended.rules, | ||
...nodePlugin.configs["flat/recommended-script"].rules | ||
} | ||
} | ||
]; |
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