-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
42 lines (41 loc) · 1.06 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
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
module.exports = {
env: {
browser: false,
es6: true,
jest: true,
},
extends: ['airbnb-base', 'airbnb-typescript/base'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2022,
project: './tsconfig.json',
},
plugins: ['@typescript-eslint'],
rules: {
hasTrailingComma: 'off',
indent: ['error', 2],
'no-tabs': 'error',
'import/extensions': 'error',
'import/no-namespace': 'error',
'import/no-unresolved': 'error',
'import/no-extraneous-dependencies': 'error',
'import/prefer-default-export': 'off',
'max-classes-per-file': 'off',
'no-new': 'off',
'no-console': 'off',
'no-underscore-dangle': 'off',
'max-len': ['error', { code: 160, ignoreComments: true }],
},
};