Skip to content

Commit fd3f751

Browse files
committed
chore: update tooling, use oxlint
1 parent a6a4a22 commit fd3f751

File tree

15 files changed

+304
-1712
lines changed

15 files changed

+304
-1712
lines changed
File renamed without changes.

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
20

.oxlintrc.json

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
{
2+
"ignore": [
3+
"**/*.coffee",
4+
"**/*.css",
5+
"**/*.hbs",
6+
"**/*.json",
7+
"**/*.less",
8+
"**/*.scss",
9+
"**/*.svg",
10+
"dist/**",
11+
"node_modules/**"
12+
],
13+
"project": [
14+
"./apps/desktop/tsconfig.json",
15+
"./apps/web/tsconfig.json",
16+
"./shared/tsconfig.lint.json"
17+
],
18+
"rules": {
19+
"correctness/no-array-constructor": "error",
20+
"correctness/no-class-assign": "error",
21+
"correctness/no-cond-assign": "error",
22+
"correctness/no-const-assign": "error",
23+
"correctness/no-constant-condition": "warn",
24+
"correctness/no-control-regex": "error",
25+
"correctness/no-debugger": "error",
26+
"correctness/no-dupe-args": "error",
27+
"correctness/no-dupe-class-members": "error",
28+
"correctness/no-dupe-keys": "error",
29+
"correctness/no-duplicate-case": "error",
30+
"correctness/no-empty-character-class": "error",
31+
"correctness/no-empty-pattern": "error",
32+
"correctness/no-ex-assign": "error",
33+
"correctness/no-func-assign": "error",
34+
"correctness/no-invalid-regexp": "error",
35+
"correctness/no-irregular-whitespace": "error",
36+
"correctness/no-obj-calls": "error",
37+
"correctness/no-octal": "error",
38+
"correctness/no-prototype-builtins": "error",
39+
"correctness/no-regex-spaces": "error",
40+
"correctness/no-self-assign": "error",
41+
"correctness/no-sparse-arrays": "error",
42+
"correctness/no-template-curly-in-string": "error",
43+
"correctness/no-this-before-super": "error",
44+
"correctness/no-undef": "error",
45+
"correctness/no-unreachable": "error",
46+
"correctness/no-unsafe-finally": "error",
47+
"correctness/no-unsafe-negation": "error",
48+
"correctness/require-yield": "error",
49+
"correctness/use-isnan": "error",
50+
"correctness/valid-typeof": "error",
51+
"performance/no-new-buffer": "error",
52+
"style/camelcase": [
53+
"error",
54+
{
55+
"properties": "never"
56+
}
57+
],
58+
"style/capitalized-comments": "off",
59+
"style/comma-dangle": ["error", "never"],
60+
"style/eqeqeq": [
61+
"error",
62+
"always",
63+
{
64+
"null": "ignore"
65+
}
66+
],
67+
"style/linebreak-style": ["error", "unix"],
68+
"style/new-cap": [
69+
"error",
70+
{
71+
"capIsNew": false,
72+
"newIsCap": true
73+
}
74+
],
75+
"style/no-bitwise": "error",
76+
"style/no-continue": "error",
77+
"style/no-else-return": "error",
78+
"style/no-lonely-if": "error",
79+
"style/no-multi-assign": ["error"],
80+
"style/no-new-object": "error",
81+
"style/no-param-reassign": ["warn", { "props": false }],
82+
"style/no-plusplus": [
83+
"error",
84+
{
85+
"allowForLoopAfterthoughts": true
86+
}
87+
],
88+
"style/no-unneeded-ternary": [
89+
"error",
90+
{
91+
"defaultAssignment": false
92+
}
93+
],
94+
"style/no-var": "error",
95+
"style/object-shorthand": [
96+
"error",
97+
"always",
98+
{
99+
"avoidQuotes": true,
100+
"ignoreConstructors": false
101+
}
102+
],
103+
"style/one-var": ["error", "never"],
104+
"style/operator-assignment": ["error", "always"],
105+
"style/prefer-const": [
106+
"error",
107+
{
108+
"destructuring": "any",
109+
"ignoreReadBeforeAssign": true
110+
}
111+
],
112+
"style/prefer-destructuring": [
113+
"warn",
114+
{
115+
"array": false,
116+
"object": true
117+
}
118+
],
119+
"style/prefer-numeric-literals": "error",
120+
"style/prefer-rest-params": "error",
121+
"style/prefer-spread": "error",
122+
"style/prefer-template": "error",
123+
"style/radix": "error",
124+
"style/spaced-comment": ["error", "always"],
125+
"style/strict": "error",
126+
"style/symbol-description": "error",
127+
"style/vars-on-top": "error",
128+
"style/yoda": "error",
129+
"suspicious/no-await-in-loop": "error",
130+
"suspicious/no-compare-neg-zero": "error",
131+
"suspicious/no-empty": ["error", { "allowEmptyCatch": true }],
132+
"suspicious/no-empty-function": [
133+
"error",
134+
{
135+
"allow": ["arrowFunctions", "functions", "methods"]
136+
}
137+
],
138+
"suspicious/no-eval": "error",
139+
"suspicious/no-extend-native": "error",
140+
"suspicious/no-extra-bind": "error",
141+
"suspicious/no-extra-boolean-cast": "error",
142+
"suspicious/no-fallthrough": "error",
143+
"suspicious/no-global-assign": "error",
144+
"suspicious/no-implied-eval": "error",
145+
"suspicious/no-inner-declarations": "error",
146+
"suspicious/no-iterator": "error",
147+
"suspicious/no-labels": "error",
148+
"suspicious/no-lone-blocks": "error",
149+
"suspicious/no-loop-func": "error",
150+
"suspicious/no-multi-str": "error",
151+
"suspicious/no-new": "error",
152+
"suspicious/no-new-func": "error",
153+
"suspicious/no-new-wrappers": "error",
154+
"suspicious/no-octal-escape": "error",
155+
"suspicious/no-return-assign": "error",
156+
"suspicious/no-return-await": "error",
157+
"suspicious/no-script-url": "error",
158+
"suspicious/no-self-compare": "error",
159+
"suspicious/no-sequences": "error",
160+
"suspicious/no-throw-literal": "error",
161+
"suspicious/no-unmodified-loop-condition": "off",
162+
"suspicious/no-unused-expressions": [
163+
"error",
164+
{
165+
"allowShortCircuit": true,
166+
"allowTernary": false
167+
}
168+
],
169+
"suspicious/no-unused-labels": "error",
170+
"suspicious/no-useless-concat": "error",
171+
"suspicious/no-useless-constructor": "error",
172+
"suspicious/no-useless-escape": "error",
173+
"suspicious/no-useless-return": "error",
174+
"suspicious/no-void": "off",
175+
"suspicious/no-with": "error",
176+
"unicorn/no-new-array": "off",
177+
"unicorn/no-useless-fallback-in-spread": "off"
178+
},
179+
"typescript": true
180+
}

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
**/@codegen
2+
**/dist/
3+
**/fixtures/
4+
5+
.moon/cache
6+
.snapshots
7+
dist
8+
pnpm-lock.yaml

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"arrowParens": "always",
3+
"printWidth": 100,
4+
"singleQuote": true,
5+
"trailingComma": "none",
6+
"plugins": ["prettier-plugin-package"]
7+
}

