File tree Expand file tree Collapse file tree 9 files changed +31
-19
lines changed
__tests__/vendor/tailwind Expand file tree Collapse file tree 9 files changed +31
-19
lines changed Original file line number Diff line number Diff line change 1+ import { resolve } from "node:path" ;
2+
13import eslint from "@eslint/js" ;
24import prettier from "eslint-plugin-prettier/recommended" ;
35import { globalIgnores } from "eslint/config" ;
@@ -12,13 +14,12 @@ export default tseslint.config(
1214 languageOptions : {
1315 parserOptions : {
1416 projectService : true ,
17+ tsconfigRootDir : resolve ( "../" ) ,
1518 } ,
1619 } ,
1720 } ,
1821 globalIgnores ( [
1922 "**/dist/*" ,
20- "**/example/*" ,
21- "**/node_modules/*" ,
2223 ".yarn/*" ,
2324 "**/eslint.config.[cm]js" ,
2425 "**/prettier.config.[cm]js" ,
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ../tsconfig.json" ,
3+ "compilerOptions" : {
4+ "noEmit" : true ,
5+ "allowJs" : true
6+ }
7+ }
Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ import "../global.css";
77export default function App ( ) {
88 return (
99 < View style = { styles . container } >
10- < Text className = "text-red-800" > Hello world!!!</ Text >
10+ < Text className = "text-green-800 duration-[5s] transition-colors" >
11+ Hello world!!!
12+ </ Text >
1113 < StatusBar style = "auto" />
1214 </ View >
1315 ) ;
Original file line number Diff line number Diff line change 22 "extends" : " ../tsconfig" ,
33 "compilerOptions" : {
44 "noEmit" : true ,
5- },
6- "include" : [
7- " src/**/*" ,
8- " index.js" ,
9- " postcss.config.mjs" ,
10- " react-native-css-env.d.ts" ,
11- " example-env.d.ts"
12- ]
5+ }
136}
Original file line number Diff line number Diff line change 3737 }
3838 },
3939 "./components" : {
40- "default" : " ./src/components/index.js" ,
41- "types" : " ./src/components/index.d.ts"
40+ "source" : " ./src/components/index.cts" ,
41+ "import" : {
42+ "types" : " ./dist/typescript/module/src/components/index.d.ts" ,
43+ "default" : " ./dist/module/components/index.cjs"
44+ },
45+ "require" : {
46+ "types" : " ./dist/typescript/commonjs/src/components/index.d.ts" ,
47+ "default" : " ./dist/commonjs/components/index.cjs"
48+ }
4249 },
4350 "./components/*" : {
4451 "source" : " ./src/components/*.ts" ,
Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ export type NativewindRenderOptions = RenderOptions & {
3232 debug ?: boolean | "verbose" ;
3333} ;
3434
35- const debugDefault = Boolean ( process . env . NODE_OPTIONS ?. includes ( "--inspect" ) ) ;
35+ const debugDefault =
36+ typeof process . env . NODE_OPTIONS === "string" &&
37+ process . env . NODE_OPTIONS . includes ( "--inspect" ) ;
3638
3739export async function render (
3840 component : ReactElement < PropsWithChildren > ,
Original file line number Diff line number Diff line change 1+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
12/* eslint-disable @typescript-eslint/no-unsafe-return */
23/* eslint-disable @typescript-eslint/no-unsafe-assignment */
3- /* eslint-disable @typescript-eslint/no-deprecated */
4- /* eslint-disable no-undef */
54/* eslint-disable @typescript-eslint/no-require-imports */
65
76module . exports = {
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ beforeEach(() => {
2727
2828const debugDefault = Boolean (
2929 process . env . REACT_NATIVE_CSS_TEST_DEBUG &&
30- process . env . NODE_OPTIONS ?. includes ( "--inspect" ) ,
30+ typeof process . env . NODE_OPTIONS === "string" &&
31+ process . env . NODE_OPTIONS . includes ( "--inspect" ) ,
3132) ;
3233
3334export function registerCSS (
Original file line number Diff line number Diff line change 3838 "verbatimModuleSyntax" : true
3939 },
4040 "exclude" : [
41- " dist/ " ,
42- " src/__tests__ "
41+ " node_modules " ,
42+ " dist " ,
4343 ]
4444}
You can’t perform that action at this time.
0 commit comments