add prettier npm script, make eslint config prettier
This commit is contained in:
@@ -1,18 +1,22 @@
|
||||
import js from "@eslint/js"
|
||||
import globals from "globals";
|
||||
import tseslint from "typescript-eslint";
|
||||
import { defineConfig } from "eslint/config";
|
||||
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",
|
||||
},
|
||||
},
|
||||
// {
|
||||
// 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