Skip to content

Commit 84ffc59

Browse files
committed
feat(all): include oxlint and oxfmt
1 parent 331cdd4 commit 84ffc59

105 files changed

Lines changed: 1673 additions & 1544 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,6 @@ storybook-static/
5555
*.tmp
5656
*.temp
5757
.cache/
58+
59+
60+
.npmrc

.npmrc

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

.npmrc.example

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# pnpm configuration for kubit-react-components monorepo
2+
# https://pnpm.io/npmrc
3+
4+
# Store configuration
5+
store-dir=~/.pnpm-store
6+
7+
# Hoisting configuration
8+
hoist=true
9+
hoist-pattern[]=*
10+
11+
# Public hoist pattern for tools that need to be accessible
12+
public-hoist-pattern[]=*eslint*
13+
public-hoist-pattern[]=@types/*
14+
15+
# Strict peer dependencies
16+
strict-peer-dependencies=false
17+
auto-install-peers=true
18+
19+
# Performance optimizations
20+
package-import-method=hardlink
21+
22+
# Lockfile configuration
23+
lockfile=true
24+
frozen-lockfile=false
25+
26+
# Registry configuration
27+
registry=https://registry.npmjs.org/
28+
29+
# Resolution mode
30+
resolution-mode=highest
31+
32+
# Node linker - hoisted required for OxLint jsPlugins (Rust resolver can't follow pnpm symlinks)
33+
node-linker=hoisted
34+
35+
# Enable dedupe
36+
dedupe-peer-dependents=true
37+
38+
# Save exact versions
39+
save-exact=false
40+
save-prefix=^

eslint.config.base.js

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

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
"pnpm": ">=10.28.1"
2020
},
2121
"packageManager": "pnpm@10.30.3",
22-
"pnpm": {
23-
"overrides": {
24-
"eslint-plugin-react-hooks": "^5.1.0"
25-
}
26-
},
2722
"scripts": {
2823
"dev": "turbo run dev --filter=@kubit-ui-web/storybook",
2924
"dev:components": "turbo run dev --filter=@kubit-ui-web/react-components",

packages/components/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ bundle/
3131
# Storybook
3232
.storybook-cache/
3333
storybook-static/
34+
35+
.npmrc

packages/components/.oxfmtrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"semi": true,
3+
"single_quote": true,
4+
"trailing_comma": "all",
5+
"print_width": 80,
6+
"tab_width": 2,
7+
"use_tabs": false,
8+
"bracket_spacing": true,
9+
"arrow_parens": "always",
10+
"jsx_single_quote": false,
11+
"end_of_line": "lf",
12+
"ignore": [
13+
"dist",
14+
"node_modules",
15+
"coverage",
16+
"plop-templates",
17+
"public",
18+
"vendor"
19+
]
20+
}

packages/components/.oxlintrc.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"$schema": "../../node_modules/oxlint/configuration_schema.json",
3+
"extends": ["../../node_modules/@kubit-ui-web/eslint-plugin-kubit/oxlint/recommended.json"],
4+
"jsPlugins": [
5+
{ "name": "kubit", "specifier": "@kubit-ui-web/eslint-plugin-kubit" }
6+
],
7+
"env": {
8+
"browser": true,
9+
"node": true,
10+
"es2024": true
11+
},
12+
"globals": {
13+
"afterAll": "readonly",
14+
"afterEach": "readonly",
15+
"beforeAll": "readonly",
16+
"beforeEach": "readonly",
17+
"describe": "readonly",
18+
"expect": "readonly",
19+
"it": "readonly",
20+
"test": "readonly",
21+
"vi": "readonly"
22+
},
23+
"rules": {
24+
"complexity": "off",
25+
"react/no-array-index-key": "warn",
26+
"jsx-a11y/role-has-required-aria-props": "warn",
27+
"kubit/no-public-field-interface": "off",
28+
"kubit/no-inline-styles": "off",
29+
"kubit/no-multi-comp": "off",
30+
"kubit/no-relative-import-paths": "off",
31+
"kubit/no-index-import": [
32+
"error",
33+
{
34+
"aliases": {
35+
"@/components": "./src/components/*",
36+
"@/lib": "./src/lib/*",
37+
"@/styles": "./src/styles/*"
38+
}
39+
}
40+
],
41+
"kubit/enforce-named-exports": [
42+
"warn",
43+
{
44+
"allowInFiles": [".stories.", ".test.", ".spec."]
45+
}
46+
]
47+
},
48+
"ignorePatterns": [
49+
"dist",
50+
"node_modules",
51+
"coverage",
52+
"*.config.*",
53+
"src/lib/provider/cssProvider",
54+
"src/lib/types/cssGenerator",
55+
"src/lib/designSystem/kubit/css/cssVars.js",
56+
"src/lib/tests/__mocks__/assetMock.js"
57+
]
58+
}

packages/components/.prettierignore

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

0 commit comments

Comments
 (0)