-
-
Notifications
You must be signed in to change notification settings - Fork 206
Closed
Description
It would be good if importing the config worked the same way as with all the other plugins and rules. It would be much cleaner.
Standard way:
import { defineConfig } from "eslint/config";
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import prettier from 'eslint-plugin-prettier';
export default defineConfig(
js.configs.recommended,
...tseslint.configs.strict,
...tseslint.configs.stylistic,
...svelte.configs.recommended,
...svelte.configs.prettier,
...prettier.configs.recommended, // This does not work at the moment.
{
//
},
);
Current way:
import { defineConfig } from "eslint/config";
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
export default defineConfig(
js.configs.recommended,
...tseslint.configs.strict,
...tseslint.configs.stylistic,
...svelte.configs.recommended,
...svelte.configs.prettier,
eslintPluginPrettierRecommended
{
//
},
);
Metadata
Metadata
Assignees
Labels
No labels