-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
63 lines (63 loc) · 1.71 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
56
57
58
59
60
61
62
63
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parserOptions: {
sourceType: 'module',
ecmaVersion: 2023,
},
env: {
es2023: true,
'vitest-globals/env': true,
},
extends: [
'airbnb-base',
'plugin:vue/essential',
'plugin:import/recommended',
'prettier',
'plugin:storybook/recommended',
'plugin:vitest-globals/recommended',
],
settings: {
'import/resolver': {
alias: {
map: [
['@', './src'],
],
},
},
},
// // required to lint *.vue files
plugins: [
'vuetify',
],
'ignorePatterns': ['particles.js'],
// add your custom rules here
rules: {
'import/no-unresolved': 'off',
// allow optionalDependencies
'import/no-extraneous-dependencies': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'import/prefer-default-export': 'off',
'no-unused-vars': 'warn',
'no-console': ['warn', { allow: ['warn', 'error'] }],
'max-len': 'off',
'no-plusplus': 'off',
'prefer-destructuring': 'off',
'no-param-reassign': 'off',
'linebreak-style': 'off',
'padded-blocks': 'off',
'implicit-arrow-linebreak': 0,
'no-restricted-syntax': 0,
'comma-dangle': ['error', 'always-multiline'],
'jsx-quotes': ['error', 'prefer-single'],
'quotes': ['error', 'single', { avoidEscape: true }],
'operator-linebreak': ['off', 'before'],
'vuetify/no-deprecated-classes': 'error',
'vuetify/grid-unknown-attributes': 'error',
'vue/no-v-text-v-html-on-component': 'off',
'import/first': 'error',
'import/newline-after-import': 'error',
'import/no-duplicates': 'error',
},
};