-
Notifications
You must be signed in to change notification settings - Fork 672
/
.eslintrc.js
44 lines (41 loc) · 1.01 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 = {
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
},
extends: ['react-app'],
plugins: ['@typescript-eslint'],
globals: {
__PATH_PREFIX__: true,
},
rules: {
'no-use-before-define': 'off',
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-redeclare': 'off',
// Ensure peerDependencies and dependencies are properly configured
'import/no-extraneous-dependencies': 'error',
// TypeScript checks this
'no-undef': 'off',
'no-lone-blocks': 'off',
'react/jsx-pascal-case': 'off', // needs a fix in @theme-ui/mdx
},
overrides: [
{
files: [
'packages/**/test/**/*.{ts,tsx,js,jsx}',
'packages/e2e/**/*.{ts,tsx}',
],
rules: {
'import/no-extraneous-dependencies': 'off',
'react/jsx-pascal-case': 'off',
},
},
],
}