pleroma-fe/eslint.config.mjs

34 lines
802 B
JavaScript
Raw Normal View History

2026-01-06 16:22:52 +02:00
import js from '@eslint/js'
2026-01-06 18:22:32 +02:00
import { defineConfig, globalIgnores } from 'eslint/config'
2026-01-06 16:23:17 +02:00
import vue from 'eslint-plugin-vue'
2026-01-06 16:22:52 +02:00
import globals from 'globals'
2025-02-04 14:13:26 +02:00
export default defineConfig([
2025-02-04 14:13:26 +02:00
...vue.configs['flat/recommended'],
2026-01-06 18:22:32 +02:00
globalIgnores(['**/*.js', 'build/', 'dist/', 'config/']),
2025-02-04 14:13:26 +02:00
{
files: ['src/**/*.vue'],
plugins: { js },
extends: ['js/recommended'],
2025-02-04 14:13:26 +02:00
languageOptions: {
ecmaVersion: 2024,
2026-01-06 16:22:52 +02:00
sourceType: 'module',
2025-02-04 14:13:26 +02:00
parserOptions: {
2026-01-06 16:22:52 +02:00
parser: '@babel/eslint-parser',
2025-02-04 14:13:26 +02:00
},
globals: {
...globals.browser,
2025-02-27 22:54:23 -05:00
...globals.vitest,
2025-02-04 14:13:26 +02:00
...globals.chai,
...globals.commonjs,
2026-01-06 16:22:52 +02:00
...globals.serviceworker,
},
2025-02-04 14:13:26 +02:00
},
rules: {
'vue/require-prop-types': 0,
'vue/multi-word-component-names': 0,
2026-01-06 16:22:52 +02:00
},
2026-01-06 18:22:32 +02:00
},
])