-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
30 lines (27 loc) · 1.19 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
module.exports = {
/**
* @link {import('./packages/eslint/src/default.ts')}
*/
root: true,
extends: '@nexpo/eslint-config',
overrides: [
{
// For packages/screens, prefer both default (for Next) and named (for Native) exports
files: ['packages/screens/**/*.tsx'],
rules: {
// Alternate to find both
// 'import/prefer-default-export': 'error', // default
'import/no-default-export': 'error', // named
'react/display-name': 1,
},
},
{
files: ['apps/nexpo/src/pages/**/*.tsx'],
rules: {
// Helpful reminder to always have a default export from Next.js pages
'import/prefer-default-export': 'error', // default
'react/display-name': 1,
},
}
]
}