-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
49 lines (44 loc) · 1.2 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
module.exports = {
env: {
es6: true,
node: true,
},
extends: ['plugin:@api3/eslint-plugin-commons/universal', 'plugin:@api3/eslint-plugin-commons/jest'],
parserOptions: {
project: ['./tsconfig.json', './tsconfig.eslint.json'],
},
rules: {
// TypeScript
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/ban-ts-ignore': 0,
'@typescript-eslint/ban-types': 0,
'@typescript-eslint/camelcase': 0,
// eslint-plugin-import
'import/namespace': [2, { allowComputed: true }],
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal', 'sibling', 'parent', 'index', 'object', 'type'],
pathGroups: [{ pattern: 'mock-utils', group: 'builtin', patternOptions: { matchBase: true, nocomment: true } }],
},
],
// ESLint
'no-console': 0,
'no-useless-escape': 0,
semi: 2,
'sort-imports': [
'error',
{
ignoreDeclarationSort: true,
},
],
// Jest
'jest/no-conditional-in-test': 0,
// Unicorn
'unicorn/prefer-string-replace-all': 0,
'unicorn/prefer-type-error': 0,
// Lodash
'lodash/prefer-lodash-typecheck': 0,
'lodash/prefer-noop': 0,
},
};