-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
38 lines (38 loc) · 1.39 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
/** @type {import('eslint').Linter.Config} */
const year = new Date().getFullYear();
module.exports = {
root: true,
extends: ['./configs/base.eslintrc.json', './configs/warnings.eslintrc.json', './configs/errors.eslintrc.json'],
ignorePatterns: ['**/{node_modules,lib}'],
parserOptions: {
tsconfigRootDir: __dirname,
project: 'tsconfig.json'
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
// eslint-plugin-header
'header/header': [
2,
'block',
[
{
pattern: '[\n\r]+ \\* Copyright \\([cC]\\) \\d{4}(-\\d{4})? .*[\n\r]+',
template: `********************************************************************************
* Copyright (c) ${year} EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0, or the MIT License which is
* available at https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: EPL-2.0 OR MIT
********************************************************************************`
}
]
]
}
}
]
};