-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
45 lines (39 loc) · 1.36 KB
/
eslint.config.js
File metadata and controls
45 lines (39 loc) · 1.36 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
const {
defineConfig,
} = require('@eslint/config-helpers')
const js = require('@eslint/js')
const {
FlatCompat,
} = require('@eslint/eslintrc')
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})
module.exports = defineConfig([{
extends: compat.extends('@nextcloud'),
settings: {
'import/resolver': {
alias: {
map: [
['@', './src'],
['@floating-ui/dom-actual', './node_modules/@floating-ui/dom'],
['@conduction/nextcloud-vue', '../nextcloud-vue/src'],
],
extensions: ['.js', '.ts', '.vue', '.json', '.css'],
},
},
},
rules: {
// Allow unused i18n functions (t, n) — imported for future translation wiring
'no-unused-vars': ['error', { varsIgnorePattern: '^(t|n)$', argsIgnorePattern: '^_' }],
'jsdoc/require-jsdoc': 'off',
'vue/first-attribute-linebreak': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'n/no-missing-import': 'off',
'import/namespace': 'off', // disable namespace checking to avoid parser requirement
'import/default': 'off', // disable default import checking to avoid parser requirement
'import/no-named-as-default': 'off', // disable named-as-default checking to avoid parser requirement
'import/no-named-as-default-member': 'off', // disable named-as-default-member checking to avoid parser requirement
},
}])