Skip to content

Commit 8d5f76a

Browse files
committed
chore: 🔧 use common config files of bubkoo
1 parent 0ca8673 commit 8d5f76a

File tree

3 files changed

+5
-80
lines changed

3 files changed

+5
-80
lines changed

.eslintrc

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,3 @@
11
{
2-
"parser": "@typescript-eslint/parser",
3-
"plugins": [
4-
"@typescript-eslint",
5-
"eslint-comments",
6-
"import",
7-
"prettier",
8-
"promise"
9-
],
10-
"extends": [
11-
"airbnb-base",
12-
"eslint:recommended",
13-
"prettier",
14-
"plugin:@typescript-eslint/recommended",
15-
"plugin:import/errors",
16-
"plugin:import/warnings",
17-
"plugin:promise/recommended",
18-
"plugin:prettier/recommended"
19-
],
20-
"env": {
21-
"es6": true,
22-
"node": true,
23-
"commonjs": true
24-
},
25-
"parserOptions": {
26-
"ecmaVersion": 2020,
27-
"sourceType": "module",
28-
"requireConfigFile": false
29-
},
30-
"rules": {
31-
"no-console":[2, { "allow": ["warn", "error"] }],
32-
"no-nested-ternary": 0,
33-
"import/extensions": 0,
34-
"import/no-unresolved": 0,
35-
"import/prefer-default-export": 0,
36-
"no-param-reassign": [2, { "props": false }],
37-
"prefer-destructuring": [2, {"object": true, "array": false}],
38-
"@typescript-eslint/no-namespace": 0,
39-
"@typescript-eslint/no-explicit-any": 0,
40-
"@typescript-eslint/explicit-module-boundary-types": 0,
41-
"@typescript-eslint/no-non-null-assertion": 0,
42-
"no-prototype-builtins": 0
43-
}
2+
"extends": "@bubkoo/eslint-config"
443
}

rollup.config.js

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
import { terser } from 'rollup-plugin-terser'
2-
import commonjs from '@rollup/plugin-commonjs'
3-
import filesize from 'rollup-plugin-filesize'
4-
import resolve from '@rollup/plugin-node-resolve'
5-
import typescript from '@rollup/plugin-typescript'
1+
import config from '@bubkoo/rollup-config'
62

7-
export default {
8-
input: './src/index.ts',
3+
export default config({
94
output: [
105
{
116
name: 'htmlToImage',
@@ -14,11 +9,4 @@ export default {
149
sourcemap: true,
1510
},
1611
],
17-
plugins: [
18-
typescript({ declaration: false, module: 'ES6' }),
19-
resolve(),
20-
commonjs(),
21-
terser(),
22-
filesize(),
23-
],
24-
}
12+
})

tsconfig.json

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,5 @@
11
{
2-
"compilerOptions": {
3-
"module": "commonjs",
4-
"moduleResolution": "node",
5-
"sourceMap": true,
6-
"declaration": true,
7-
"removeComments": false,
8-
"preserveConstEnums": true,
9-
"esModuleInterop": true,
10-
"noImplicitAny": true,
11-
"noImplicitReturns": true,
12-
"noImplicitThis": true,
13-
"noEmitOnError": true,
14-
"strictNullChecks": true,
15-
"noUnusedLocals": true,
16-
"resolveJsonModule": true,
17-
"experimentalDecorators": true,
18-
"pretty": true,
19-
"target": "es5",
20-
"lib": [
21-
"dom",
22-
"es2015"
23-
]
24-
},
2+
"extends": "@bubkoo/tsconfig",
253
"include": [
264
"src/**/*.ts"
275
]

0 commit comments

Comments
 (0)