@july_cm/eslint-config 2.4.1 → 2.4.2
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/lib/index.cjs +4 -0
- package/lib/index.mjs +4 -0
- package/package.json +3 -1
package/lib/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const config = require("eslint/config");
|
|
4
4
|
const css$1 = require("@eslint/css");
|
|
5
5
|
const prettier = require("eslint-plugin-prettier");
|
|
6
|
+
const tailwindCsstree = require("tailwind-csstree");
|
|
6
7
|
const eslintJs = require("@eslint/js");
|
|
7
8
|
const eslintPluginImport = require("eslint-plugin-import");
|
|
8
9
|
const recommended$1 = require("eslint-plugin-prettier/recommended");
|
|
@@ -13,6 +14,9 @@ const cssConfig = config.defineConfig([
|
|
|
13
14
|
files: ["**/*.css"],
|
|
14
15
|
plugins: { css: css$1, prettier },
|
|
15
16
|
language: "css/css",
|
|
17
|
+
languageOptions: {
|
|
18
|
+
customSyntax: tailwindCsstree.tailwind4
|
|
19
|
+
},
|
|
16
20
|
rules: {
|
|
17
21
|
"css/no-empty-blocks": "error",
|
|
18
22
|
"prettier/prettier": [
|
package/lib/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineConfig } from "eslint/config";
|
|
2
2
|
import css$1 from "@eslint/css";
|
|
3
3
|
import prettier from "eslint-plugin-prettier";
|
|
4
|
+
import { tailwind4 } from "tailwind-csstree";
|
|
4
5
|
import eslintJs from "@eslint/js";
|
|
5
6
|
import eslintPluginImport from "eslint-plugin-import";
|
|
6
7
|
import recommended$1 from "eslint-plugin-prettier/recommended";
|
|
@@ -11,6 +12,9 @@ const cssConfig = defineConfig([
|
|
|
11
12
|
files: ["**/*.css"],
|
|
12
13
|
plugins: { css: css$1, prettier },
|
|
13
14
|
language: "css/css",
|
|
15
|
+
languageOptions: {
|
|
16
|
+
customSyntax: tailwind4
|
|
17
|
+
},
|
|
14
18
|
rules: {
|
|
15
19
|
"css/no-empty-blocks": "error",
|
|
16
20
|
"prettier/prettier": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@july_cm/eslint-config",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"author": "July",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"test:cov": "vitest run --coverage",
|
|
22
22
|
"release": "release-it -ci"
|
|
23
23
|
},
|
|
24
|
+
"packageManager": "pnpm@10.26.1",
|
|
24
25
|
"dependencies": {
|
|
25
26
|
"@eslint/css": "^0.14.1",
|
|
26
27
|
"@eslint/js": "^9.39.1",
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
"eslint-plugin-import": "^2.32.0",
|
|
31
32
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
32
33
|
"eslint-plugin-prettier": "^5.5.4",
|
|
34
|
+
"tailwind-csstree": "^0.1.4",
|
|
33
35
|
"typescript-eslint": "^8.49.0"
|
|
34
36
|
},
|
|
35
37
|
"devDependencies": {
|