-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
45 lines (44 loc) · 1.4 KB
/
Copy patheslint.config.js
File metadata and controls
45 lines (44 loc) · 1.4 KB
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
import vue from 'eslint-plugin-vue'
import prettier from 'eslint-config-prettier'
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
export default defineConfigWithVueTs(
prettier,
vue.configs['flat/recommended'],
vueTsConfigs.recommended,
{
ignores: ['vendor', 'node_modules', 'public', 'bootstrap/ssr', 'tailwind.config.js', 'resources/js/components/ui/*']
},
{
rules: {
'@typescript-eslint/no-unused-expressions': [
'error',
{
allowShortCircuit: true,
allowTernary: true
}
],
'vue/multi-word-component-names': 'off',
'@typescript-eslint/comma-dangle': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'comma-dangle': ['error', 'never'],
'object-curly-spacing': ['error', 'always'],
'quotes': ['error', 'single'],
'keyword-spacing': ['error'],
'space-before-function-paren': ['error', 'never'],
'space-before-blocks': ['error', 'always'],
'no-multiple-empty-lines': ['error', {
'max': 1
}],
'no-trailing-spaces': ['error'],
'padding-line-between-statements': [
'error',
{ 'blankLine': 'always', 'prev': '*', 'next': 'return' }
],
'semi': ['error', 'never'],
'key-spacing': 'error',
'indent': ['error', 2],
'vue/require-explicit-emits': ['off'],
'no-useless-catch': ['off']
}
}
)