mirror of
https://github.com/IT4Change/IT4C.dev.git
synced 2025-12-12 17:05:50 +00:00
38 lines
902 B
TypeScript
38 lines
902 B
TypeScript
import eslint from '@eslint/js'
|
|
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
|
|
import eslintPluginVue from 'eslint-plugin-vue'
|
|
import globals from 'globals'
|
|
import typescriptEslint from 'typescript-eslint'
|
|
|
|
export default typescriptEslint.config(
|
|
{
|
|
ignores: [
|
|
'coverage',
|
|
'backend',
|
|
'docs/.vuepress/.cache',
|
|
'docs/.vuepress/.temp',
|
|
'docs/.vuepress/dist',
|
|
],
|
|
},
|
|
{
|
|
extends: [
|
|
eslint.configs.recommended,
|
|
...typescriptEslint.configs.recommended,
|
|
...eslintPluginVue.configs['flat/recommended'],
|
|
],
|
|
files: ['**/*.{ts,vue}'],
|
|
languageOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
globals: globals.browser,
|
|
parserOptions: {
|
|
parser: typescriptEslint.parser,
|
|
},
|
|
},
|
|
rules: {
|
|
// your rules
|
|
},
|
|
},
|
|
eslintPluginPrettierRecommended,
|
|
)
|