Skip to content

Commit

Permalink
ESLint v9 & Prettier v4
Browse files Browse the repository at this point in the history
  • Loading branch information
surol committed Oct 9, 2024
1 parent 16b8488 commit c63252f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 48 deletions.
33 changes: 0 additions & 33 deletions .eslintrc.cjs

This file was deleted.

1 change: 0 additions & 1 deletion .prettierrc.cjs

This file was deleted.

3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import configs from '@run-z/eslint-config';

export default configs;
14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,16 @@
"sideEffects": false,
"devDependencies": {
"@jest/globals": "^29.7.0",
"@run-z/eslint-config": "^4.2.0",
"@run-z/prettier-config": "^2.0.0",
"@run-z/eslint-config": "^5.0.0",
"@run-z/prettier-config": "^3.0.0",
"@run-z/project-config": "^0.20.4",
"@swc/core": "^1.7.26",
"@swc/jest": "^0.2.36",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"eslint": "^8.57.1",
"eslint-plugin-jest": "^28.8.3",
"eslint": "^9.12.0",
"gh-pages": "^6.1.1",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"prettier": "^2.8.8",
"prettier-eslint-cli": "^7.1.0",
"prettier": "^3.3.3",
"rollup": "^4.24.0",
"run-z": "^2.1.0",
"ts-jest": "^29.2.5",
Expand All @@ -56,7 +52,7 @@
"clean": "run-z +z --then clean-z",
"doc": "run-z +z --then typedoc",
"doc:publish": "run-z doc --then gh-pages --dist target/typedoc --dotfiles",
"format": "run-z +z --then prettier-eslint --write --include-dot-files \"src/**/*.*\" \"*.{js,cjs,json,md}\"",
"format": "run-z +z --then prettier --write \"*.{js,cjs,json,md}\"",
"lint": "run-z +z --then eslint .",
"test": "run-z +z env:NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" --then test-z",
"z": "run-z +cmd:build-z,+cmd:typedoc,+cmd:eslint,+cmd:test-z"
Expand Down
3 changes: 3 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import config from '@run-z/prettier-config';

export default config;
10 changes: 5 additions & 5 deletions src/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ export function escapeCSS(text: string): string {

if (
// Is in range [a-z] (U+0061 to U+007A),
(c > 0x60 && c < 0x7b)
(c > 0x60 && c < 0x7b) ||
// or is "-" (U+002D),
|| c === 0x2d
c === 0x2d ||
// or is "_" (U+005F)
|| c === 0x5f
c === 0x5f ||
// or is in range [0-9] (U+0030 to U+0039),
|| (c > 0x2f && c < 0x3a)
(c > 0x2f && c < 0x3a) ||
// or is in range [A-Z] (U+0041 to U+005A)
|| (c > 0x40 && c < 0x5b)
(c > 0x40 && c < 0x5b)
) {
// then the character itself.
out += text[i];
Expand Down

0 comments on commit c63252f

Please sign in to comment.