mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-19 05:02:40 +08:00
Raise `import/no-unresolved` and `import/extensions` to error level everywhere except `docs`
19 lines
288 B
JavaScript
19 lines
288 B
JavaScript
const warn = 1;
|
|
|
|
module.exports = {
|
|
settings: {
|
|
'import/core-modules': ['config'],
|
|
},
|
|
rules: {
|
|
'import/no-unresolved': warn,
|
|
'import/extensions': [
|
|
// because of highlight.js
|
|
warn,
|
|
{
|
|
js: 'never',
|
|
json: 'always',
|
|
},
|
|
],
|
|
},
|
|
};
|