Skip to content

Instantly share code, notes, and snippets.

@KeithBrown39423
Created June 28, 2024 00:29
Show Gist options
  • Select an option

  • Save KeithBrown39423/29615192b35b16e8023ad559979a25fa to your computer and use it in GitHub Desktop.

Select an option

Save KeithBrown39423/29615192b35b16e8023ad559979a25fa to your computer and use it in GitHub Desktop.
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
export default [
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ languageOptions: { globals: globals.node } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
indent: [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
quotes: [
"error",
"double"
],
semi: [
"error",
"always"
]
}
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment