Skip to content

Commit d78b050

Browse files
author
Namide
committed
Update dependencies
1 parent 702f58f commit d78b050

37 files changed

+4795
-5502
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 11 deletions
This file was deleted.

conf/biome.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"linter": {
7+
"enabled": true,
8+
"rules": {
9+
"recommended": true
10+
}
11+
}
12+
}

conf/eslint.config.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
import eslintConfigPrettier from "eslint-config-prettier";
4+
5+
export default tseslint.config(
6+
eslint.configs.recommended,
7+
...tseslint.configs.strict,
8+
...tseslint.configs.stylistic,
9+
{
10+
ignores: ["lib/*"],
11+
},
12+
eslintConfigPrettier
13+
);

conf/tsconfig.base.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"target": "ESNext",
44
"useDefineForClassFields": true,
5-
"moduleResolution":"node",
5+
"moduleResolution": "node",
66
"strict": true,
77
"isolatedModules": true,
88
"esModuleInterop": true,
@@ -13,8 +13,6 @@
1313
"declaration": true,
1414
"outDir": "../lib"
1515
},
16-
"include": [
17-
"../src/global.d.ts"
18-
],
16+
"include": ["../src/global.d.ts"],
1917
"exclude": ["node_modules"]
20-
}
18+
}

conf/tsconfig.type.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"allowJs": true,
66
"declaration": true,
77
"emitDeclarationOnly": true,
8-
// "outFile": "../lib/extractColors.d.ts",
98
"isolatedModules": false
109
},
1110
"files": ["../src/extractColors.ts"]
12-
}
11+
}

conf/tsconfig.vite.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"lib": ["ESNext", "DOM"],
55
"noEmit": true
66
},
7-
"files": ["../src/extractColors.ts"]
8-
}
7+
"files": ["../src/extractColors.ts"],
8+
"include": ["../src/**/*", "../tests/**/*"]
9+
}

conf/vite.config.test.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
import { defineConfig } from 'vitest/config';
1+
import { defineConfig } from "vitest/config";
22

3-
module.exports = defineConfig({
3+
export default defineConfig({
44
define: {
5-
__DEV__: `true`,
6-
__BROWSER__: 'true'
5+
__DEV__: "true",
6+
__BROWSER__: "true",
77
},
88
test: {
9-
include: ['tests/*.ts'],
10-
environment: 'node',
9+
include: ["tests/*.ts"],
10+
environment: "node",
11+
coverage: {
12+
provider: "istanbul", // or 'v8'
13+
},
1114
},
12-
});
15+
});

conf/vite.config.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import path from 'path';
2-
import { defineConfig } from 'vite';
3-
1+
import path from "path";
2+
import { defineConfig } from "vite";
43

54
export default () => {
65
return defineConfig({
@@ -10,10 +9,11 @@ export default () => {
109
build: {
1110
sourcemap: true,
1211
lib: {
13-
entry: path.resolve(__dirname, '../src/extractColors.ts'),
14-
name: 'ExtractColors',
15-
fileName: (format) => `extract-colors.${format === 'es' ? 'mjs' : format}`,
16-
formats: ['cjs', 'es']
12+
entry: path.resolve(__dirname, "../src/extractColors.ts"),
13+
name: "ExtractColors",
14+
fileName: (format) =>
15+
`extract-colors.${format === "es" ? "mjs" : format}`,
16+
formats: ["cjs", "es"],
1717
},
1818
minify: "terser",
1919
terserOptions: {
@@ -39,16 +39,16 @@ export default () => {
3939
"extractColors",
4040
"extractColorsFromImage",
4141
"extractColorsFromImageData",
42-
"extractColorsFromSrc"
42+
"extractColorsFromSrc",
4343
],
44-
}
45-
}
44+
},
45+
},
4646
},
4747
rollupOptions: {
4848
output: {
49-
dir: './lib'
49+
dir: "./lib",
5050
},
5151
},
5252
},
5353
});
54-
}
54+
};

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ lint:
5151
-w /usr/src/app \
5252
-u "node" \
5353
node:slim \
54-
npm run lint
54+
npm run lint-fix
5555

5656
test:
5757
docker run -ti --rm \

0 commit comments

Comments
 (0)