mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-21 23:53:52 +00:00
chore: update eslint.config to new modules
This commit is contained in:
parent
a6568b6f17
commit
632e70441e
|
@ -1,5 +1,7 @@
|
||||||
import { FlatCompat } from '@eslint/eslintrc';
|
import { FlatCompat } from '@eslint/eslintrc';
|
||||||
import pluginJs from '@eslint/js';
|
import pluginJs from '@eslint/js';
|
||||||
|
import vueEslintConfig from '@vue/eslint-config-typescript';
|
||||||
|
import prettierConfig from "@vue/eslint-config-prettier";
|
||||||
import pluginVue from 'eslint-plugin-vue';
|
import pluginVue from 'eslint-plugin-vue';
|
||||||
import globals from 'globals';
|
import globals from 'globals';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
|
@ -18,8 +20,13 @@ export default [
|
||||||
pluginJs.configs.recommended,
|
pluginJs.configs.recommended,
|
||||||
...tseslint.configs.recommended,
|
...tseslint.configs.recommended,
|
||||||
...pluginVue.configs['flat/recommended'],
|
...pluginVue.configs['flat/recommended'],
|
||||||
...compat.extends('@vue/eslint-config-typescript/recommended'),
|
...vueEslintConfig({
|
||||||
...compat.extends('@vue/eslint-config-prettier'),
|
extends: [
|
||||||
|
'recommended',
|
||||||
|
// 'strict',
|
||||||
|
]
|
||||||
|
}),
|
||||||
|
prettierConfig,
|
||||||
{
|
{
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user