Use eslint-plugin-prettier and update readme
This commit is contained in:
@@ -1,22 +1,16 @@
|
||||
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";
|
||||
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
|
||||
|
||||
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,ts,mts,cts}"],
|
||||
plugins: { js },
|
||||
extends: ["js/recommended"],
|
||||
languageOptions: { globals: globals.node },
|
||||
},
|
||||
tseslint.configs.recommended,
|
||||
eslintPluginPrettierRecommended,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user