Skip to content

Commit 9dfccb7

Browse files
author
Pooya Parsa
committed
ESLint
1 parent 2ac11a3 commit 9dfccb7

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

build/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ module.exports = {
1919
cssModules: {
2020
generateScopedName: '[name]__[local]'
2121
},
22-
css(style, styles, compiler){
23-
fs.writeFileSync(path.resolve(dist, `${name}.css`), new CleanCSS().minify(style).styles)
22+
css(style) {
23+
fs.writeFileSync(path.resolve(dist, `${name}.css`), new CleanCSS().minify(style).styles);
2424
}
2525
}),
2626
buble(),

build/rollup.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
const path = require('path');
12
const {rollup} = require('rollup');
23
const config = require('./rollup.config');
3-
const path = require('path');
44

55
const base = path.resolve(__dirname, '..');
66
const dist = path.resolve(base, 'dist');
77

88
rollup(config).then(bundle => {
9-
109
bundle.write({
1110
format: 'cjs',
1211
dest: path.resolve(dist, config.moduleName + '.common.js'),
@@ -25,5 +24,4 @@ rollup(config).then(bundle => {
2524
dest: path.resolve(dist, config.moduleName + '.js'),
2625
sourceMap: true
2726
}).catch(console.error);
28-
29-
}).catch(console.error);
27+
}).catch(console.error);

build/webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require('path');
22
const Webpack = require('webpack');
33

4-
module.exports = function conf(env) {
4+
module.exports = function (env) {
55
const config = {
66
plugins: []
77
};
@@ -35,7 +35,7 @@ module.exports = function conf(env) {
3535
};
3636

3737
// Basic output config
38-
const dot = (val) => val ? ('.' + val) : '';
38+
const dot = val => val ? ('.' + val) : '';
3939
config.output = {
4040
path: path.resolve(__dirname, '../dist'),
4141
filename: `[name]${dot(env.target)}${dot(env.libraryTarget)}.js`
@@ -85,4 +85,4 @@ module.exports = function conf(env) {
8585
}
8686

8787
return config;
88-
};
88+
};

0 commit comments

Comments
 (0)