@luxass/eslint-config 4.8.1 → 4.8.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/dist/index.js CHANGED
@@ -839,6 +839,9 @@ async function jsonc(options = {}) {
839
839
  overrides = {},
840
840
  stylistic: stylistic2 = true
841
841
  } = options;
842
+ const {
843
+ indent = 2
844
+ } = typeof stylistic2 === "boolean" ? {} : stylistic2;
842
845
  const [
843
846
  pluginJsonc,
844
847
  parserJsonc
@@ -890,7 +893,7 @@ async function jsonc(options = {}) {
890
893
  "jsonc/array-bracket-spacing": ["error", "never"],
891
894
  "jsonc/comma-dangle": ["error", "never"],
892
895
  "jsonc/comma-style": ["error", "last"],
893
- "jsonc/indent": ["error", 2],
896
+ "jsonc/indent": ["error", indent],
894
897
  "jsonc/key-spacing": [
895
898
  "error",
896
899
  { afterColon: true, beforeColon: false }
@@ -1564,7 +1567,8 @@ async function unocss(options = {}) {
1564
1567
  const {
1565
1568
  attributify = true,
1566
1569
  overrides,
1567
- strict = false
1570
+ strict = false,
1571
+ configPath
1568
1572
  } = options;
1569
1573
  await ensure([
1570
1574
  "@unocss/eslint-plugin"
@@ -1580,6 +1584,13 @@ async function unocss(options = {}) {
1580
1584
  plugins: {
1581
1585
  unocss: pluginUnoCSS
1582
1586
  },
1587
+ settings: {
1588
+ ...configPath != null ? {
1589
+ unocss: {
1590
+ configPath
1591
+ }
1592
+ } : {}
1593
+ },
1583
1594
  rules: {
1584
1595
  "unocss/order": "warn",
1585
1596
  ...attributify ? {
@@ -1814,8 +1825,8 @@ async function astro(options = {}) {
1814
1825
  // src/configs/tailwindcss.ts
1815
1826
  async function tailwindcss(options = {}) {
1816
1827
  const {
1817
- files = [GLOB_SRC],
1818
- overrides
1828
+ overrides,
1829
+ configPath
1819
1830
  } = options;
1820
1831
  await ensure([
1821
1832
  "eslint-plugin-tailwindcss"
@@ -1827,7 +1838,7 @@ async function tailwindcss(options = {}) {
1827
1838
  ]);
1828
1839
  return [
1829
1840
  {
1830
- name: "luxass/tailwindcss/setup",
1841
+ name: "luxass/tailwindcss",
1831
1842
  languageOptions: {
1832
1843
  parserOptions: {
1833
1844
  ecmaFeatures: {
@@ -1835,13 +1846,16 @@ async function tailwindcss(options = {}) {
1835
1846
  }
1836
1847
  }
1837
1848
  },
1849
+ settings: {
1850
+ ...configPath != null ? {
1851
+ tailwindcss: {
1852
+ config: configPath
1853
+ }
1854
+ } : {}
1855
+ },
1838
1856
  plugins: {
1839
1857
  tailwindcss: pluginTailwindCSS
1840
- }
1841
- },
1842
- {
1843
- name: "luxass/tailwindcss/rules",
1844
- files,
1858
+ },
1845
1859
  rules: {
1846
1860
  // https://github.com/francoismassart/eslint-plugin-tailwindcss/blob/master/docs/rules/classnames-order.md
1847
1861
  "tailwindcss/classnames-order": "warn",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxass/eslint-config",
3
- "version": "4.8.1",
3
+ "version": "4.8.2",
4
4
  "description": "ESLint config for @luxass",
5
5
  "type": "module",
6
6
  "author": {
@@ -130,19 +130,21 @@
130
130
  "@typescript-eslint/rule-tester": "^7.14.1",
131
131
  "@unocss/eslint-plugin": "^0.61.0",
132
132
  "astro-eslint-parser": "^1.0.2",
133
- "eslint": "npm:eslint-ts-patch@9.2.0-6",
133
+ "eslint": "^9.6.0",
134
134
  "eslint-plugin-astro": "^1.2.2",
135
135
  "eslint-plugin-format": "^0.1.2",
136
136
  "eslint-plugin-react-hooks": "^4.6.2",
137
137
  "eslint-plugin-react-refresh": "^0.4.7",
138
138
  "eslint-plugin-tailwindcss": "^3.17.4",
139
139
  "eslint-typegen": "^0.2.4",
140
+ "jiti": "^1.21.6",
140
141
  "lint-staged": "^15.2.7",
141
142
  "prettier-plugin-astro": "^0.14.0",
142
143
  "simple-git-hooks": "^2.11.1",
144
+ "tailwindcss": "^3.4.4",
143
145
  "tsup": "^8.1.0",
144
- "tsx": "^4.16.0",
145
146
  "typescript": "^5.5.2",
147
+ "unocss": "^0.61.3",
146
148
  "vitest": "^1.6.0",
147
149
  "vue": "^3.4.31"
148
150
  },