-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
29 lines (29 loc) · 848 Bytes
/
.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
module.exports = {
parser: '@typescript-eslint/parser',
extends: '@wagtail/eslint-config-wagtail',
globals: {
window: true,
document: true,
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
'react/function-component-definition': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'react/jsx-filename-extension': [1, { extensions: ['.jsx', '.tsx'] }],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
// ESlint default behaviour ignores file/folders starting with "."
// https://github.com/eslint/eslint/issues/10341
ignorePatterns: ['!.*', 'node_modules', 'dist'],
};