Skip to content

Commit c66a257

Browse files
committed
Update quote style and improve theme token consistency
Changed ESLint quote rule to allow avoiding escapes and removed eslint from the generate-tokens script. Updated theme token files to use single quotes for string values containing double quotes, improving consistency and readability.
1 parent e90947d commit c66a257

File tree

4 files changed

+464
-464
lines changed

4 files changed

+464
-464
lines changed

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default tseslint.config(
3939
curly: ['error', 'all'],
4040
"react-refresh/only-export-components": "warn",
4141
"no-multiple-empty-lines": "error",
42-
quotes: ["error", "double"],
42+
quotes: ["error", "double", { avoidEscape: true }],
4343
"arrow-parens": ["error", "as-needed"],
4444
"prefer-arrow-functions/prefer-arrow-functions": [
4545
"warn",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"build:watch": "watch 'yarn build' ./src",
4040
"chromatic": "npx chromatic",
4141
"dev": "vite",
42-
"generate-tokens": "node build-tokens.js && prettier --write src/theme/tokens/*.ts --config .prettierrc && eslint --fix src/theme/tokens/*.ts",
42+
"generate-tokens": "node build-tokens.js && prettier --write src/theme/tokens/*.ts --config .prettierrc",
4343
"lint": "eslint src --report-unused-disable-directives --max-warnings 0",
4444
"prettify": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\" --config .prettierrc",
4545
"prettier:check": "prettier --check \"src/**/*.{js,jsx,ts,tsx}\" --config .prettierrc",

0 commit comments

Comments
 (0)