@oliver139/eslint-config 2.0.1 → 2.0.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/cli.js +1 -1
- package/dist/index.js +5 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ import c from "ansis";
|
|
|
11
11
|
var package_default = {
|
|
12
12
|
name: "@oliver139/eslint-config",
|
|
13
13
|
type: "module",
|
|
14
|
-
version: "2.0.
|
|
14
|
+
version: "2.0.2",
|
|
15
15
|
packageManager: "pnpm@10.6.2",
|
|
16
16
|
description: " Oliver's ESLint config preset powered by @antfu/eslint-config",
|
|
17
17
|
author: "Oliver Mak <oliver139.working@gmail.com> (https://github.com/oliver139)",
|
package/dist/index.js
CHANGED
|
@@ -782,7 +782,6 @@ async function javascript(options = {}) {
|
|
|
782
782
|
"array-callback-return": "error",
|
|
783
783
|
"block-scoped-var": "error",
|
|
784
784
|
"constructor-super": "error",
|
|
785
|
-
"curly": ["error", "multi-line", "consistent"],
|
|
786
785
|
"default-case-last": "error",
|
|
787
786
|
"dot-notation": ["error", { allowKeywords: true }],
|
|
788
787
|
"eqeqeq": ["error", "smart"],
|
|
@@ -2226,6 +2225,11 @@ async function vue(options = {}) {
|
|
|
2226
2225
|
const {
|
|
2227
2226
|
indent = 2
|
|
2228
2227
|
} = typeof stylistic2 === "boolean" ? {} : stylistic2;
|
|
2228
|
+
if (a11y) {
|
|
2229
|
+
await ensurePackages([
|
|
2230
|
+
"eslint-plugin-vuejs-accessibility"
|
|
2231
|
+
]);
|
|
2232
|
+
}
|
|
2229
2233
|
const [
|
|
2230
2234
|
pluginVue,
|
|
2231
2235
|
parserVue,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliver139/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": " Oliver's ESLint config preset powered by @antfu/eslint-config",
|
|
6
6
|
"author": "Oliver Mak <oliver139.working@gmail.com> (https://github.com/oliver139)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"typescript": "^5.8.2",
|
|
159
159
|
"vitest": "^3.0.8",
|
|
160
160
|
"vue": "^3.5.13",
|
|
161
|
-
"@oliver139/eslint-config": "2.0.
|
|
161
|
+
"@oliver139/eslint-config": "2.0.2"
|
|
162
162
|
},
|
|
163
163
|
"simple-git-hooks": {
|
|
164
164
|
"pre-commit": "npx lint-staged"
|