diff --git a/.eslintrc.json b/.eslintrc.json index 21c6f91..a34a188 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -38,6 +38,7 @@ "@typescript-eslint/no-shadow": 0, "@typescript-eslint/no-unused-vars": 1, "no-restricted-syntax": 0, + "react/no-unknown-property": [2, { "ignore": ["css"] }], "prettier/prettier": [ 0, { diff --git a/src/styles/styled.d.ts b/src/styles/styled.d.ts new file mode 100644 index 0000000..fc03e8f --- /dev/null +++ b/src/styles/styled.d.ts @@ -0,0 +1 @@ +/// diff --git a/tsconfig.json b/tsconfig.json index c2aab48..9674c9a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,11 +15,13 @@ "isolatedModules": true, "noEmit": true, "jsx": "react-jsx", + "jsxImportSource": "@emotion/react", "baseUrl": ".", "paths": { "@/*": ["./src/*"], "~/*": ["./public/*"] - } + }, + "types": ["@emotion/react/types/css-prop"] }, "include": ["src", "vite.config.ts", "test"], "exclude": ["node_modules"],