-
Notifications
You must be signed in to change notification settings - Fork 27
/
.eslintrc.cjs
50 lines (47 loc) · 1.07 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
49
50
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/
'use strict';
module.exports = {
extends: 'ckeditor5',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
env: {
node: true
},
ignorePatterns: [
'**/dist/*',
'**/coverage/**',
'**/node_modules/**',
'**/release/**',
// ESLint does not understand `import ... with { ... }`.
// See: https://github.com/eslint/eslint/discussions/15305.
'packages/ckeditor5-dev-ci/lib/data/index.js',
'packages/ckeditor5-dev-build-tools/tests/build/fixtures/src/input.ts'
],
rules: {
'no-console': 'off',
'mocha/no-global-tests': 'off',
'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.',
' */'
]
} ]
},
overrides: [
{
files: [
'./packages/typedoc-plugins/**/*'
],
rules: {
'ckeditor5-rules/require-file-extensions-in-imports': 'off'
}
}
]
};