Skip to content

Commit ea5f2b3

Browse files
authored
Merge pull request #2033 from db-ux-design-system/chore-tailwind-v4
chore: update tailwind example to v4
2 parents 2cba292 + 2e25028 commit ea5f2b3

File tree

10 files changed

+700
-1149
lines changed

10 files changed

+700
-1149
lines changed

react-tailwind-template/.codesandbox/template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"description": "This is an example of using the DB UX Design System with React 18 and tailwind.",
44
"tags": ["react", "tailwind", "typescript", "vite"],
55
"published": true
6-
}
6+
}

react-tailwind-template/.eslintrc.cjs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ module.exports = {
22
root: true,
33
env: { browser: true, es2020: true },
44
extends: [
5-
'eslint:recommended',
6-
'plugin:@typescript-eslint/recommended',
7-
'plugin:react-hooks/recommended',
5+
"eslint:recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
"plugin:react-hooks/recommended",
88
],
9-
ignorePatterns: ['dist', '.eslintrc.cjs'],
10-
parser: '@typescript-eslint/parser',
11-
plugins: ['react-refresh'],
9+
ignorePatterns: ["dist", ".eslintrc.cjs"],
10+
parser: "@typescript-eslint/parser",
11+
plugins: ["react-refresh"],
1212
rules: {
13-
'react-refresh/only-export-components': [
14-
'warn',
13+
"react-refresh/only-export-components": [
14+
"warn",
1515
{ allowConstantExport: true },
1616
],
1717
},
18-
}
18+
};

react-tailwind-template/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ If you are developing a production application, we recommend updating the config
1717
export default {
1818
// other rules...
1919
parserOptions: {
20-
ecmaVersion: 'latest',
21-
sourceType: 'module',
22-
project: ['./tsconfig.json', './tsconfig.node.json'],
20+
ecmaVersion: "latest",
21+
sourceType: "module",
22+
project: ["./tsconfig.json", "./tsconfig.node.json"],
2323
tsconfigRootDir: __dirname,
2424
},
25-
}
25+
};
2626
```
2727

2828
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`

0 commit comments

Comments
 (0)