Skip to content

Commit

Permalink
Promote no-extraneous-dependencies to error level and make it pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnosphi committed Aug 18, 2017
1 parent c67ebdd commit cb92897
Show file tree
Hide file tree
Showing 18 changed files with 25 additions and 29 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,12 @@ module.exports = {
},
],
'import/no-extraneous-dependencies': [
warn,
error,
{
devDependencies: [
'examples/**',
'**/example/**',
'*.js',
'**/*.test.js',
'**/scripts/*.js',
'**/stories/*.js',
Expand Down
2 changes: 2 additions & 0 deletions addons/comments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"react-textarea-autosize": "^4.3.0"
},
"devDependencies": {
"@storybook/react": "^3.2.5",
"@storybook/addon-actions": "^3.2.0",
"@kadira/storybook-database-cloud": "*",
"@kadira/storybook-deployer": "*",
"git-url-parse": "^6.2.2",
Expand Down
2 changes: 0 additions & 2 deletions addons/comments/src/stories/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved */

import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
Expand Down
2 changes: 1 addition & 1 deletion addons/notes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"dependencies": {
"@storybook/addons": "^3.2.0",
"babel-runtime": "^6.23.0",
"prop-types": "^15.5.10",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"git-url-parse": "^6.2.2",
"prop-types": "^15.5.10",
"react": "^15.6.1",
"react-addons-test-utils": "^15.5.1",
"react-dom": "^15.6.1"
Expand Down
2 changes: 0 additions & 2 deletions addons/notes/src/register.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */

import React from 'react';
import PropTypes from 'prop-types';
import addons from '@storybook/addons';
Expand Down
5 changes: 5 additions & 0 deletions docs/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
settings: {
'import/core-modules': ['config'],
},
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */

import React, { PropTypes } from 'react';
import { TouchableNativeFeedback } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */

import React, { PropTypes } from 'react';
import { TouchableHighlight } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */

import React, { PropTypes } from 'react';
import { View } from 'react-native';
import style from './style';
Expand Down
2 changes: 0 additions & 2 deletions examples/crna-kitchen-sink/storybook/stories/Welcome/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */

import React, { PropTypes } from 'react';
import { View, Text } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */

import React, { PropTypes } from 'react';
import { TouchableNativeFeedback } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */

import React, { PropTypes } from 'react';
import { TouchableHighlight } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */

import React, { PropTypes } from 'react';
import { View } from 'react-native';
import style from './style';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */

import React, { PropTypes } from 'react';
import { View, Text } from 'react-native';

Expand Down
15 changes: 9 additions & 6 deletions lib/cli/generators/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
const ignore = 0;

module.exports = {
rules: {
'import/no-unresolved': ignore,
'import/no-extraneous-dependencies': ignore,
'import/extensions': ignore,
'global-require': ignore,
'no-console': ignore,
overrides: {
files: '*/template/**',
rules: {
'import/no-unresolved': ignore,
'import/no-extraneous-dependencies': ignore,
'import/extensions': ignore,
'global-require': ignore,
'no-console': ignore,
},
},
};
3 changes: 2 additions & 1 deletion lib/cli/generators/METEOR/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import latestVersion from 'latest-version';

const mergeDirs = require('merge-dirs').default;
const helpers = require('../../lib/helpers');
const path = require('path');
const fs = require('fs');
const JSON5 = require('json5');
const latestVersion = require('latest-version');

module.exports = Promise.all([
latestVersion('@storybook/react'),
Expand Down
1 change: 1 addition & 0 deletions lib/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"cross-spawn": "^5.0.1",
"jscodeshift": "^0.3.30",
"json5": "^0.5.1",
"latest-version": "^3.1.0",
"merge-dirs": "^0.2.1",
"opencollective": "^1.0.3",
"shelljs": "^0.7.8",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"jest-enzyme": "^3.6.1",
"lerna": "2.0.0",
"lint-staged": "^4.0.2",
"lodash": "^4.17.4",
"nodemon": "^1.11.0",
"npmlog": "^4.1.2",
"prettier": "^1.5.3",
Expand Down

0 comments on commit cb92897

Please sign in to comment.