@lincy/eslint-config 4.2.5 → 4.2.6
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 +20 -0
- package/dist/index.js +20 -0
- package/package.json +34 -34
package/dist/index.cjs
CHANGED
|
@@ -1478,6 +1478,7 @@ async function typescript(options = {}) {
|
|
|
1478
1478
|
"ts/ban-types": ["error", { types: { Function: false } }],
|
|
1479
1479
|
"ts/consistent-type-definitions": ["error", "interface"],
|
|
1480
1480
|
"ts/consistent-type-imports": ["error", { disallowTypeAnnotations: false, prefer: "type-imports" }],
|
|
1481
|
+
"ts/method-signature-style": ["error", "property"],
|
|
1481
1482
|
"ts/no-dupe-class-members": "error",
|
|
1482
1483
|
"ts/no-dynamic-delete": "off",
|
|
1483
1484
|
"ts/no-explicit-any": "off",
|
|
@@ -1639,6 +1640,24 @@ async function vue(options = {}) {
|
|
|
1639
1640
|
]);
|
|
1640
1641
|
return [
|
|
1641
1642
|
{
|
|
1643
|
+
languageOptions: {
|
|
1644
|
+
globals: {
|
|
1645
|
+
computed: "readonly",
|
|
1646
|
+
defineEmits: "readonly",
|
|
1647
|
+
defineExpose: "readonly",
|
|
1648
|
+
defineProps: "readonly",
|
|
1649
|
+
onMounted: "readonly",
|
|
1650
|
+
onUnmounted: "readonly",
|
|
1651
|
+
reactive: "readonly",
|
|
1652
|
+
ref: "readonly",
|
|
1653
|
+
shallowReactive: "readonly",
|
|
1654
|
+
shallowRef: "readonly",
|
|
1655
|
+
toRef: "readonly",
|
|
1656
|
+
toRefs: "readonly",
|
|
1657
|
+
watch: "readonly",
|
|
1658
|
+
watchEffect: "readonly"
|
|
1659
|
+
}
|
|
1660
|
+
},
|
|
1642
1661
|
name: "eslint:vue:setup",
|
|
1643
1662
|
plugins: {
|
|
1644
1663
|
vue: pluginVue
|
|
@@ -1887,6 +1906,7 @@ async function toml(options = {}) {
|
|
|
1887
1906
|
|
|
1888
1907
|
// src/factory.ts
|
|
1889
1908
|
var flatConfigProps = [
|
|
1909
|
+
"name",
|
|
1890
1910
|
"files",
|
|
1891
1911
|
"ignores",
|
|
1892
1912
|
"languageOptions",
|
package/dist/index.js
CHANGED
|
@@ -1389,6 +1389,7 @@ async function typescript(options = {}) {
|
|
|
1389
1389
|
"ts/ban-types": ["error", { types: { Function: false } }],
|
|
1390
1390
|
"ts/consistent-type-definitions": ["error", "interface"],
|
|
1391
1391
|
"ts/consistent-type-imports": ["error", { disallowTypeAnnotations: false, prefer: "type-imports" }],
|
|
1392
|
+
"ts/method-signature-style": ["error", "property"],
|
|
1392
1393
|
"ts/no-dupe-class-members": "error",
|
|
1393
1394
|
"ts/no-dynamic-delete": "off",
|
|
1394
1395
|
"ts/no-explicit-any": "off",
|
|
@@ -1550,6 +1551,24 @@ async function vue(options = {}) {
|
|
|
1550
1551
|
]);
|
|
1551
1552
|
return [
|
|
1552
1553
|
{
|
|
1554
|
+
languageOptions: {
|
|
1555
|
+
globals: {
|
|
1556
|
+
computed: "readonly",
|
|
1557
|
+
defineEmits: "readonly",
|
|
1558
|
+
defineExpose: "readonly",
|
|
1559
|
+
defineProps: "readonly",
|
|
1560
|
+
onMounted: "readonly",
|
|
1561
|
+
onUnmounted: "readonly",
|
|
1562
|
+
reactive: "readonly",
|
|
1563
|
+
ref: "readonly",
|
|
1564
|
+
shallowReactive: "readonly",
|
|
1565
|
+
shallowRef: "readonly",
|
|
1566
|
+
toRef: "readonly",
|
|
1567
|
+
toRefs: "readonly",
|
|
1568
|
+
watch: "readonly",
|
|
1569
|
+
watchEffect: "readonly"
|
|
1570
|
+
}
|
|
1571
|
+
},
|
|
1553
1572
|
name: "eslint:vue:setup",
|
|
1554
1573
|
plugins: {
|
|
1555
1574
|
vue: pluginVue
|
|
@@ -1798,6 +1817,7 @@ async function toml(options = {}) {
|
|
|
1798
1817
|
|
|
1799
1818
|
// src/factory.ts
|
|
1800
1819
|
var flatConfigProps = [
|
|
1820
|
+
"name",
|
|
1801
1821
|
"files",
|
|
1802
1822
|
"ignores",
|
|
1803
1823
|
"languageOptions",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lincy/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.6",
|
|
5
5
|
"packageManager": "pnpm@8.7.6",
|
|
6
6
|
"description": "LinCenYing's ESLint config",
|
|
7
7
|
"author": "LinCenYing <lincenying@gmail.com> (https://github.com/lincenying/)",
|
|
@@ -64,66 +64,66 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@antfu/eslint-define-config": "1.23.0-2",
|
|
66
66
|
"@antfu/install-pkg": "^0.3.1",
|
|
67
|
-
"@stylistic/eslint-plugin": "1.
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
69
|
-
"@typescript-eslint/parser": "^
|
|
70
|
-
"eslint-config-flat-gitignore": "^0.1.
|
|
67
|
+
"@stylistic/eslint-plugin": "1.6.3",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
69
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
70
|
+
"eslint-config-flat-gitignore": "^0.1.3",
|
|
71
71
|
"eslint-merge-processors": "^0.1.0",
|
|
72
72
|
"eslint-parser-plain": "^0.1.0",
|
|
73
|
-
"eslint-plugin-antfu": "^2.1.
|
|
73
|
+
"eslint-plugin-antfu": "^2.1.2",
|
|
74
74
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
75
75
|
"eslint-plugin-i": "^2.29.1",
|
|
76
|
-
"eslint-plugin-jsdoc": "^48.
|
|
77
|
-
"eslint-plugin-jsonc": "^2.
|
|
78
|
-
"eslint-plugin-markdown": "^
|
|
76
|
+
"eslint-plugin-jsdoc": "^48.2.1",
|
|
77
|
+
"eslint-plugin-jsonc": "^2.13.0",
|
|
78
|
+
"eslint-plugin-markdown": "^4.0.1",
|
|
79
79
|
"eslint-plugin-n": "^16.6.2",
|
|
80
80
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
81
|
-
"eslint-plugin-perfectionist": "^2.
|
|
81
|
+
"eslint-plugin-perfectionist": "^2.6.0",
|
|
82
82
|
"eslint-plugin-toml": "^0.9.2",
|
|
83
|
-
"eslint-plugin-unicorn": "^
|
|
84
|
-
"eslint-plugin-unused-imports": "^3.
|
|
85
|
-
"eslint-plugin-vitest": "^0.3.
|
|
86
|
-
"eslint-plugin-vue": "^9.
|
|
83
|
+
"eslint-plugin-unicorn": "^51.0.1",
|
|
84
|
+
"eslint-plugin-unused-imports": "^3.1.0",
|
|
85
|
+
"eslint-plugin-vitest": "^0.3.25",
|
|
86
|
+
"eslint-plugin-vue": "^9.23.0",
|
|
87
87
|
"eslint-plugin-yml": "^1.12.2",
|
|
88
88
|
"eslint-processor-vue-blocks": "^0.1.1",
|
|
89
|
-
"globals": "^
|
|
89
|
+
"globals": "^14.0.0",
|
|
90
90
|
"jsonc-eslint-parser": "^2.4.0",
|
|
91
91
|
"local-pkg": "^0.5.0",
|
|
92
92
|
"prompts": "^2.4.2",
|
|
93
93
|
"toml-eslint-parser": "^0.9.3",
|
|
94
|
-
"vue-eslint-parser": "^9.4.
|
|
94
|
+
"vue-eslint-parser": "^9.4.2",
|
|
95
95
|
"yaml-eslint-parser": "^1.2.2"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@antfu/ni": "^0.21.12",
|
|
99
|
-
"@eslint-types/jsdoc": "48.0
|
|
100
|
-
"@eslint-types/typescript-eslint": "^
|
|
101
|
-
"@eslint-types/unicorn": "^
|
|
99
|
+
"@eslint-types/jsdoc": "48.2.0",
|
|
100
|
+
"@eslint-types/typescript-eslint": "^7.0.2",
|
|
101
|
+
"@eslint-types/unicorn": "^51.0.1",
|
|
102
102
|
"@lincy/eslint-config": "workspace:*",
|
|
103
|
-
"@stylistic/eslint-plugin-migrate": "^1.
|
|
104
|
-
"@types/eslint": "^8.56.
|
|
105
|
-
"@types/node": "^20.11.
|
|
103
|
+
"@stylistic/eslint-plugin-migrate": "^1.6.3",
|
|
104
|
+
"@types/eslint": "^8.56.5",
|
|
105
|
+
"@types/node": "^20.11.26",
|
|
106
106
|
"@types/prompts": "^2.4.9",
|
|
107
|
-
"@unocss/eslint-plugin": "^0.58.
|
|
108
|
-
"bumpp": "^9.
|
|
109
|
-
"eslint": "^8.
|
|
107
|
+
"@unocss/eslint-plugin": "^0.58.5",
|
|
108
|
+
"bumpp": "^9.4.0",
|
|
109
|
+
"eslint": "^8.57.0",
|
|
110
110
|
"eslint-flat-config-viewer": "^0.1.11",
|
|
111
111
|
"eslint-plugin-format": "^0.1.0",
|
|
112
|
-
"eslint-plugin-react": "^7.
|
|
112
|
+
"eslint-plugin-react": "^7.34.0",
|
|
113
113
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
114
114
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
115
|
-
"esno": "^4.
|
|
116
|
-
"lint-staged": "^15.2.
|
|
117
|
-
"prettier": "^3.2.
|
|
115
|
+
"esno": "^4.7.0",
|
|
116
|
+
"lint-staged": "^15.2.2",
|
|
117
|
+
"prettier": "^3.2.5",
|
|
118
118
|
"rimraf": "^5.0.5",
|
|
119
|
-
"simple-git-hooks": "^2.
|
|
119
|
+
"simple-git-hooks": "^2.10.0",
|
|
120
120
|
"simple-open-url": "^3.0.1",
|
|
121
121
|
"sucrase": "^3.35.0",
|
|
122
|
-
"tsup": "^8.0.
|
|
123
|
-
"typescript": "^5.
|
|
122
|
+
"tsup": "^8.0.2",
|
|
123
|
+
"typescript": "^5.4.2",
|
|
124
124
|
"unbuild": "^2.0.0",
|
|
125
|
-
"vitest": "^1.
|
|
126
|
-
"vue": "^3.4.
|
|
125
|
+
"vitest": "^1.3.1",
|
|
126
|
+
"vue": "^3.4.21"
|
|
127
127
|
},
|
|
128
128
|
"pnpm": {
|
|
129
129
|
"peerDependencyRules": {
|