forked from ckeditor/ckeditor5-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
47 lines (45 loc) · 1.16 KB
/
.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
43
44
45
46
47
/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* This file is licensed under the terms of the MIT License (see LICENSE.md).
*/
/* eslint-env node */
module.exports = {
extends: [
'ckeditor5',
'plugin:@typescript-eslint/recommended'
],
env: {
browser: true
},
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint/eslint-plugin'
],
parserOptions: {
tsconfigRootDir: __dirname,
project: [
'./tsconfig.json'
]
},
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/indent': [ 'error', 'tab' ],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-use-before-define': [ 'error', 'nofunc' ],
'@typescript-eslint/no-var-requires': 'off',
'new-cap': 'off',
},
overrides: [ {
files: [ '**/*.spec.ts' ],
env: {
jasmine: true
},
parserOptions: {
tsconfigRootDir: __dirname,
project: 'tsconfig.spec.json'
},
} ]
}