-
Notifications
You must be signed in to change notification settings - Fork 19
/
.eslintrc.js
36 lines (36 loc) · 1.29 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
module.exports = {
extends: ['airbnb', 'airbnb-typescript', 'plugin:eslint-comments/recommended', 'prettier'],
parserOptions: {
project: ['./tsconfig.json']
},
plugins: ['import', 'prettier', 'promise'],
rules: {
'no-console': 'off',
'no-restricted-syntax': ['error', 'LabeledStatement', 'WithStatement'],
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx', '.tsx'] }],
'no-underscore-dangle': 'off',
'no-await-in-loop': 'off',
'no-continue': 'off',
'no-plusplus': 'off',
'guard-for-in': 'off',
'max-classes-per-file': 'off',
'import/prefer-default-export': 'off',
'react/function-component-definition': 'off',
'react/require-default-props': 'off'
},
overrides: [
{
files: ['**/*.ts', 'packages/*/src/**/*.tsx', 'packages/site/newsletters/**/*.tsx'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['plugin:@typescript-eslint/recommended', 'plugin:import/typescript'],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/ban-ts-comment': 1,
'@typescript-eslint/no-empty-interface': 0,
'@typescript-eslint/lines-between-class-members': 0
}
}
]
};