initial commit
- 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
This commit is contained in:
18
eslint.config.mjs
Normal file
18
eslint.config.mjs
Normal file
@@ -0,0 +1,18 @@
|
||||
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",
|
||||
},
|
||||
},
|
||||
]);
|
||||
Reference in New Issue
Block a user