-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
50 lines (50 loc) · 1.1 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
43
44
45
46
47
48
49
50
module.exports = {
env: {
browser: false,
commonjs: true,
es2021: true,
'jest/globals': true,
},
extends: [
'airbnb-base',
'airbnb-typescript/base',
'plugin:jest/recommended',
'plugin:jsdoc/recommended',
'prettier',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 13,
project: './tsconfig.eslint.json',
},
plugins: ['jest', 'jsdoc', '@typescript-eslint', 'prettier'],
ignorePatterns: ['coverage/**/*', 'dist/**/*'],
rules: {
camelcase: 0,
'compat/compat': 0,
'no-restricted-imports': 'off',
'import/prefer-default-export': 'off',
'no-console': [
'error',
{
allow: ['warn', 'error', 'info'],
},
],
'@typescript-eslint/naming-convention': [
// TODO:remove custom convention in future versions
'warn',
{
selector: 'variable',
format: ['camelCase', 'PascalCase', 'snake_case', 'UPPER_CASE'],
},
],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.ts'],
},
},
},
};