mirror of
https://github.com/gavvvr/obsidian-timecodes-plugin.git
synced 2026-07-22 05:38:08 +00:00
chore(eslint): migrate away from deprecated tseslint.config() utility-function
This commit is contained in:
parent
783a51a129
commit
ee74e63732
1 changed files with 10 additions and 4 deletions
|
|
@ -4,13 +4,19 @@ import js from '@eslint/js'
|
|||
import stylistic from '@stylistic/eslint-plugin'
|
||||
import perfectionist from 'eslint-plugin-perfectionist'
|
||||
import * as wdio from 'eslint-plugin-wdio'
|
||||
import { defineConfig } from 'eslint/config'
|
||||
import globals from 'globals'
|
||||
import tseslint from 'typescript-eslint'
|
||||
|
||||
export default tseslint.config(
|
||||
js.configs.recommended,
|
||||
tseslint.configs.strictTypeChecked,
|
||||
tseslint.configs.stylisticTypeChecked,
|
||||
export default defineConfig(
|
||||
{
|
||||
files: ['**/*.{js,ts}'],
|
||||
extends: [
|
||||
js.configs.recommended,
|
||||
tseslint.configs.strictTypeChecked,
|
||||
tseslint.configs.stylisticTypeChecked,
|
||||
],
|
||||
},
|
||||
stylistic.configs.customize({
|
||||
jsx: false,
|
||||
indent: 2,
|
||||
|
|
|
|||
Loading…
Reference in a new issue