-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.eslintrc.cjs
44 lines (44 loc) · 1.09 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
module.exports = {
env: {
browser: true,
es2021: true,
webextensions: true,
node: true,
},
extends: ['plugin:vue/recommended', 'airbnb-base', 'plugin:tailwindcss/recommended'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['vue', 'tailwindcss', 'import'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'max-len': 'off',
'no-continue': 'off',
'no-restricted-syntax': [
'error',
'ForInStatement',
'LabeledStatement',
'WithStatement',
],
'no-use-before-define': ['error', { functions: false }],
'no-param-reassign': ['error', { props: false }],
},
overrides: [
{
files: ['vite.config.js'],
rules: {
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
},
},
],
settings: {
'import/resolver': {
alias: {
map: [['@', './src']],
extensions: ['.ts', '.js', '.jsx', '.tsx', '.json'],
},
},
},
};