pleroma-fe/eslint.config.mjs

36 lines
788 B
JavaScript
Raw Normal View History

2026-01-06 16:22:52 +02:00
import vue from 'eslint-plugin-vue'
import js from '@eslint/js'
import globals from 'globals'
2025-02-04 14:13:26 +02:00
export default [
...vue.configs['flat/recommended'],
js.configs.recommended,
{
2026-01-06 16:22:52 +02:00
files: ['**/*.js', '**/*.mjs', '**/*.vue'],
ignores: ['build/*.js', 'config/*.js'],
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: {
'arrow-parens': 0,
'generator-star-spacing': 0,
'no-debugger': 0,
'vue/require-prop-types': 0,
'vue/multi-word-component-names': 0,
2026-01-06 16:22:52 +02:00
},
},
2025-02-04 14:13:26 +02:00
]