-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
55 lines (54 loc) · 1.82 KB
/
index.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
51
52
53
54
55
// eslint-disable-next-line @typescript-eslint/no-var-requires
var prettierConfig = require('@bedandbreakfasteu/prettier-config');
module.exports = {
ignorePatterns: ['lib/**/*.js', 'dist/**/*.js', 'node_modules'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import', 'yaml', 'prettier'],
extends: [
'airbnb-base',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:import/errors',
'plugin:import/typescript',
'plugin:import/warnings',
'plugin:yaml/recommended',
'plugin:prettier/recommended',
],
rules: {
semi: [2, 'always'],
curly: [2, 'all'],
'prettier/prettier': [2, prettierConfig],
'lines-between-class-members': [2, 'always', { exceptAfterSingleLine: true }],
'class-methods-use-this': 0,
'import/extensions': ['error', 'never'],
'import/prefer-default-export': 0,
'import/no-default-export': 2,
'import/no-extraneous-dependencies': 0,
'no-shadow': 0,
'@typescript-eslint/no-unused-vars': [
1,
{
vars: 'all',
args: 'all',
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error'],
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: {
alwaysTryTypes: true,
},
},
},
};