forked from ckeditor/github-writer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
42 lines (35 loc) · 871 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
39
40
41
42
/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/* eslint-env node */
'use strict';
module.exports = {
plugins: [ 'no-unsanitized' ],
// Follow CKEditor 5 rules.
extends: [ 'ckeditor5', 'plugin:no-unsanitized/DOM' ],
rules: {
// We allow blocks to be used to organize the logic of longer functions.
'no-lone-blocks': 'off',
'no-inner-declarations': 'off',
'mocha/no-sibling-hooks': 'off',
'mocha/no-top-level-hooks': 'off',
'quotes': [ 'error', 'single', { 'allowTemplateLiterals': true } ]
},
// Bring in environment variables that touch the project, overall.
env: {
'browser': true,
'commonjs': true
},
overrides: [
{
files: [ 'tests/**/*.js' ],
env: {
'mocha': true,
'browser': true,
'commonjs': true,
'node': true
}
}
]
};