15 lines
562 B
JavaScript
15 lines
562 B
JavaScript
// TODO - this was setup with `npm init @eslint/config@latest`, so has mostly just standard defaults.
|
|
// Return to it and tweak 'em (and see if converting to TypeScript has any value!)
|
|
import globals from "globals";
|
|
import pluginJs from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
|
|
/** @type {import('eslint').Linter.Config[]} */
|
|
export default [
|
|
{files: ["**/*.{js,mjs,cjs,ts}"]},
|
|
{ignores: ["node_modules/**", "dist/**"]},
|
|
{languageOptions: { globals: globals.browser }},
|
|
pluginJs.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
]; |