Skip to content

Commit 41c05be

Browse files
committed
Add eslint config placeholders for:
- n/no-unpublished-require - n/no-unpublished-import
1 parent 4d91507 commit 41c05be

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.eslintrc.cjs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,15 @@ module.exports = {
103103
sourceType: 'commonjs'
104104
},
105105
rules: {
106-
'@typescript-eslint/no-var-requires': 'off'
106+
'@typescript-eslint/no-var-requires': 'off',
107+
108+
// Allow require devDependencies
109+
'n/no-unpublished-require': [
110+
'error',
111+
{
112+
allowModules: []
113+
}
114+
]
107115
}
108116
},
109117
{
@@ -127,7 +135,15 @@ module.exports = {
127135
rules: {
128136
// Allow Jest to assert on mocked unbound methods
129137
'@typescript-eslint/unbound-method': 'off',
130-
'jest/unbound-method': 'error'
138+
'jest/unbound-method': 'error',
139+
140+
// Allow import devDependencies
141+
'n/no-unpublished-import': [
142+
'error',
143+
{
144+
allowModules: []
145+
}
146+
]
131147
}
132148
}
133149
],

0 commit comments

Comments
 (0)