forked from soramitsu/klaytn-dex-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
executable file
·36 lines (34 loc) · 912 Bytes
/
.eslintrc.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
module.exports = {
root: true,
extends: ['alloy', 'alloy/typescript', 'plugin:vue/vue3-recommended', './.eslintrc-auto-import.json'],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2020,
sourceType: 'module',
},
globals: {
defineProps: 'readonly',
defineEmits: 'readonly',
defineExpose: 'readonly',
withDefaults: 'readonly',
},
rules: {
'vue/html-indent': ['warn', 2],
'vue/multi-word-component-names': 'off',
// make possible `/// <reference...`
'spaced-comment': ['error', 'always', { markers: ['/'] }],
'no-unused-vars': 'warn',
'no-duplicate-imports': 'off',
},
overrides: [
{
files: ['**/cypress/**/*.{j,t}s', '**/*.cy.{js,ts}'],
plugins: ['cypress'],
extends: ['plugin:cypress/recommended'],
env: {
'cypress/globals': true,
},
},
],
}