forked from system-ui/theme-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (40 loc) · 965 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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',
},
overrides: [
{
files: [
'packages/**/test/**/*.{ts,tsx,js,jsx}',
'packages/e2e/**/*.{ts,tsx}',
],
rules: {
'import/no-extraneous-dependencies': 'off',
'react/jsx-pascal-case': 'off',
},
},
],
}