forked from breatheco-de/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
28 lines (28 loc) · 849 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
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ['plugin:react/recommended', 'plugin:@next/next/recommended', 'airbnb', 'plugin:storybook/recommended'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['react', 'prettier'],
rules: {
'react/react-in-jsx-scope': 'off',
'react/jsx-props-no-spreading': 'off',
'no-console': 'off',
'max-len': 'off',
'object-curly-newline': 'off',
'spaced-comment': 'off',
'import/prefer-default-export': 'off',
'linebreak-style': ['error', process.platform === 'win32' ? 'windows' : 'unix'],
'react/jsx-no-useless-fragment': 'off',
'default-param-last': 'off',
},
ignorePatterns: ['src/__tests__/*', 'cypress', 'src/stories/**/*.jsx', 'src/stories/**/*.js'],
};