-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
49 lines (45 loc) · 1.33 KB
/
eslint.config.js
File metadata and controls
49 lines (45 loc) · 1.33 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
46
47
48
49
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import WisemenEslintConfig from '@wisemen/eslint-config-vue'
const __dirname = path.dirname(fileURLToPath(import.meta.url))
export default [
...(await WisemenEslintConfig),
{
settings: {
tailwindcss: {
config: path.join(__dirname, './packages/nuxt/tailwind.config.ts'),
},
},
},
{
rules: {
'padding-line-between-statements': [
'error',
{ blankLine: 'always', next: 'return', prev: '*' },
{ blankLine: 'always', next: 'expression', prev: '*' },
{ blankLine: 'always', next: '*', prev: 'expression' },
{ blankLine: 'any', next: 'expression', prev: 'expression' },
{ blankLine: 'always', next: 'function', prev: '*' },
{ blankLine: 'always', next: '*', prev: 'function' },
{ blankLine: 'always', next: '*', prev: [
'const',
'let',
'var',
] },
{ blankLine: 'any', next: [
'const',
'let',
'var',
], prev: [
'const',
'let',
'var',
] },
],
'putout/add-newline-after-function-call': 'off',
'putout/add-newline-before-function-call': 'off',
'putout/add-newline-before-return': 'off',
'vue/no-undef-components': 'off',
},
},
]