generated from HackYourFuture-CPH/boilerplate-for-fp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
34 lines (34 loc) · 1.09 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
module.exports = {
extends: ['./node_modules/poetic/config/eslint/eslint-config.js'],
// Add custom rules here
rules: {
'arrow-parens': 'off',
quotes: 'off',
'no-unexpected-multiline': 'off',
'react/jsx-boolean-value': 'off',
'react/jsx-filename-extension': 'off',
'react/prefer-stateless-function': 'warn',
'react/prop-types': 'warn',
'import/prefer-default-export': 'off',
'@typescript-eslint/camelcase': 'warn',
'func-names': 'off',
'@typescript-eslint/no-var-requires': 'off',
'no-restricted-globals': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'no-use-before-define': 'off',
'consistent-return': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'import/no-unresolved': 'off',
'import/extensions': 'off',
'import/order': 'off',
'react/destructuring-assignment': 'off',
'react/state-in-constructor': 'off',
'react/no-access-state-in-setstate': 'off',
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: ['**/*.stories.js', '**/*.test.js'],
},
],
},
};