Skip to content

Commit 58c3ac0

Browse files
authored
feat!: use css-tree, rewrite package for ESM (#149)
* checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * chore: checkpoint * chore: update tooling * checkpoint * feat!: use css-tree, rewrite package for ESM * fix: add support for oklab and oklch colors from #148 * chore: workflow fix * chore: add prettier
1 parent c8b1647 commit 58c3ac0

File tree

150 files changed

+15574
-23020
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+15574
-23020
lines changed

.eslintignore

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

.eslintrc

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

.github/workflows/validate.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616

17-
name: Node v${{ matrix.node }}
17+
name: Validate
1818

1919
steps:
2020
- name: Checkout Commit
@@ -25,9 +25,6 @@ jobs:
2525
with:
2626
node-version: 20.19.0
2727

28-
- name: Checkout Master
29-
run: git branch -f master origin/master
30-
3128
- name: Install PNPM
3229
uses: pnpm/action-setup@v4
3330

.gitignore

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
.DS_Store
2-
.eslintcache
3-
.nyc_output
4-
*~
5-
6-
coverage.*
7-
node_modules/
82
npm-debug.log
9-
s.js
3+
dist
4+
node_modules

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm exec lint-staged

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10
1+
22.14.0

.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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
**/@codegen
2+
**/cdk.out
3+
**/dist/
4+
**/fixtures/
5+
**/snapshots/
6+
7+
.cdk
8+
.github/PULL_REQUEST_TEMPLATE.md
9+
.moon/cache
10+
cdk.out
11+
dist
12+
13+
pnpm-lock.yaml

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"arrowParens": "always",
3+
"importOrder": ["<BUILTIN_MODULES>", "", "<THIRD_PARTY_MODULES>", "", "^[~]", "", "^[.]"],
4+
"plugins": ["@ianvs/prettier-plugin-sort-imports", "prettier-plugin-package"],
5+
"printWidth": 100,
6+
"singleQuote": true,
7+
"trailingComma": "none"
8+
}

.vscode/launch.json

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

0 commit comments

Comments
 (0)