Skip to content

Commit

Permalink
fix(rn): web display warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Godefroy Ponsinet <godefroy.ponsinet@outlook.com>
  • Loading branch information
90dy committed Aug 22, 2018
1 parent 6ae6b1b commit d18c696
Show file tree
Hide file tree
Showing 7 changed files with 513 additions and 511 deletions.
3 changes: 2 additions & 1 deletion client/react-native/.babelrc
@@ -1,5 +1,5 @@
{
"presets": ["react-native"],
"presets": ["react-native", "react-app"],
"plugins": [
"@babel/plugin-proposal-function-bind",

Expand All @@ -20,5 +20,6 @@
"@babel/plugin-syntax-import-meta",
["@babel/plugin-proposal-class-properties", { "loose": false }],
"@babel/plugin-proposal-json-strings"

]
}
3 changes: 2 additions & 1 deletion client/react-native/.eslintrc
Expand Up @@ -3,7 +3,8 @@
"extends": [
"eslint:recommended",
"standard",
"standard-react"
"standard-react",
"react-app"
],
"plugins": [
"jsx-a11y",
Expand Down
Empty file.
4 changes: 2 additions & 2 deletions client/react-native/package.json
Expand Up @@ -38,12 +38,12 @@
"babel-plugin-react-native-web": "^0.8.9",
"babel-plugin-relay": "^1.6.2",
"babel-plugin-transform-export-extensions": "^6.22.0",
"babel-preset-react-app": "4.0.0-next.3e165448",
"babel-preset-react-app": "^4.0.0-next.3e165448",
"babel-preset-react-native": "^5.0.2",
"eslint": "^5.2.0",
"eslint-config-prettier": "^3.0.1",
"eslint-config-prettier-standard": "^2.0.0",
"eslint-config-react-app": "^2.1.0",
"eslint-config-react-app": "^3.0.0-next.3e165448",
"eslint-config-standard": "^11.0.0",
"eslint-config-standard-react": "^6.0.0",
"eslint-config-typescript": "^1.1.0",
Expand Down
6 changes: 1 addition & 5 deletions client/react-native/web/config/paths.js
@@ -1,4 +1,3 @@
'use strict'

const path = require('path')
const fs = require('fs')
Expand Down Expand Up @@ -57,10 +56,7 @@ module.exports = {

let checkForMonorepo = true

module.exports.srcPaths = [
module.exports.appSrc + '/web',
module.exports.appSrc + '/common'
]
module.exports.srcPaths = [module.exports.appSrc + '/common']

module.exports.useYarn = fs.existsSync(
path.join(module.exports.appPath, 'yarn.lock')
Expand Down
10 changes: 8 additions & 2 deletions client/react-native/web/config/webpack.config.dev.js
@@ -1,8 +1,7 @@
'use strict'

const autoprefixer = require('autoprefixer')
const path = require('path')
const webpack = require('webpack')
const eslintFormatter = require('react-dev-utils/eslintFormatter')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin')
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin')
Expand Down Expand Up @@ -166,6 +165,13 @@ module.exports = {
enforce: 'pre',
use: [
{
options: {
formatter: eslintFormatter,
eslintPath: require.resolve('eslint'),
baseConfig: {
extends: [require.resolve('eslint-config-react-app')]
}
},
loader: require.resolve('eslint-loader')
}
],
Expand Down

0 comments on commit d18c696

Please sign in to comment.