Skip to content

Commit

Permalink
fix(js): remove eslint errors
Browse files Browse the repository at this point in the history
- add autoprefixer as devdependency
  • Loading branch information
theetrain committed Aug 17, 2017
1 parent a606a92 commit 0c612f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions config/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
import path from 'path'

import resolve from 'rollup-plugin-node-resolve'
import nodeResolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs'

import babel from 'rollup-plugin-babel'

import postcss from 'rollup-plugin-postcss'
import postcssModules from 'postcss-modules'
import sass from 'node-sass'
import autoprefixer from 'autoprefixer' // eslint-disable-line import/no-extraneous-dependencies
import autoprefixer from 'autoprefixer'

const cssExportMap = {}

/* eslint-disable no-shadow */
const sassPreprocessor = (content, id) => new Promise((resolve) => {
const result = sass.renderSync({ file: id })
resolve({ code: result.css.toString() })
})
/* eslint-enable */

export default {
entry: path.resolve('./src/index.js'),
Expand All @@ -30,7 +28,7 @@ export default {
external: ['react', 'prop-types'],

plugins: [
resolve({
nodeResolve({
extensions: ['.js', '.jsx']
}),
commonjs({
Expand Down
4 changes: 2 additions & 2 deletions config/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const path = require('path')

const version = require('../package.json').version

const toggle = path => ( // eslint-disable-line no-shadow
process.env.NODE_ENV === 'production' ? undefined : path
const toggle = componentPath => (
process.env.NODE_ENV === 'production' ? undefined : componentPath
)

const compact = array => array.filter(element => element !== undefined)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"devDependencies": {
"@telusdigital/eslint-config": "^1.1.2",
"@telusdigital/redux-contentful": "^3.0.0",
"autoprefixer": "^7.1.2",
"babel-cli": "^6.24.1",
"babel-loader": "^7.1.1",
"babel-plugin-external-helpers": "^6.22.0",
Expand Down Expand Up @@ -110,7 +111,6 @@
"docs/components/Logo.svg",
"**.log",
"**/__snapshots__/**",

"docs/elements/**",
"icons/scripts/icons.js"
]
Expand Down

0 comments on commit 0c612f7

Please sign in to comment.