tangled
alpha
login
or
join now
jensroemer.com
/
vite-test-project
0
fork
atom
Test project for testing out tangled core
0
fork
atom
overview
issues
pulls
2
pipelines
Try triggering a workflow
jensroemer.com
4 months ago
c1be1761
e4be6bef
1/1
ci.yml
success
6s
+12
-12
1 changed file
expand all
collapse all
unified
split
README.md
+12
-12
README.md
···
17
17
18
18
```js
19
19
export default defineConfig([
20
20
-
globalIgnores(['dist']),
20
20
+
globalIgnores(["dist"]),
21
21
{
22
22
-
files: ['**/*.{ts,tsx}'],
22
22
+
files: ["**/*.{ts,tsx}"],
23
23
extends: [
24
24
// Other configs...
25
25
···
34
34
],
35
35
languageOptions: {
36
36
parserOptions: {
37
37
-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
37
37
+
project: ["./tsconfig.node.json", "./tsconfig.app.json"],
38
38
tsconfigRootDir: import.meta.dirname,
39
39
},
40
40
// other options...
41
41
},
42
42
},
43
43
-
])
43
43
+
]);
44
44
```
45
45
46
46
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
47
47
48
48
```js
49
49
// eslint.config.js
50
50
-
import reactX from 'eslint-plugin-react-x'
51
51
-
import reactDom from 'eslint-plugin-react-dom'
50
50
+
import reactX from "eslint-plugin-react-x";
51
51
+
import reactDom from "eslint-plugin-react-dom";
52
52
53
53
export default defineConfig([
54
54
-
globalIgnores(['dist']),
54
54
+
globalIgnores(["dist"]),
55
55
{
56
56
-
files: ['**/*.{ts,tsx}'],
56
56
+
files: ["**/*.{ts,tsx}"],
57
57
extends: [
58
58
// Other configs...
59
59
// Enable lint rules for React
60
60
-
reactX.configs['recommended-typescript'],
60
60
+
reactX.configs["recommended-typescript"],
61
61
// Enable lint rules for React DOM
62
62
reactDom.configs.recommended,
63
63
],
64
64
languageOptions: {
65
65
parserOptions: {
66
66
-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
66
66
+
project: ["./tsconfig.node.json", "./tsconfig.app.json"],
67
67
tsconfigRootDir: import.meta.dirname,
68
68
},
69
69
-
// other options...
69
69
+
// other options..
70
70
},
71
71
},
72
72
-
])
72
72
+
]);
73
73
```