Skip to content

Commit fd7b869

Browse files
committed
chore: fix ESLint errors
Now ESLint is configured so it can run across the entire codebase without errors.
1 parent 00779b8 commit fd7b869

File tree

3 files changed

+26
-17
lines changed

3 files changed

+26
-17
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
**/node_modules
22
www/.cache/
33
www/public/
4+
lib

.eslintrc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ env:
88
browser: true
99
plugins:
1010
- jsx-a11y
11+
12+
overrides:
13+
- files: www/**/*
14+
env:
15+
es6: true
16+
- files: stories/**/*
17+
rules:
18+
no-console: off

rollup.config.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import nodeResolve from "rollup-plugin-node-resolve";
2-
import babel from "rollup-plugin-babel";
3-
import commonjs from "rollup-plugin-commonjs";
4-
import replace from "rollup-plugin-replace";
5-
import { sizeSnapshot } from "rollup-plugin-size-snapshot";
6-
import { terser } from "rollup-plugin-terser";
1+
import nodeResolve from 'rollup-plugin-node-resolve';
2+
import babel from 'rollup-plugin-babel';
3+
import commonjs from 'rollup-plugin-commonjs';
4+
import replace from 'rollup-plugin-replace';
5+
import { sizeSnapshot } from 'rollup-plugin-size-snapshot';
6+
import { terser } from 'rollup-plugin-terser';
77

8-
const input = "./src/umd.js";
9-
const name = "ReactTransitionGroup";
8+
const input = './src/umd.js';
9+
const name = 'ReactTransitionGroup';
1010
const globals = {
11-
react: "React",
12-
"react-dom": "ReactDOM"
11+
react: 'React',
12+
'react-dom': 'ReactDOM'
1313
};
1414

1515
const babelOptions = {
@@ -20,16 +20,16 @@ const babelOptions = {
2020
const commonjsOptions = {
2121
include: /node_modules/,
2222
namedExports: {
23-
"prop-types": ["object", "oneOfType", "element", "bool", "func"]
23+
'prop-types': ['object', 'oneOfType', 'element', 'bool', 'func']
2424
}
2525
};
2626

2727
export default [
2828
{
2929
input,
3030
output: {
31-
file: "./lib/dist/react-transition-group.js",
32-
format: "umd",
31+
file: './lib/dist/react-transition-group.js',
32+
format: 'umd',
3333
name,
3434
globals
3535
},
@@ -38,16 +38,16 @@ export default [
3838
nodeResolve(),
3939
babel(babelOptions),
4040
commonjs(commonjsOptions),
41-
replace({ "process.env.NODE_ENV": JSON.stringify("development") }),
41+
replace({ 'process.env.NODE_ENV': JSON.stringify('development') }),
4242
sizeSnapshot()
4343
]
4444
},
4545

4646
{
4747
input,
4848
output: {
49-
file: "./lib/dist/react-transition-group.min.js",
50-
format: "umd",
49+
file: './lib/dist/react-transition-group.min.js',
50+
format: 'umd',
5151
name,
5252
globals
5353
},
@@ -56,7 +56,7 @@ export default [
5656
nodeResolve(),
5757
babel(babelOptions),
5858
commonjs(commonjsOptions),
59-
replace({ "process.env.NODE_ENV": JSON.stringify("production") }),
59+
replace({ 'process.env.NODE_ENV': JSON.stringify('production') }),
6060
sizeSnapshot(),
6161
terser()
6262
]

0 commit comments

Comments
 (0)