Skip to content

Commit 99f81f4

Browse files
committed
Update: partial migration to ts
1 parent fd33ba3 commit 99f81f4

22 files changed

Lines changed: 12432 additions & 7830 deletions

.oxfmtrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"singleQuote": true,
3+
"semi": false,
4+
"printWidth": 100,
5+
"tabWidth": 2,
6+
"trailingComma": "es5",
7+
"arrowParens": "avoid"
8+
}

.oxlintrc.json

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
{
2+
"plugins": ["unicorn", "typescript", "oxc"],
3+
"categories": {
4+
"correctness": "error",
5+
"suspicious": "warn",
6+
"style": "off"
7+
},
8+
"rules": {
9+
"eqeqeq": "error",
10+
"curly": "allow",
11+
"yoda": "error",
12+
"prefer-object-spread": "error",
13+
"prefer-template": "warn",
14+
"prefer-rest-params": "error",
15+
"prefer-destructuring": "warn",
16+
"prefer-exponentiation-operator": "error",
17+
"operator-assignment": "warn",
18+
"new-cap": "error",
19+
"no-multi-assign": "error",
20+
"no-nested-ternary": "warn",
21+
"no-duplicate-imports": "error",
22+
"no-template-curly-in-string": "error",
23+
"no-lone-blocks": "error",
24+
"no-labels": "error",
25+
"no-extra-label": "error",
26+
"sort-imports": "off",
27+
28+
"unicorn/prefer-string-starts-ends-with": "error",
29+
"unicorn/prefer-string-trim-start-end": "error",
30+
"unicorn/prefer-spread": "error",
31+
"unicorn/prefer-logical-operator-over-ternary": "warn",
32+
"unicorn/prefer-includes": "error",
33+
"unicorn/prefer-array-index-of": "warn",
34+
"unicorn/prefer-object-from-entries": "warn",
35+
"unicorn/prefer-optional-catch-binding": "error",
36+
"unicorn/prefer-global-this": "warn",
37+
"unicorn/no-nested-ternary": "warn",
38+
"unicorn/no-console-spaces": "error",
39+
"unicorn/empty-brace-spaces": "error",
40+
"unicorn/throw-new-error": "error",
41+
"unicorn/number-literal-case": "error",
42+
"unicorn/no-zero-fractions": "error",
43+
"unicorn/consistent-existence-index-check": "warn",
44+
45+
"no-var": "error",
46+
"no-debugger": "error",
47+
48+
"typescript/consistent-type-definitions": "error",
49+
"typescript/consistent-type-imports": "error",
50+
"typescript/no-inferrable-types": "error",
51+
"typescript/no-empty-interface": "warn",
52+
"typescript/no-explicit-any": "warn",
53+
"typescript/no-unnecessary-boolean-literal-compare": "error",
54+
"typescript/no-unnecessary-type-arguments": "error",
55+
"typescript/no-unnecessary-type-assertion": "error",
56+
"typescript/no-unnecessary-type-constraint": "error",
57+
"typescript/non-nullable-type-assertion-style": "error",
58+
"typescript/prefer-as-const": "error",
59+
"typescript/array-type": "error",
60+
"typescript/ban-ts-comment": "error",
61+
"typescript/consistent-indexed-object-style": "error",
62+
"typescript/no-namespace": "error",
63+
"typescript/prefer-function-type": "error",
64+
"typescript/prefer-namespace-keyword": "error",
65+
"typescript/prefer-for-of": "warn",
66+
"typescript/no-confusing-void-expression": "off",
67+
"typescript/no-floating-promises": "off",
68+
"typescript/no-var-requires": "off",
69+
"typescript/no-misused-promises": "off",
70+
"typescript/explicit-function-return-type": "off",
71+
"typescript/promise-function-async": "off",
72+
"typescript/no-for-in-array": "off",
73+
"typescript/return-await": "off",
74+
"typescript/no-non-null-assertion": "off",
75+
76+
"import/no-duplicates": "error",
77+
"import/first": "error",
78+
"import/exports-last": "off",
79+
"import/no-anonymous-default-export": "warn"
80+
},
81+
"settings": {
82+
"jsx-a11y": {
83+
"polymorphicPropName": null,
84+
"components": {},
85+
"attributes": {}
86+
},
87+
"next": {
88+
"rootDir": []
89+
},
90+
91+
"jsdoc": {
92+
"ignorePrivate": false,
93+
"ignoreInternal": false,
94+
"ignoreReplacesDocs": true,
95+
"overrideReplacesDocs": true,
96+
"augmentsExtendsReplacesDocs": false,
97+
"implementsReplacesDocs": false,
98+
"exemptDestructuredRootsFromChecks": false,
99+
"tagNamePreference": {}
100+
}
101+
},
102+
"env": {
103+
"builtin": true,
104+
"browser": true,
105+
"es2021": true,
106+
"node": true,
107+
"worker": true,
108+
"mocha": true,
109+
"jest": true
110+
},
111+
"globals": {
112+
"Atomics": "readonly",
113+
"SharedArrayBuffer": "readonly"
114+
},
115+
"ignorePatterns": ["node_modules/**", "dist/**", "build/**", "coverage/**", ".next/**", "out/**"]
116+
}

jest-module-resolver.js

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

lerna.json

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

0 commit comments

Comments
 (0)