-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
41 lines (41 loc) · 1.14 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 = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: ['airbnb-base', 'airbnb-typescript/base', 'prettier'],
rules: {
'import/no-extraneous-dependencies': 'off',
'import/no-absolute-path': 'error',
'@typescript-eslint/explicit-member-accessibility': [
'error',
{
accessibility: 'no-public', // default parameter for all
overrides: {
constructors: 'no-public',
methods: 'explicit', // enforce for methods only
properties: 'off', // turn off for properties
parameterProperties: 'off', // turn off for parameter properties
},
},
],
'class-methods-use-this': 'off',
'no-invalid-this': 'error',
},
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.js', 'dist', 'node_modules', '*.constants.ts', 'test', '*.config.js'],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
};