forked from nuxt-modules/i18n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
47 lines (43 loc) · 1.21 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import globals from 'globals'
import tsEsLintPlugin from '@typescript-eslint/eslint-plugin'
import tsEsLintParser from '@typescript-eslint/parser'
import eslintConfigPrettier from 'eslint-config-prettier'
import { FlatCompat } from '@eslint/eslintrc'
const compat = new FlatCompat()
export default [
// Ignores
{
ignores: [
'.eslintcache/**',
'dist/**',
'playground/**',
'specs/fixtures/**',
'specs/utils/**',
'test/fixtures/**',
'coverage/**',
'src/runtime/templates/**',
'docs/components/content/Logo.vue',
'docs/components/content/VoltaBoard.vue',
'docs/components/AppHeader.vue',
'docs/components/AppHeaderNavigation.vue'
]
},
// Globals
{
files: ['**/*.js', '**/*.ts', '**/*.vue', '**/*.json'],
languageOptions: {
globals: globals.node,
parser: tsEsLintParser,
parserOptions: { sourceType: 'module' }
}
},
// Extends
...compat.extends('plugin:@typescript-eslint/recommended'),
...compat.extends('plugin:@typescript-eslint/eslint-recommended'),
eslintConfigPrettier,
// TS Plugin
{
plugins: { '@typescript-eslint': tsEsLintPlugin },
rules: { '@typescript-eslint/ban-ts-comment': 'off' }
}
]