2019-08-31 20:48:37 +03:00
|
|
|
/* eslint-env node */
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = {
|
2019-10-01 23:11:51 +03:00
|
|
|
extends: 'ckeditor5',
|
2023-02-06 19:35:50 +01:00
|
|
|
root: true,
|
2019-10-01 23:11:51 +03:00
|
|
|
globals: {
|
|
|
|
'MathJax': true,
|
2020-08-29 17:33:41 +03:00
|
|
|
'katex': true,
|
|
|
|
'console': true
|
2023-02-06 19:35:50 +01:00
|
|
|
},
|
|
|
|
ignorePatterns: [
|
|
|
|
// Ignore the entire `build/` (the DLL build).
|
|
|
|
'build/**'
|
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
// This rule disallows importing core DLL packages directly. Imports should be done using the `ckeditor5` package.
|
|
|
|
// Also, importing non-DLL packages is not allowed. If the package requires other features to work, they should be
|
|
|
|
// specified as soft-requirements.
|
|
|
|
// Read more: https://ckeditor.com/docs/ckeditor5/latest/builds/guides/migration/migration-to-26.html#soft-requirements.
|
|
|
|
'ckeditor5-rules/ckeditor-imports': 'error',
|
|
|
|
|
|
|
|
// This rule could not be found ???
|
|
|
|
'ckeditor5-rules/use-require-for-debug-mode-imports': 'off'
|
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: [ 'tests/**/*.js', 'sample/**/*.js' ],
|
|
|
|
rules: {
|
|
|
|
// To write complex tests, you may need to import files that are not exported in DLL files by default.
|
|
|
|
// Hence, imports CKEditor 5 packages in test files are not checked.
|
|
|
|
'ckeditor5-rules/ckeditor-imports': 'off'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2019-10-01 23:11:51 +03:00
|
|
|
};
|