Install NodeJS, TypeScript, ExpressJS and ESLint with initial configuration files. Add initial instructions to README.md
16 lines
520 B
JavaScript
16 lines
520 B
JavaScript
import { defineConfig } from "eslint/config";
|
|
import globals from "globals";
|
|
import js from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
|
|
export default defineConfig([
|
|
{ files: ["**/*.{js,mjs,cjs,ts}"] },
|
|
{ files: ["**/*.{js,mjs,cjs,ts}"], languageOptions: { globals: globals.browser } },
|
|
{ files: ["**/*.{js,mjs,cjs,ts}"], plugins: { js }, extends: ["js/recommended"] },
|
|
tseslint.configs.recommended,
|
|
{ rules: {
|
|
"no-undef": "off",
|
|
"@typescript-eslint/no-require-imports": "off"
|
|
} },
|
|
]);
|