FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
rstack-cli/rstack.config.ts at main · rstackjs/rstack-cli · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
rstackjs
/
rstack-cli
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
23
Code
Issues
2
Pull requests
3
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
rstack-cli
/
rstack.config.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
69 lines (66 loc) · 1.72 KB
Breadcrumbs
rstack-cli
/
rstack.config.ts
Copy path
File metadata and controls
69 lines (66 loc) · 1.72 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Configuration guide: https://rstack.rs/config
import
{
define
}
from
'rstack'
;
define
.
lint
(
(
{
globals
,
js
,
ts
,
rstestPlugin
}
)
=>
{
return
[
js
.
configs
.
recommended
,
ts
.
configs
.
recommendedTypeChecked
,
{
files
:
[
'**/*.{js,jsx,cjs,mjs}'
]
,
languageOptions
:
{
globals
:
{
...
globals
.
browser
,
...
globals
.
nodeBuiltin
,
DEFINE_APP_TEST_VALUE
:
'readonly'
,
DEFINE_LIB_TEST_VALUE
:
'readonly'
,
DEFINE_VALUE
:
'readonly'
,
}
,
}
,
}
,
{
files
:
[
'**/*.test.{ts,tsx}'
]
,
...
rstestPlugin
.
configs
.
recommended
,
}
,
// Source imports use .ts for Node.js native TypeScript execution; builds rewrite them to .js.
{
files
:
[
'packages/rstack/src/**/*.ts'
]
,
rules
:
{
'@typescript-eslint/no-restricted-imports'
:
[
'error'
,
{
patterns
:
[
{
regex
:
String
.
raw
`^\.{1,2}/.*\.js$`
,
message
:
'Use the .ts extension for relative imports.'
,
}
,
]
,
}
,
]
,
}
,
}
,
{
languageOptions
:
{
parserOptions
:
{
project
:
[
'./packages/*/tsconfig.json'
,
'./packages/*/tests/tsconfig.json'
,
'./packages/rstack/tests/types/*/tsconfig.json'
,
'./examples/*/tsconfig.json'
,
'./website/tsconfig.json'
,
]
,
}
,
}
,
}
,
]
;
}
)
;
define
.
fmt
(
{
ignorePatterns
:
[
'packages/rstack/binding.cjs'
,
'packages/rstack/binding.d.cts'
,
]
,
singleQuote
:
true
,
sortPackageJson
:
true
,
}
)
;
define
.
staged
(
{
'*.{js,jsx,ts,tsx,mjs,cjs,mts,cts}'
:
[
'rs lint --fix'
,
'rs fmt'
]
,
'*.{json,jsonc,md,mdx,css,html,yml,yaml}'
:
'rs fmt'
,
}
)
;
Back
|
FazBrowse Home
|
New Git URL