* remove npm run lint warnings, fixes #717

* Update link for Code of Conduct in CONTRIBUTING.md
This commit is contained in:
cdncat 2018-10-05 15:35:31 -04:00 committed by Cassie Tarakajian
parent cf5cb1f6e9
commit e83654f6ad
10 changed files with 16 additions and 13 deletions

View file

@ -16,7 +16,7 @@ Here are links to all the sections in this document:
## Code of Conduct ## Code of Conduct
Please follow the guidelines mentioned at [CODE OF CONDUCT.md](https://github.com/processing/p5.js-web-editor/blob/master/CODE_OF_CONDUCT.md#p5js-code-of-conduct). Please follow the guidelines mentioned at [CODE OF CONDUCT.md](https://github.com/processing/p5.js-web-editor/blob/master/.github/CODE_OF_CONDUCT.md).
## How Can I Contribute? ## How Can I Contribute?

View file

@ -10,7 +10,6 @@ import { setUnsavedChanges,
resetJustOpenedProject, resetJustOpenedProject,
showErrorModal } from './ide'; showErrorModal } from './ide';
import { clearState, saveState } from '../../../persistState'; import { clearState, saveState } from '../../../persistState';
import { redirectToProtocol, protocols } from '../../../components/forceProtocol';
const __process = (typeof global !== 'undefined' ? global : window).process; const __process = (typeof global !== 'undefined' ? global : window).process;
const ROOT_URL = __process.env.API_URL; const ROOT_URL = __process.env.API_URL;

View file

