@raidou/oxlint-config-base 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,8 +2,6 @@ import type { FormatConfig } from 'oxfmt';
2
2
  import { type OxlintConfig } from 'oxlint';
3
3
  export declare const config: OxlintConfig;
4
4
  export declare const fmtconfig: FormatConfig;
5
- export declare const tailwindcss: ({ entryPoint, }: {
6
- entryPoint: string;
7
- }) => OxlintConfig;
5
+ export declare const tailwindcss: () => OxlintConfig;
8
6
  export type { FormatConfig } from 'oxfmt';
9
7
  export type { OxlintConfig } from 'oxlint';
package/dist/index.js CHANGED
@@ -22,8 +22,8 @@ export const fmtconfig = {
22
22
  singleQuote: true,
23
23
  trailingComma: 'all',
24
24
  };
25
- export const tailwindcss = ({ entryPoint, }) => defineConfig({
25
+ export const tailwindcss = () => defineConfig({
26
26
  extends: [tailwindcssConfig()],
27
- settings: { tailwindcss: { entryPoint } },
27
+ rules: { 'tailwindcss/no-unknown-classes': 'off' },
28
28
  });
29
29
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,YAAY,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,iBAAiB,MAAM,2BAA2B,CAAA;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,CAAC,MAAM,MAAM,GAAiB,YAAY,CAAC;IAC/C,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC;IACtE,OAAO,EAAE,EAAE,SAAS,EAAE,IA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,IAAI;IACjB,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,KAAK;IACX,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,KAAK;CACrB,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,GAAiB,EAAE,CAC5C,YAAY,CAAC;IACX,OAAO,EAAE,CAAC,iBAAiB,EAAE,CAAC;IAC9B,KAAK,EAAE,EAAE,gCAAgC,EAAE,KAAK,EAAE;CACnD,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raidou/oxlint-config-base",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "MIT",
5
5
  "repository": "git@github.com:weirongxu/oxlint-config-base.git",
6
6
  "files": [
package/readme.md CHANGED
@@ -3,11 +3,9 @@
3
3
  ## Install
4
4
 
5
5
  ```
6
- npm install -D @raidou/oxlint-config-base oxlint oxlint-tsgolint oxfmt
6
+ npm install -D @raidou/oxlint-config-base oxlint oxfmt
7
7
  ```
8
8
 
9
- `oxlint-tsgolint` are declared as peer dependencies and installed automatically by npm 7+.
10
-
11
9
  ## Usage
12
10
 
13
11
  ### oxlint
@@ -27,8 +25,6 @@ export default defineConfig({
27
25
 
28
26
  ### Tailwind CSS
29
27
 
30
- Requires a Tailwind CSS v4 project (the plugin itself depends on `tailwindcss ^4.3.3`) and oxlint >= 1.43. `oxlint-tailwindcss` is a mandatory peer dependency installed automatically by npm 7+ / pnpm 8+.
31
-
32
28
  oxlint.config.ts
33
29
 
34
30
  ```typescript
@@ -37,13 +33,11 @@ import { defineConfig } from 'oxlint'
37
33
 
38
34
  export default defineConfig({
39
35
  env: { builtin: true, node: true },
40
- extends: [config],
41
- ...tailwindcss({ entryPoint: 'src/styles.css' }),
36
+ settings: { tailwindcss: { entryPoint: 'src/styles.css' } },
37
+ extends: [config, tailwindcss()],
42
38
  })
43
39
  ```
44
40
 
45
- `entryPoint` must point to the CSS file containing `@import "tailwindcss"`. The settings are passed top-level because configs referenced via `extends` don't inherit `settings`.
46
-
47
41
  ### oxfmt
48
42
 
49
43
  oxfmt.config.ts