-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
27 lines (27 loc) · 894 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
module.exports = {
extends: ['airbnb', 'airbnb-typescript'],
rules: {
// A temporary hack related to IDE not resolving correct package.json
'import/no-extraneous-dependencies': 'off',
'react/jsx-props-no-spreading': 'off',
'react/require-default-props': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'react/button-has-type': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'prefer-destructuring': 'warn',
'react/no-this-in-sfc': 'off',
'no-plusplus': 'off',
'no-console': 'off',
'object-curly-newline': 'off',
'max-len': ['error', { code: 250 }],
'operator-linebreak': 'warn',
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.json',
tsconfigRootDir: __dirname,
createDefaultProgram: true,
},
};