diff --git a/.prettierrc.json b/.prettierrc.json index 122c66d..0967ef4 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,9 +1 @@ -{ - "printWidth": 80, - "semi": true, - "singleQuote": true, - "trailingComma": "all", - "arrowParens": "always", - "tabWidth": 2, - "useTabs": false -} +{} diff --git a/.storybook/config.js b/.storybook/config.js index ede78d9..fcca9e7 100644 --- a/.storybook/config.js +++ b/.storybook/config.js @@ -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); diff --git a/.storybook/main.js b/.storybook/main.js index 236bfee..6d2c349 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -1,3 +1,3 @@ module.exports = { - addons: ["@storybook/preset-typescript", "@storybook/addon-docs"] + addons: ["@storybook/preset-typescript", "@storybook/addon-docs"], }; diff --git a/.storybook/webpack.config.js b/.storybook/webpack.config.js index de14cf9..f478b14 100644 --- a/.storybook/webpack.config.js +++ b/.storybook/webpack.config.js @@ -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; }; diff --git a/rollup.config.js b/rollup.config.js index 510d6f9..87ff3c9 100755 --- a/rollup.config.js +++ b/rollup.config.js @@ -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, }, ], @@ -36,7 +36,7 @@ export default { plugins: [ alias({ entries: { - '~': './src', + "~": "./src", }, resolve: extensions, }), @@ -44,7 +44,7 @@ export default { typescript({ rollupCommonJSResolveHack: true, clean: true }), babel({ extensions, - exclude: 'node_modules/**', + exclude: "node_modules/**", }), resolve({ extensions,