-
Notifications
You must be signed in to change notification settings - Fork 78
/
.eslintrc.cjs
48 lines (46 loc) · 1.24 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
45
46
47
48
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
/* global module */
// Note: The ESLint configuration is mandatory for vue-cli.
module.exports = {
'extends': [
'plugin:vue/vue3-recommended',
'ckeditor5'
],
// https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser
'parser': 'vue-eslint-parser',
'parserOptions': {
'parser': '@typescript-eslint/parser',
'sourceType': 'module'
},
'rules': {
'ckeditor5-rules/license-header': [ 'error', { headerLines: [
'/**',
' * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.',
' * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options',
' */'
] } ],
'ckeditor5-rules/require-file-extensions-in-imports': [
'error',
{
extensions: [ '.ts', '.js', '.json' ]
}
],
'ckeditor5-rules/prevent-license-key-leak': 'error',
'vue/multi-word-component-names': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [ 'error' ]
},
'overrides': [
{
'files': [
'**/*.vue'
],
'rules': {
'ckeditor5-rules/license-header': 'off'
}
}
]
};