Skip to content

Commit

Permalink
Fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillku committed Jun 25, 2021
1 parent bbcd4fd commit ec67729
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 35 deletions.
10 changes: 1 addition & 9 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
{
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "always",
"tabWidth": 2,
"useTabs": false
}
{}
6 changes: 3 additions & 3 deletions .storybook/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ addParameters({
options: {
showPanel: true,
panelPosition: "right",
theme: themes.dark
}
theme: themes.dark,
},
});

// Plugins

configureActions({
depth: 20,
limit: 5
limit: 5,
});

addDecorator(withKnobs);
Expand Down
2 changes: 1 addition & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
addons: ["@storybook/preset-typescript", "@storybook/addon-docs"]
addons: ["@storybook/preset-typescript", "@storybook/addon-docs"],
};
8 changes: 4 additions & 4 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
const path = require('path');
const path = require("path");

module.exports = ({ config }) => {
config.resolve.alias = {
...config.resolve.alias,
'~/': path.join(__dirname, '/../src'),
"~/": path.join(__dirname, "/../src"),
};

config.module.rules.push({
test: /\.(ts|tsx)$/,
use: [
{
loader: require.resolve('ts-loader'),
loader: require.resolve("ts-loader"),
},
],
});

config.resolve.extensions.push('.ts', '.tsx');
config.resolve.extensions.push(".ts", ".tsx");
return config;
};
36 changes: 18 additions & 18 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import alias from '@rollup/plugin-alias';
import strip from '@rollup/plugin-strip';
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import alias from "@rollup/plugin-alias";
import strip from "@rollup/plugin-strip";

import babel from 'rollup-plugin-babel';
import typescript from 'rollup-plugin-typescript2';
import babel from "rollup-plugin-babel";
import typescript from "rollup-plugin-typescript2";

import { eslint } from 'rollup-plugin-eslint';
import { terser } from 'rollup-plugin-terser';
import { eslint } from "rollup-plugin-eslint";
import { terser } from "rollup-plugin-terser";

import pkg from './package.json';
import pkg from "./package.json";

const extensions = ['.ts', '.tsx', '.json'];
const extensions = [".ts", ".tsx", ".json"];

const isProduction = process.env.NODE_ENV === 'production';
const isProduction = process.env.NODE_ENV === "production";

export default {
input: 'src',
input: "src",
output: [
{
file: 'dist/common.js',
format: 'cjs',
file: "dist/common.js",
format: "cjs",
sourcemap: true,
},
{
file: 'dist/index.js',
format: 'esm',
file: "dist/index.js",
format: "esm",
sourcemap: true,
},
],
Expand All @@ -36,15 +36,15 @@ export default {
plugins: [
alias({
entries: {
'~': './src',
"~": "./src",
},
resolve: extensions,
}),
eslint(),
typescript({ rollupCommonJSResolveHack: true, clean: true }),
babel({
extensions,
exclude: 'node_modules/**',
exclude: "node_modules/**",
}),
resolve({
extensions,
Expand Down

0 comments on commit ec67729

Please sign in to comment.