Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
chore: Add React, moment and jQuery to eslint globals
Browse files Browse the repository at this point in the history
chore: Remove React and jQuery imports
  • Loading branch information
SofiaSousa committed Nov 5, 2018
1 parent 45c9e1b commit f62023c
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 19 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"document": true,
"localStorage": true,
"sessionStorage": true,
"XMLHttpRequest": true
"XMLHttpRequest": true,
"React": true,
"moment": true,
"jQuery": true
},
"plugins": [
"react",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* External dependencies
*/
import React from 'react';
import classnames from 'classnames';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* External Dependencies
*/
import React from 'react';
import { filter, pick } from 'lodash';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* External Dependencies
*/
import React from 'react';
import classnames from 'classnames';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* External dependencies
*/
import React from 'react';
import { filter, every } from 'lodash';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* External dependencies
*/
// import React from 'react';
import classnames from 'classnames';
import {
get,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* External dependencies
*/
// import React from 'react';
import classnames from 'classnames';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* External dependencies
*/
import { get, kebabCase, map, mapKeys, castArray } from 'lodash';
import jQuery from 'jquery';

import def, * as others from '@wordpress/blocks/build-module/api/parser?source=node_modules';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import React, { Component, Fragment } from 'react';
import { Component, Fragment } from 'react';
import { get } from 'lodash';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* WordPress dependencies
*/
import React from 'react';
import { MenuItem } from '@wordpress/components';
import { Fragment } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* External dependencies
*/
import React from 'react';
import {
filter,
find,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/**
* External dependencies
*/
import React from 'react';

/**
* WordPress Dependencies
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* External dependencies
*/
import React from 'react';
import classnames from 'classnames';
import { get } from 'lodash';

Expand Down
2 changes: 0 additions & 2 deletions src/js/scripts/editor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import * as oEditor from '@wordpress/editor';

import jQuery from 'jquery';
import tinymce from 'tinymce';

window.tinymce = window.tinymce || tinymce;
Expand Down

0 comments on commit f62023c

Please sign in to comment.