Skip to content

Commit

Permalink
chore: 🔧 use common config files of bubkoo
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Aug 11, 2022
1 parent 0ca8673 commit 8d5f76a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 80 deletions.
43 changes: 1 addition & 42 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,44 +1,3 @@
{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"eslint-comments",
"import",
"prettier",
"promise"
],
"extends": [
"airbnb-base",
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:promise/recommended",
"plugin:prettier/recommended"
],
"env": {
"es6": true,
"node": true,
"commonjs": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"requireConfigFile": false
},
"rules": {
"no-console":[2, { "allow": ["warn", "error"] }],
"no-nested-ternary": 0,
"import/extensions": 0,
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"no-param-reassign": [2, { "props": false }],
"prefer-destructuring": [2, {"object": true, "array": false}],
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"no-prototype-builtins": 0
}
"extends": "@bubkoo/eslint-config"
}
18 changes: 3 additions & 15 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import { terser } from 'rollup-plugin-terser'
import commonjs from '@rollup/plugin-commonjs'
import filesize from 'rollup-plugin-filesize'
import resolve from '@rollup/plugin-node-resolve'
import typescript from '@rollup/plugin-typescript'
import config from '@bubkoo/rollup-config'

export default {
input: './src/index.ts',
export default config({
output: [
{
name: 'htmlToImage',
Expand All @@ -14,11 +9,4 @@ export default {
sourcemap: true,
},
],
plugins: [
typescript({ declaration: false, module: 'ES6' }),
resolve(),
commonjs(),
terser(),
filesize(),
],
}
})
24 changes: 1 addition & 23 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
{
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"declaration": true,
"removeComments": false,
"preserveConstEnums": true,
"esModuleInterop": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noEmitOnError": true,
"strictNullChecks": true,
"noUnusedLocals": true,
"resolveJsonModule": true,
"experimentalDecorators": true,
"pretty": true,
"target": "es5",
"lib": [
"dom",
"es2015"
]
},
"extends": "@bubkoo/tsconfig",
"include": [
"src/**/*.ts"
]
Expand Down

0 comments on commit 8d5f76a

Please sign in to comment.