mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
Don't use global
package in templates (#8281)
Don't use `global` package in templates Co-authored-by: Norbert de Langen <ndelangen@me.com>
This commit is contained in:
parent
39b8c804fb
commit
3065f8cb4c
@ -1,13 +1,25 @@
|
||||
const ignore = 0;
|
||||
|
||||
module.exports = {
|
||||
overrides: {
|
||||
files: '*/template/**',
|
||||
rules: {
|
||||
'import/no-unresolved': ignore,
|
||||
'import/no-extraneous-dependencies': ignore,
|
||||
'global-require': ignore,
|
||||
'react/react-in-jsx-scope': ignore,
|
||||
overrides: [
|
||||
{
|
||||
files: '*/template/**',
|
||||
env: {
|
||||
browser: true,
|
||||
},
|
||||
rules: {
|
||||
'react/no-this-in-sfc': ignore,
|
||||
'import/no-unresolved': ignore,
|
||||
'import/no-extraneous-dependencies': ignore,
|
||||
'global-require': ignore,
|
||||
'react/react-in-jsx-scope': ignore,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
files: 'REACT_NATIVE/template/**',
|
||||
env: {
|
||||
browser: false,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
@ -1,5 +1,3 @@
|
||||
import { document, console } from 'global';
|
||||
|
||||
export default {
|
||||
title: 'Demo',
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user