forked from opensearch-project/opensearch-cluster-cdk
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
37 lines (37 loc) · 966 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
module.exports = {
env: {
browser: false,
es6: true,
jest: true,
},
extends: [
'airbnb-base',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
},
plugins: [
'@typescript-eslint',
],
rules: {
hasTrailingComma: 'off',
indent: ['error', 2],
'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-unused-vars': 'off',
'no-new': 'off',
'max-len': ['error', { 'code': 160, 'ignoreComments': true }],
"no-param-reassign": 0,
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"]
},
};