Skip to content

Commit

Permalink
Don't use global package in templates (#8281)
Browse files Browse the repository at this point in the history
Don't use `global` package in templates

Co-authored-by: Norbert de Langen <ndelangen@me.com>
  • Loading branch information
ndelangen authored and shilman committed Oct 7, 2019
1 parent 39b8c80 commit 3065f8c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
28 changes: 20 additions & 8 deletions lib/cli/generators/.eslintrc.js
@@ -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,
},
},
],
};
2 changes: 0 additions & 2 deletions lib/cli/generators/HTML/template/stories/index.stories.js
@@ -1,5 +1,3 @@
import { document, console } from 'global';

export default {
title: 'Demo',
};
Expand Down

0 comments on commit 3065f8c

Please sign in to comment.