Fix ESLint header/header error

This commit is contained in:
Yuya Ochiai
2018-05-31 00:23:57 +09:00
parent ba31b50404
commit 37b71476d2
61 changed files with 194 additions and 0 deletions

View File

@@ -7,6 +7,11 @@
"import/resolver": "node" "import/resolver": "node"
}, },
"rules": { "rules": {
"header/header": [2, "line", [
" Copyright (c) 2015-2016 Yuya Ochiai",
" Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.",
" See LICENSE.txt for license information."
]],
"import/no-commonjs": 2, "import/no-commonjs": 2,
"indent": [2, 2, {"SwitchCase": 0}], "indent": [2, 2, {"SwitchCase": 0}],
"no-console": 0, "no-console": 0,

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
const buildConfig = require('../src/common/config/buildConfig'); const buildConfig = require('../src/common/config/buildConfig');
function validateBuildConfig(config) { function validateBuildConfig(config) {

View File

@@ -1,3 +1,7 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/* eslint-disable no-process-exit */ /* eslint-disable no-process-exit */
const {spawn} = require('child_process'); const {spawn} = require('child_process');

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
const spawnSync = require('child_process').spawnSync; const spawnSync = require('child_process').spawnSync;

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
const webpack = require('webpack'); const webpack = require('webpack');
const electron = require('electron-connect').server.create({path: 'src'}); const electron = require('electron-connect').server.create({path: 'src'});

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import {Alert} from 'react-bootstrap'; import {Alert} from 'react-bootstrap';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react'; import React from 'react';
import {storiesOf} from '@storybook/react'; import {storiesOf} from '@storybook/react';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import {Button, Modal} from 'react-bootstrap'; import {Button, Modal} from 'react-bootstrap';

View File

@@ -1,3 +1,7 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// ErrorCode: https://code.google.com/p/chromium/codesearch#chromium/src/net/base/net_error_list.h // ErrorCode: https://code.google.com/p/chromium/codesearch#chromium/src/net/base/net_error_list.h
import React from 'react'; import React from 'react';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import {findDOMNode} from 'react-dom'; import {findDOMNode} from 'react-dom';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import url from 'url'; import url from 'url';
import React from 'react'; import React from 'react';

View File

@@ -1,5 +1,10 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/* eslint-disable react/no-set-state */ /* eslint-disable react/no-set-state */
// setState() is necessary for this component // setState() is necessary for this component
import url from 'url'; import url from 'url';
import React from 'react'; import React from 'react';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import {Modal, Button, FormGroup, FormControl, ControlLabel, HelpBlock} from 'react-bootstrap'; import {Modal, Button, FormGroup, FormControl, ControlLabel, HelpBlock} from 'react-bootstrap';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import {Button, Glyphicon, Popover} from 'react-bootstrap'; import {Button, Glyphicon, Popover} from 'react-bootstrap';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import {Modal} from 'react-bootstrap'; import {Modal} from 'react-bootstrap';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import createReactClass from 'create-react-class'; import createReactClass from 'create-react-class';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import {Glyphicon, Nav, NavItem, Overlay} from 'react-bootstrap'; import {Glyphicon, Nav, NavItem, Overlay} from 'react-bootstrap';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import createReactClass from 'create-react-class'; import createReactClass from 'create-react-class';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {remote} from 'electron'; import {remote} from 'electron';
import settings from '../../common/settings'; import settings from '../../common/settings';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
import './css/index.css'; import './css/index.css';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
export function createDataURL(text) { export function createDataURL(text) {

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {ipcRenderer} from 'electron'; import {ipcRenderer} from 'electron';
import electronContextMenu from 'electron-context-menu'; import electronContextMenu from 'electron-context-menu';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
const OriginalNotification = Notification; const OriginalNotification = Notification;

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
import {remote} from 'electron'; import {remote} from 'electron';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
import {ipcRenderer, webFrame} from 'electron'; import {ipcRenderer, webFrame} from 'electron';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import fs from 'fs'; import fs from 'fs';
export default class JsonFileManager { export default class JsonFileManager {

View File

@@ -1,3 +1,7 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// For detailed guides, please refer to https://docs.mattermost.com/deployment/desktop-app-deployment.html // For detailed guides, please refer to https://docs.mattermost.com/deployment/desktop-app-deployment.html
/** /**

View File

@@ -1,3 +1,7 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/** /**
* Default user preferences. End-users can change these parameters by editing config.json * Default user preferences. End-users can change these parameters by editing config.json
* @param {number} version - Scheme version. (Not application version) * @param {number} version - Scheme version. (Not application version)

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import defaultPreferences from './defaultPreferences'; import defaultPreferences from './defaultPreferences';
const pastDefaultPreferences = { const pastDefaultPreferences = {

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import pastDefaultPreferences from './pastDefaultPreferences'; import pastDefaultPreferences from './pastDefaultPreferences';
function deepCopy(object) { function deepCopy(object) {

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import deepmerge from 'deepmerge'; import deepmerge from 'deepmerge';
export default function deepMergeProxy(x, y, options) { export default function deepMergeProxy(x, y, options) {

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
import os from 'os'; import os from 'os';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
import fs from 'fs'; import fs from 'fs';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
import os from 'os'; import os from 'os';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import JsonFileManager from '../common/JsonFileManager'; import JsonFileManager from '../common/JsonFileManager';
export default class AppStateManager extends JsonFileManager { export default class AppStateManager extends JsonFileManager {

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {spawn} from 'child_process'; import {spawn} from 'child_process';
import fs from 'fs'; import fs from 'fs';
import os from 'os'; import os from 'os';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import fs from 'fs'; import fs from 'fs';
import utils from '../utils/util'; import utils from '../utils/util';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
import EventEmitter from 'events'; import EventEmitter from 'events';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
import path from 'path'; import path from 'path';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
import fs from 'fs'; import fs from 'fs';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {app} from 'electron'; import {app} from 'electron';
function flushCookiesStore(session) { function flushCookiesStore(session) {

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import fs from 'fs'; import fs from 'fs';
import path from 'path'; import path from 'path';
import zlib from 'zlib'; import zlib from 'zlib';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import fs from 'fs'; import fs from 'fs';
import path from 'path'; import path from 'path';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
import {app, dialog, Menu, shell} from 'electron'; import {app, dialog, Menu, shell} from 'electron';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
import {app, Menu} from 'electron'; import {app, Menu} from 'electron';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {URL} from 'url'; import {URL} from 'url';
import {ipcMain} from 'electron'; import {ipcMain} from 'electron';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import AutoLaunch from 'auto-launch'; import AutoLaunch from 'auto-launch';
import {app} from 'electron'; import {app} from 'electron';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import url from 'url'; import url from 'url';
function getDomain(inputURL) { function getDomain(inputURL) {

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
const fs = require('fs'); const fs = require('fs');

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
const fs = require('fs'); const fs = require('fs');

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
const fs = require('fs'); const fs = require('fs');

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
const fs = require('fs'); const fs = require('fs');

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import fs from 'fs'; import fs from 'fs';
import path from 'path'; import path from 'path';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
'use strict'; 'use strict';
const path = require('path'); const path = require('path');

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import settings from '../../src/common/settings'; import settings from '../../src/common/settings';
import buildConfig from '../../src/common/config/buildConfig'; import buildConfig from '../../src/common/config/buildConfig';
import defaultPreferences from '../../src/common/config/defaultPreferences'; import defaultPreferences from '../../src/common/config/defaultPreferences';

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import path from 'path'; import path from 'path';
import SpellChecker from '../../src/main/SpellChecker'; import SpellChecker from '../../src/main/SpellChecker';

View File

@@ -1,3 +1,7 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/* eslint-disable import/no-commonjs */ /* eslint-disable import/no-commonjs */
'use strict'; 'use strict';

View File

@@ -1,3 +1,7 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/* eslint-disable import/no-commonjs */ /* eslint-disable import/no-commonjs */
'use strict'; 'use strict';

View File

@@ -1,3 +1,7 @@
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/* eslint-disable import/no-commonjs */ /* eslint-disable import/no-commonjs */
'use strict'; 'use strict';