forked from ckeditor/ckeditor5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (33 loc) · 802 Bytes
/
.eslintrc.js
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
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* eslint-env node */
'use strict';
const fs = require( 'fs' );
const path = require( 'path' );
const dllPackages = fs.readdirSync( path.join( __dirname, 'src' ) ).map( directory => directory.replace( /\.js$/, '' ) );
module.exports = {
extends: 'ckeditor5',
settings: {
dllPackages
},
rules: {
'ckeditor5-rules/ckeditor-imports': 'error'
},
overrides: [
{
files: [ '**/tests/**/*.js' ],
rules: {
'no-unused-expressions': 'off',
'ckeditor5-rules/ckeditor-imports': 'off'
}
},
{
files: [ '**/docs/**/*.js' ],
rules: {
'ckeditor5-rules/ckeditor-imports': 'off'
}
}
]
};