Use this chunk with react-app-rewired
It disables CRA warning about using files outside src
directory
Use this chunk with react-app-rewired
It disables CRA warning about using files outside src
directory
{ | |
parser: babel-eslint, | |
env: { | |
node: true | |
}, | |
rules: { | |
linebreak-style: 0, | |
import/no-extraneous-dependencies: 0, | |
import/no-unresolved: 0, | |
import/extensions: 0, |
{ | |
"env": { | |
"production": { | |
"presets": [ | |
["env", { | |
"targets": { | |
"node": ["6.10"] | |
}, | |
"modules": "commonjs" | |
}] |
/^(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i
Source: https://gist.github.com/olmokramer/82ccce673f86db7cda5e#gistcomment-2243862
const { BundleAnalyzerPlugin } = require(`webpack-bundle-analyzer`) | |
module.exports = config => { | |
config.plugins.push(new BundleAnalyzerPlugin()) | |
return config | |
} |
{ | |
parser: babel-eslint, | |
env: { | |
browser: true, | |
jest : true, | |
node : true, | |
es6: true | |
}, | |
parserOptions: { | |
ecmaFeatures: { |
const chalk = require('chalk'); | |
const marked = require('marked'); | |
const TerminalRenderer = require('marked-terminal'); | |
marked.setOptions({ | |
renderer: new TerminalRenderer({ | |
showSectionPrefix: false, | |
reflowText: true, | |
// Colors | |
code: chalk.yellow, |
{ | |
"name": "some", | |
"version": "1.0.0", | |
"bin": "./start.sh" | |
} |
import { echo } from 'erector'; | |
export default function* () { | |
yield echo('OK'); | |
} |
const path = require('path'); | |
const recreator = require('recreator'); | |
const webpack = require('webpack'); | |
const StyleLintPlugin = require('stylelint-webpack-plugin'); | |
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); | |
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const autoprefixer = require('autoprefixer'); |