-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
.eslintrc.cjs
55 lines (51 loc) · 1.5 KB
/
.eslintrc.cjs
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
48
49
50
51
52
53
54
55
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
/** @type import('eslint').Linter.Config **/
module.exports = {
root: true,
env: {
browser: true,
node: true,
es2022: true
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'@vue/eslint-config-prettier/skip-formatting',
'plugin:import/recommended',
'plugin:import/typescript'
],
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 13,
parser: {
// Script parser for `<script>`
js: 'espree',
// Script parser for `<script lang="ts">`
ts: '@typescript-eslint/parser',
// Script parser for vue directives (e.g. `v-if=` or `:attribute=`)
// and vue interpolations (e.g. `{{variable}}`).
// If not specified, the parser determined by `<script lang ="...">` is used.
'<template>': 'espree'
}
},
ignorePatterns: ['src/components/icons/cryptos/*.vue'],
plugins: ['vue', '@typescript-eslint'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '_' }],
'vue/multi-word-component-names': 'off',
'import/no-unresolved': 'error',
'import/named': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off'
},
settings: {
'import/resolver': {
typescript: true,
node: true
}
}
}