Skip to content

Commit 01e28e9

Browse files
kihayuKeanu Hiemarcosvega91
authored
feat: typescript react support (#10)
* Add Typescript React support * Add eslint recommended extend * doc: update README with new supported language * chore: update yarn.lock Co-authored-by: Keanu Hie <[email protected]> Co-authored-by: marcosvega91 <[email protected]>
1 parent 2aec09a commit 01e28e9

16 files changed

+17581
-12
lines changed

.eslintrc.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88
"jest": true,
99
"node": true
1010
},
11-
"extends": ["eslint:recommended", "prettier"],
11+
"extends": [
12+
"eslint:recommended",
13+
"plugin:react/recommended",
14+
"plugin:react-hooks/recommended",
15+
"plugin:@typescript-eslint/recommended",
16+
"prettier"
17+
],
1218
"plugins": ["prettier"],
1319
"rules": {
1420
"no-console": "error",

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ Actually the plugin works for the following languages:
3838
1. `html`
3939
2. `js`
4040
3. `jsx`
41-
4. `vue`
41+
4. `ts`
42+
5. `tsx`
43+
6. `vue`
4244

4345
### Input
4446

@@ -63,6 +65,7 @@ Install prettier-plugin-tailwind-css:
6365
```
6466
npm install --save-dev prettier-plugin-tailwind-css
6567
```
68+
6669
```
6770
yarn add -D prettier-plugin-tailwind-css
6871
```

0 commit comments

Comments
 (0)