Skip to content

Commit

Permalink
chore: fix ESLint errors
Browse files Browse the repository at this point in the history
Now ESLint is configured so it can run across the entire codebase
without errors.
  • Loading branch information
paxaxel223 committed Mar 22, 2019
1 parent 8c66a72 commit 2cf91da
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/node_modules
www/.cache/
www/public/
lib
8 changes: 8 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ env:
browser: true
plugins:
- jsx-a11y

overrides:
- files: www/**/*
env:
es6: true
- files: stories/**/*
rules:
no-console: off
34 changes: 17 additions & 17 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import nodeResolve from "rollup-plugin-node-resolve";
import babel from "rollup-plugin-babel";
import commonjs from "rollup-plugin-commonjs";
import replace from "rollup-plugin-replace";
import { sizeSnapshot } from "rollup-plugin-size-snapshot";
import { terser } from "rollup-plugin-terser";
import nodeResolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import commonjs from 'rollup-plugin-commonjs';
import replace from 'rollup-plugin-replace';
import { sizeSnapshot } from 'rollup-plugin-size-snapshot';
import { terser } from 'rollup-plugin-terser';

const input = "./src/umd.js";
const name = "ReactTransitionGroup";
const input = './src/umd.js';
const name = 'ReactTransitionGroup';
const globals = {
react: "React",
"react-dom": "ReactDOM"
react: 'React',
'react-dom': 'ReactDOM'
};

const babelOptions = {
Expand All @@ -20,16 +20,16 @@ const babelOptions = {
const commonjsOptions = {
include: /node_modules/,
namedExports: {
"prop-types": ["object", "oneOfType", "element", "bool", "func"]
'prop-types': ['object', 'oneOfType', 'element', 'bool', 'func']
}
};

export default [
{
input,
output: {
file: "./lib/dist/react-transition-group.js",
format: "umd",
file: './lib/dist/react-transition-group.js',
format: 'umd',
name,
globals
},
Expand All @@ -38,16 +38,16 @@ export default [
nodeResolve(),
babel(babelOptions),
commonjs(commonjsOptions),
replace({ "process.env.NODE_ENV": JSON.stringify("development") }),
replace({ 'process.env.NODE_ENV': JSON.stringify('development') }),
sizeSnapshot()
]
},

{
input,
output: {
file: "./lib/dist/react-transition-group.min.js",
format: "umd",
file: './lib/dist/react-transition-group.min.js',
format: 'umd',
name,
globals
},
Expand All @@ -56,7 +56,7 @@ export default [
nodeResolve(),
babel(babelOptions),
commonjs(commonjsOptions),
replace({ "process.env.NODE_ENV": JSON.stringify("production") }),
replace({ 'process.env.NODE_ENV': JSON.stringify('production') }),
sizeSnapshot(),
terser()
]
Expand Down

0 comments on commit 2cf91da

Please sign in to comment.