-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
41 lines (41 loc) · 1.17 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
module.exports = {
root: true,
plugins: ['jest'],
env: {
browser: true,
commonjs: true,
es6: true,
'jest/globals': true
},
extends: [
'airbnb-base',
'airbnb-typescript/base'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parserOptions: {
ecmaVersion: 2020
},
rules: {
indent: [2, 4],
'arrow-parens': ['error', 'always'],
'comma-dangle': ['error', 'never'],
'max-len': ['error', { code: 250 }],
'object-curly-newline': ['error', { consistent: true }],
'operator-linebreak': ['error', 'after'],
'no-console': 'off',
'prefer-destructuring': 'off',
'global-require': 0,
'arrow-body-style': 0,
radix: 0,
'@typescript-eslint/indent': [2, 4],
'@typescript-eslint/comma-dangle': ['error', 'never'],
'import/prefer-default-export': "off"
},
parserOptions: {
project: './tsconfig.eslint.json'
},
ignorePatterns: ['.eslintrc.js', 'setupTests.js', 'babel.config.js', 'jest.config.js', '/infrastructure/**', "/build/**", "/app/**"]
};