- add .gitignore - node modules - generated js files - add prettier and eslint configurations - prettier: some options configured - eslint: js linting disabled - initialize npm, install packages - add vscode settings - prettier formatting on save disabled
19 lines
567 B
JavaScript
19 lines
567 B
JavaScript
import js from "@eslint/js"
|
|
import globals from "globals";
|
|
import tseslint from "typescript-eslint";
|
|
import { defineConfig } from "eslint/config";
|
|
|
|
export default defineConfig([
|
|
// {
|
|
// files: ["**/*.{js,mjs,cjs}"],
|
|
// plugins: { js },
|
|
// extends: ["js/recommended"],
|
|
// languageOptions: { globals: globals.node },
|
|
// },
|
|
{files: ["**/*.{ts,mts,cts}"], plugins: { tseslint }, extends: [tseslint.configs.recommended], languageOptions: { globals: globals.node },
|
|
rules: {
|
|
"@typescript-eslint/no-unused-vars": "warn",
|
|
},
|
|
},
|
|
]);
|