.prettierrc.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "jsx.email",
66
"license": "MIT",
77
"engines": {
8-
"node": ">=18.0.0"
8+
"node": ">=20.19.0"
99
},
1010
"devDependencies": {
1111
"@octokit/rest": "^20.0.2",

moon.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,12 @@ tasks:
5050
cache: false
5151

5252
lint.docs:
53-
command: 'prettier --write .github/**/*.md **/README.md docs/**/*.md'
53+
command: 'prettier --write .github/**/*.md **/README.md docs/**/*.md --no-error-on-unmatched-pattern'
5454
options:
5555
cache: false
5656

5757
lint.js:
58-
command: 'eslint --cache apps packages --ext .js,.ts,.tsx'
59-
env:
60-
NODE_OPTIONS: '--max-old-space-size=16384'
58+
command: oxlint --format stylish apps infra packages scripts services
6159
options:
6260
cache: false
6361

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@
1616
"@types/react-dom": "18.2.7",
1717
"create-jsx-email": "workspace:*",
1818
"csstype": "3.1.2",
19-
"eslint-config-shellscape": "^6.0.2",
20-
"eslint-import-resolver-typescript": "^3.6.1",
2119
"gh-pages": "^6.0.0",
2220
"happy-dom": "^12.2.1",
2321
"husky": "^8.0.3",
2422
"jsx-email": "workspace:*",
2523
"lint-staged": "14.0.1",
24+
"oxlint": "^0.16.6",
25+
"prettier": "^3.5.3",
26+
"prettier-plugin-package": "^1.4.0",
2627
"ts-node": "10.9.1",
2728
"tshy": "^1.14.0",
2829
"typescript": "^5.2.2",

packages/create-jsx-email/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"type": "module",
2020
"engines": {
21-
"node": ">=18.0.0"
21+
"node": ">=20.19.0"
2222
},
2323
"files": [
2424
"bin/**",

0 commit comments

Comments
 (0)