forked from ohosvscode/arkTS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
38 lines (37 loc) · 886 Bytes
/
Copy patheslint.config.js
File metadata and controls
38 lines (37 loc) · 886 Bytes
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
import antfu from '@antfu/eslint-config'
import ifOnelineRule from './scripts/if-oneline.js'
export default antfu({
type: 'lib',
ignores: [
'ohos-typescript/**/*',
'sample/**/*',
'packages/declarations/ets/**/*',
'packages/vscode/src/generated/**/*',
'packages/vfs/src/**/*',
'packages/language-server/language-server-demo/*',
'test-*.mjs',
'test-*.cjs',
],
rules: {
'ts/no-namespace': 'off',
'ts/method-signature-style': ['error', 'method'],
'antfu/if-newline': 'off',
'naily/if-oneline': 'error',
'ts/no-redeclare': 'off',
'vue/singleline-html-element-content-newline': 'off',
},
plugins: {
naily: {
rules: {
'if-oneline': ifOnelineRule,
},
},
},
typescript: {
parserOptions: {
experimentalDecorators: true,
emitDecoratorMetadata: true,
},
},
pnpm: false,
})