@luxass/eslint-config 4.8.1 → 4.8.3
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.cjs +24 -10
- package/dist/index.d.cts +130 -113
- package/dist/index.d.ts +130 -113
- package/dist/index.js +24 -10
- package/package.json +21 -19
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",
|
|
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
|
-
|
|
1818
|
-
|
|
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
|
|
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.
|
|
3
|
+
"version": "4.8.3",
|
|
4
4
|
"description": "ESLint config for @luxass",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"email": "lucasnrgaard@gmail.com",
|
|
9
9
|
"url": "https://luxass.dev"
|
|
10
10
|
},
|
|
11
|
-
"packageManager": "pnpm@9.
|
|
11
|
+
"packageManager": "pnpm@9.5.0",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
@@ -92,27 +92,27 @@
|
|
|
92
92
|
"@antfu/install-pkg": "^0.3.3",
|
|
93
93
|
"@clack/prompts": "^0.7.0",
|
|
94
94
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
|
|
95
|
-
"@stylistic/eslint-plugin": "^2.
|
|
96
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
97
|
-
"@typescript-eslint/parser": "^7.
|
|
98
|
-
"eslint-config-flat-gitignore": "^0.1.
|
|
95
|
+
"@stylistic/eslint-plugin": "^2.3.0",
|
|
96
|
+
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
|
97
|
+
"@typescript-eslint/parser": "^7.15.0",
|
|
98
|
+
"eslint-config-flat-gitignore": "^0.1.6",
|
|
99
99
|
"eslint-flat-config-utils": "^0.2.5",
|
|
100
100
|
"eslint-merge-processors": "^0.1.0",
|
|
101
|
-
"eslint-plugin-antfu": "^2.3.
|
|
102
|
-
"eslint-plugin-import-x": "^0.5.
|
|
103
|
-
"eslint-plugin-jsdoc": "^48.2
|
|
101
|
+
"eslint-plugin-antfu": "^2.3.4",
|
|
102
|
+
"eslint-plugin-import-x": "^0.5.3",
|
|
103
|
+
"eslint-plugin-jsdoc": "^48.5.2",
|
|
104
104
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
105
105
|
"eslint-plugin-markdown": "^5.0.0",
|
|
106
|
-
"eslint-plugin-n": "^17.
|
|
106
|
+
"eslint-plugin-n": "^17.9.0",
|
|
107
107
|
"eslint-plugin-regexp": "^2.6.0",
|
|
108
|
-
"eslint-plugin-toml": "^0.11.
|
|
108
|
+
"eslint-plugin-toml": "^0.11.1",
|
|
109
109
|
"eslint-plugin-unicorn": "^54.0.0",
|
|
110
110
|
"eslint-plugin-unused-imports": "^4.0.0",
|
|
111
111
|
"eslint-plugin-vitest": "^0.5.4",
|
|
112
|
-
"eslint-plugin-vue": "^9.
|
|
112
|
+
"eslint-plugin-vue": "^9.27.0",
|
|
113
113
|
"eslint-plugin-yml": "^1.14.0",
|
|
114
114
|
"eslint-processor-vue-blocks": "^0.1.2",
|
|
115
|
-
"globals": "^15.
|
|
115
|
+
"globals": "^15.8.0",
|
|
116
116
|
"jsonc-eslint-parser": "^2.4.0",
|
|
117
117
|
"local-pkg": "^0.5.0",
|
|
118
118
|
"parse-gitignore": "^2.0.0",
|
|
@@ -121,28 +121,30 @@
|
|
|
121
121
|
"yaml-eslint-parser": "^1.2.3"
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|
|
124
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
|
124
|
+
"@eslint-react/eslint-plugin": "^1.5.23",
|
|
125
125
|
"@eslint/config-inspector": "^0.5.1",
|
|
126
126
|
"@stylistic/eslint-plugin-migrate": "^2.3.0",
|
|
127
127
|
"@types/eslint": "^8.56.10",
|
|
128
128
|
"@types/estree": "^1.0.5",
|
|
129
129
|
"@types/node": "^20.14.9",
|
|
130
|
-
"@typescript-eslint/rule-tester": "^7.
|
|
131
|
-
"@unocss/eslint-plugin": "^0.61.
|
|
130
|
+
"@typescript-eslint/rule-tester": "^7.15.0",
|
|
131
|
+
"@unocss/eslint-plugin": "^0.61.3",
|
|
132
132
|
"astro-eslint-parser": "^1.0.2",
|
|
133
|
-
"eslint": "
|
|
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
|
-
"
|
|
145
|
-
"
|
|
146
|
+
"typescript": "^5.5.3",
|
|
147
|
+
"unocss": "^0.61.3",
|
|
146
148
|
"vitest": "^1.6.0",
|
|
147
149
|
"vue": "^3.4.31"
|
|
148
150
|
},
|