-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.js
More file actions
37 lines (35 loc) · 850 Bytes
/
eslint.config.js
File metadata and controls
37 lines (35 loc) · 850 Bytes
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
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import tseslint from 'typescript-eslint';
import { requireLicenseHeader } from './lint-license-rule.mjs';
export default tseslint.config(
{
ignores: ['dist/**', 'node_modules/**'],
},
{
files: [
'src/**/*.ts',
'src/**/*.tsx',
'*.ts',
'scripts/**/*.js',
'*.mjs',
],
languageOptions: {
parser: tseslint.parser,
},
plugins: {
'local-rules': {
rules: {
'require-license-header': requireLicenseHeader,
},
},
},
rules: {
'local-rules/require-license-header': 'error',
},
},
);