-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
27 lines (27 loc) · 1 KB
/
.eslintrc.cjs
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
/** @type {import('eslint').ESLint.ConfigData} */
module.exports = {
extends: [
'@boehringer-ingelheim/eslint-config/base/strict',
'@boehringer-ingelheim/eslint-config/react',
// NOTE: Prettier has to be the last one to work
'prettier',
],
plugins: ['react-refresh'],
rules: {
'sonarjs/cognitive-complexity': 'warn',
'sonarjs/no-collapsible-if': 'warn',
'sonarjs/no-duplicate-string': 'warn',
'sonarjs/no-identical-functions': 'warn',
'sonarjs/no-nested-switch': 'warn',
'sonarjs/no-nested-template-literals': 'warn',
'sonarjs/prefer-single-boolean-return': 'off',
'sonarjs/prefer-immediate-return': 'off',
// No error for wrong sorting
'perfectionist/sort-named-imports': 'warn',
'perfectionist/sort-object-types': 'warn',
'perfectionist/sort-objects': 'warn',
'perfectionist/sort-jsx-props': 'warn',
// https://github.com/vitejs/vite-plugin-react-swc#consistent-components-exports
'react-refresh/only-export-components': 'warn',
},
};