forked from udecode/plate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (44 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
35
36
37
38
39
40
41
42
43
44
module.exports = {
extends: ['@borealisgroup/eslint-config-ts', 'plugin:mdx/recommended'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/camelcase': 'off',
'no-alert': 'off',
'import/extensions': [
'error',
'never',
{
ts: 'never',
tsx: 'never',
js: 'never',
jsx: 'never',
},
],
'import/no-named-as-default-member': 'off',
'jest/no-export': 'off',
'jest/no-standalone-expect': 'off',
'react/jsx-filename-extension': [
'error',
{ extensions: ['.js', '.jsx', '.ts', '.tsx', 'mdx'] },
],
'mdx/no-unused-expressions': 'off',
},
overrides: [
{
files: '**/*.stories.tsx',
rules: {
// just for showing the code in addon-docs
'react-hooks/rules-of-hooks': 'off'
},
},
{
files: '**/*.mdx',
rules: {
'prettier/prettier': 'off',
'simple-import-sort/sort': 'off',
'import/order': ['error', { 'newlines-between': 'never' }],
},
},
]
};