Browse Source

Disable annoying eslint rule

master
meriadec 7 years ago
parent
commit
1b2c29dc34
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 1
      .eslintrc
  2. 2
      src/components/Wrapper.js
  3. 2
      src/main/app.js
  4. 2
      src/main/bridge.js
  5. 2
      src/renderer/index.js
  6. 2
      src/renderer/initEvents.js
  7. 2
      webpack/internals.config.js

1
.eslintrc

@ -18,6 +18,7 @@
"no-shadow": 0,
"no-underscore-dangle": 0,
"no-void": 0,
"import/no-extraneous-dependencies": 0,
"react/jsx-curly-brace-presence": 0,
"react/jsx-filename-extension": 0,
"react/prefer-stateless-function": 0,

2
src/components/Wrapper.js

@ -1,7 +1,7 @@
// @flow
import React, { PureComponent } from 'react'
import { ipcRenderer } from 'electron' // eslint-disable-line import/no-extraneous-dependencies
import { ipcRenderer } from 'electron'
import { Route } from 'react-router'
import { translate } from 'react-i18next'

2
src/main/app.js

@ -1,6 +1,6 @@
// @flow
import { app, ipcMain, BrowserWindow } from 'electron' // eslint-disable-line import/no-extraneous-dependencies
import { app, ipcMain, BrowserWindow } from 'electron'
// necessary to prevent win from being garbage collected
let mainWindow

2
src/main/bridge.js

@ -1,7 +1,7 @@
// @flow
import { fork } from 'child_process'
import { ipcMain } from 'electron' // eslint-disable-line import/no-extraneous-dependencies
import { ipcMain } from 'electron'
import objectPath from 'object-path'
import { resolve } from 'path'

2
src/renderer/index.js

@ -2,7 +2,7 @@
import React from 'react'
import { render } from 'react-dom'
import { AppContainer } from 'react-hot-loader' // eslint-disable-line import/no-extraneous-dependencies
import { AppContainer } from 'react-hot-loader'
import createHistory from 'history/createHashHistory'
import createStore from 'renderer/createStore'

2
src/renderer/initEvents.js

@ -1,6 +1,6 @@
// @flow
import { ipcRenderer } from 'electron' // eslint-disable-line import/no-extraneous-dependencies
import { ipcRenderer } from 'electron'
import objectPath from 'object-path'
import { devicesUpdate, deviceAdd, deviceRemove } from 'actions/devices'

2
webpack/internals.config.js

@ -1,6 +1,6 @@
const path = require('path')
const fs = require('fs')
const webpackMain = require('electron-webpack/webpack.main.config') // eslint-disable-line import/no-extraneous-dependencies
const webpackMain = require('electron-webpack/webpack.main.config')
const define = require('./define')

Loading…
Cancel
Save