@ -3,7 +3,10 @@ import React from 'react';
import InlineSVG from 'react-inlinesvg'; import InlineSVG from 'react-inlinesvg';
import classNames from 'classnames'; import classNames from 'classnames';
import { Console as ConsoleFeed } from 'console-feed'; import { Console as ConsoleFeed } from 'console-feed';
import { CONSOLE_FEED_WITHOUT_ICONS, CONSOLE_FEED_LIGHT_STYLES, CONSOLE_FEED_DARK_STYLES, CONSOLE_FEED_CONTRAST_STYLES } from '../../../styles/components/_console-feed.scss'; import {
CONSOLE_FEED_WITHOUT_ICONS, CONSOLE_FEED_LIGHT_STYLES,
CONSOLE_FEED_DARK_STYLES, CONSOLE_FEED_CONTRAST_STYLES
} from '../../../styles/components/_console-feed.scss';
import warnLightUrl from '../../../images/console-warn-light.svg'; import warnLightUrl from '../../../images/console-warn-light.svg';
import warnDarkUrl from '../../../images/console-warn-dark.svg'; import warnDarkUrl from '../../../images/console-warn-dark.svg';
import errorLightUrl from '../../../images/console-error-light.svg'; import errorLightUrl from '../../../images/console-error-light.svg';
@ -115,7 +118,12 @@ class Console extends React.Component {
return ( return (
<div key={consoleEvent.id} className={`preview-console__message preview-console__message--${method}`}> <div key={consoleEvent.id} className={`preview-console__message preview-console__message--${method}`}>
{ times > 1 && { times > 1 &&
<div className="preview-console__logged-times" style={{ fontSize: this.props.fontSize, borderRadius: this.props.fontSize / 2 }}>{times}</div> <div
className="preview-console__logged-times"
style={{ fontSize: this.props.fontSize, borderRadius: this.props.fontSize / 2 }}
>
{times}
</div>
} }
<ConsoleFeed <ConsoleFeed
styles={this.getConsoleFeedStyle(theme, times)} styles={this.getConsoleFeedStyle(theme, times)}

View file

@ -10,7 +10,6 @@ import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
const plusUrl = require('../../../images/plus.svg'); const plusUrl = require('../../../images/plus.svg');
const minusUrl = require('../../../images/minus.svg'); const minusUrl = require('../../../images/minus.svg');
const beepUrl = require('../../../sounds/audioAlert.mp3'); const beepUrl = require('../../../sounds/audioAlert.mp3');
const infoUrl = require('../../../images/information.svg');
class Preferences extends React.Component { class Preferences extends React.Component {
constructor(props) { constructor(props) {

View file

@ -1,6 +1,5 @@
import generate from 'project-name-generator'; import generate from 'project-name-generator';
import * as ActionTypes from '../../../constants'; import * as ActionTypes from '../../../constants';
import isSecurePage from '../../../utils/isSecurePage';
const initialState = () => { const initialState = () => {
const generatedString = generate({ words: 2 }).spaced; const generatedString = generate({ words: 2 }).spaced;

View file

@ -13,8 +13,6 @@ import AccountView from './modules/User/pages/AccountView';
import { getUser } from './modules/User/actions'; import { getUser } from './modules/User/actions';
import { stopSketch } from './modules/IDE/actions/ide'; import { stopSketch } from './modules/IDE/actions/ide';
const __process = (typeof global !== 'undefined' ? global : window).process;
const checkAuth = (store) => { const checkAuth = (store) => {
store.dispatch(getUser()); store.dispatch(getUser());
}; };

View file

@ -3,7 +3,6 @@ import Q from 'q';
import mongoose from 'mongoose'; import mongoose from 'mongoose';
import objectID from 'bson-objectid'; import objectID from 'bson-objectid';
import shortid from 'shortid'; import shortid from 'shortid';
import { URL } from 'url';
import eachSeries from 'async/eachSeries'; import eachSeries from 'async/eachSeries';
import User from '../models/user'; import User from '../models/user';
@ -28,7 +27,9 @@ const defaultHTML =
<!-- Generative Design Dependencies here --> <!-- Generative Design Dependencies here -->
<!-- GG Bundled --> <!-- GG Bundled -->
<script src="https://rawgit.com/generative-design/Code-Package-p5.js/${branchName}/libraries/gg-dep-bundle/gg-dep-bundle.js"></script> <script src=
"https://rawgit.com/generative-design/Code-Package-p5.js/${branchName}/libraries/gg-dep-bundle/gg-dep-bundle.js">
</script>
<!-- Opentype --> <!-- Opentype -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/opentype.js/0.7.3/opentype.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/opentype.js/0.7.3/opentype.min.js"></script>

View file

@ -4,7 +4,6 @@ import mongoose from 'mongoose';
import objectID from 'bson-objectid'; import objectID from 'bson-objectid';
import shortid from 'shortid'; import shortid from 'shortid';
import eachSeries from 'async/eachSeries'; import eachSeries from 'async/eachSeries';
import { URL } from 'url';
import User from '../models/user'; import User from '../models/user';
import Project from '../models/project'; import Project from '../models/project';

View file

@ -7,7 +7,6 @@ import session from 'express-session';
import connectMongo from 'connect-mongo'; import connectMongo from 'connect-mongo';
import passport from 'passport'; import passport from 'passport';
import path from 'path'; import path from 'path';
import { URL } from 'url';
import basicAuth from 'express-basic-auth'; import basicAuth from 'express-basic-auth';
// Webpack Requirements // Webpack Requirements

View file

@ -40,12 +40,13 @@ export function get404Sketch(callback) {
// Add 404 html and position canvas // Add 404 html and position canvas
const html = htmlFile.split('</head>'); const html = htmlFile.split('</head>');
const metaDescription = 'A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners.'; // eslint-disable-line
html[0] = ` html[0] = `
${html[0]} ${html[0]}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="p5.js, p5.js web editor, web editor, processing, code editor" /> <meta name="keywords" content="p5.js, p5.js web editor, web editor, processing, code editor" />
<meta name="description" content="A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners." /> <meta name="description" content="${metaDescription}" />
<title>404 Page Not Found - p5.js Web Editor</title> <title>404 Page Not Found - p5.js Web Editor</title>
<style> <style>
.header { .header {