Skip to content

Commit

Permalink
chore: bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
blurfx committed Nov 20, 2023
1 parent dfd08fb commit 627310c
Show file tree
Hide file tree
Showing 9 changed files with 962 additions and 1,050 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"devDependencies": {
"@changesets/cli": "^2.26.2",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"prettier": "^3.0.1"
"lint-staged": "^15.1.0",
"prettier": "^3.1.0"
}
}
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
},
"devDependencies": {
"eslint-config-calor": "workspace:*",
"tsup": "^6.7.0",
"typescript": "^5.0.2",
"vite": "^4.3.2",
"vitest": "^0.31.0"
"tsup": "^8.0.0",
"typescript": "^5.2.2",
"vite": "^5.0.0",
"vitest": "^0.34.6"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/rules/golang.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ParseRule } from '../types';

const golangRule: ParseRule[] = [
const golangRules: ParseRule[] = [
{
kind: 'comment',
pattern: /(\/\/.*\n?)|\/\*[^]*?\*\//g,
Expand Down Expand Up @@ -49,4 +49,4 @@ const golangRule: ParseRule[] = [
},
];

export default golangRule;
export default golangRules;
12 changes: 6 additions & 6 deletions packages/core/tests/tokenizer/golang.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from 'vitest';
import { tokenize } from '../../src';
import { golangRule } from '../../src/rules/golang';
import golangRules from '../../src/rules/golang';

describe('golang tokenizer', () => {
it('can tokenize comment', () => {
Expand All @@ -14,7 +14,7 @@ describe('golang tokenizer', () => {
/* this is another comment */
`,
golangRule,
golangRules,
);
const comments = [
'// this is comment\n',
Expand Down Expand Up @@ -50,7 +50,7 @@ describe('golang tokenizer', () => {
fmt.Println("hello world")
}
`,
golangRule,
golangRules,
);
const keywords = ['package', 'import', 'const', 'func', 'defer', 'if'];
keywords.forEach((keyword) => {
Expand All @@ -77,7 +77,7 @@ describe('golang tokenizer', () => {
fmt.Println("hello world")
}
`,
golangRule,
golangRules,
);
const strings = ['"fmt"', '"testing"', '"log"', "'c'", '"hello world"'];
const stringTokens = tokens.filter((token) => token.kind === 'string');
Expand Down Expand Up @@ -106,7 +106,7 @@ describe('golang tokenizer', () => {
4__2
0_xBadFace
`,
golangRule,
golangRules,
);
const valid = [
'42',
Expand Down Expand Up @@ -154,7 +154,7 @@ describe('golang tokenizer', () => {
0X_1FFFP-16
0x15e-2
`,
golangRule,
golangRules,
);
const valid = [
'0.',
Expand Down
1 change: 0 additions & 1 deletion packages/core/tests/tokenizer/javascript.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { describe, it, expect } from 'vitest';
import { tokenize } from '../../src/tokenizer';
import javascriptRules from '../../src/rules/javascript';
import { detectLanguage } from '../../src';

describe('javascript tokenizer', () => {
it('can tokenize comment', () => {
Expand Down
10 changes: 5 additions & 5 deletions packages/eslint-config-calor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"author": "",
"license": "ISC",
"dependencies": {
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-import": "^2.28.0",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-unused-imports": "^3.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/highlighter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"devDependencies": {
"@calor/core": "workspace:^",
"eslint-config-calor": "workspace:*",
"tsup": "^6.7.0",
"typescript": "^5.0.2"
"tsup": "^8.0.0",
"typescript": "^5.2.2"
},
"peerDependencies": {
"@calor/core": "^0.0.2"
Expand Down
18 changes: 9 additions & 9 deletions packages/preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
"preview": "vite preview"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@calor/core": "workspace:*",
"@calor/highlighter": "workspace:*"
"@calor/highlighter": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react-swc": "^3.3.2",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@vitejs/plugin-react-swc": "^3.5.0",
"eslint-config-calor": "workspace:*",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"typescript": "^5.0.2",
"vite": "^4.4.5"
"eslint-plugin-react-refresh": "^0.4.4",
"typescript": "^5.2.2",
"vite": "^5.0.0"
}
}
Loading

0 comments on commit 627310c

Please sign in to comment.