From a6efed8f0399a9c880845f8ad51bfa796363e444 Mon Sep 17 00:00:00 2001 From: lutinglt Date: Sun, 6 Jul 2025 00:38:24 +0800 Subject: [PATCH] lint --- package.json | 3 +++ tsconfig.json | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 57c59c1..f663d5a 100644 --- a/package.json +++ b/package.json @@ -62,5 +62,8 @@ "prettier-plugin-organize-imports" ], "organizeImportsSkipDestructiveCodeActions": false + }, + "dependencies": { + "typescript-styled-plugin": "^0.18.3" } } diff --git a/tsconfig.json b/tsconfig.json index 72a33ef..50ed980 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,12 @@ "plugins": [ { "name": "typescript-plugin-css-modules" + }, + { + "name": "typescript-styled-plugin", + "lint": { + "validProperties": "rx,ry" + } } ], "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", @@ -11,7 +17,6 @@ "lib": ["ES2023"], "module": "ESNext", "skipLibCheck": true, - /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, @@ -19,7 +24,6 @@ "moduleDetection": "force", "noEmit": true, "jsx": "react-jsx", - /* Linting */ "strict": true, "noUnusedLocals": true,