@th1o/frontend-lint 0.0.1 → 0.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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as PACKAGE_NAMESPACE } from "./namespace-nrXFf9VY.mjs";
1
+ import { n as PACKAGE_NAMESPACE } from "./namespace-43eDtFYM.mjs";
2
2
  import process from "node:process";
3
3
  import fs from "node:fs/promises";
4
4
  import fs$1 from "node:fs";
@@ -10,7 +10,7 @@ import parse from "parse-gitignore";
10
10
  import { execSync } from "node:child_process";
11
11
 
12
12
  //#region package.json
13
- var version = "0.0.1";
13
+ var version = "0.0.2";
14
14
 
15
15
  //#endregion
16
16
  //#region src/cli/constants.ts
package/dist/index.d.mts CHANGED
@@ -19453,6 +19453,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
19453
19453
  ignores?: string[] | ((originals: string[]) => string[]);
19454
19454
  /**
19455
19455
  * Disable some opinionated rules to Anthony's preference.
19456
+ * 不需要设置个人风格化,团队通过的标准直接写在默认中
19456
19457
  *
19457
19458
  * Including:
19458
19459
  * - `antfu/top-level-function`
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as PACKAGE_NAMESPACE, t as LINT_NAMESPACE } from "./namespace-nrXFf9VY.mjs";
1
+ import { n as PACKAGE_NAMESPACE, t as LINT_NAMESPACE } from "./namespace-43eDtFYM.mjs";
2
2
  import { FlatConfigComposer } from "eslint-flat-config-utils";
3
3
  import process from "node:process";
4
4
  import fs from "node:fs/promises";
@@ -397,10 +397,7 @@ async function stylistic(options = {}) {
397
397
  [`${LINT_NAMESPACE}/consistent-chaining`]: "error",
398
398
  [`${LINT_NAMESPACE}/top-level-function`]: "error",
399
399
  "curly": ["error", "all"],
400
- "style/array-bracket-newline": ["error", {
401
- minItems: 3,
402
- multiline: true
403
- }],
400
+ "style/array-bracket-newline": ["error", { multiline: true }],
404
401
  "style/brace-style": ["error", "1tbs"],
405
402
  "style/comma-dangle": ["error", {
406
403
  arrays: "always-multiline",
@@ -418,14 +415,8 @@ async function stylistic(options = {}) {
418
415
  }],
419
416
  "style/linebreak-style": ["error", "unix"],
420
417
  "style/object-curly-newline": ["error", {
421
- ObjectExpression: {
422
- minProperties: 3,
423
- multiline: true
424
- },
425
- ObjectPattern: {
426
- minProperties: 3,
427
- multiline: true
428
- }
418
+ consistent: true,
419
+ multiline: true
429
420
  }],
430
421
  "style/object-curly-spacing": ["error", "always"],
431
422
  "style/space-before-function-paren": ["error", {
@@ -2300,6 +2291,7 @@ async function vue(options = {}) {
2300
2291
  "vue/no-setup-props-reactivity-loss": "off",
2301
2292
  "vue/no-sparse-arrays": "error",
2302
2293
  "vue/no-unused-refs": "error",
2294
+ "vue/no-unused-vars": "off",
2303
2295
  "vue/no-useless-v-bind": "error",
2304
2296
  "vue/no-v-html": "off",
2305
2297
  "vue/object-shorthand": [
@@ -2352,7 +2344,10 @@ async function vue(options = {}) {
2352
2344
  after: true,
2353
2345
  before: true
2354
2346
  }],
2355
- "vue/object-curly-newline": "off",
2347
+ "vue/object-curly-newline": ["error", {
2348
+ consistent: true,
2349
+ multiline: true
2350
+ }],
2356
2351
  "vue/object-curly-spacing": ["error", "always"],
2357
2352
  "vue/object-property-newline": ["error", { allowAllPropertiesOnSameLine: true }],
2358
2353
  "vue/operator-linebreak": ["error", "before"],
@@ -0,0 +1,6 @@
1
+ //#region src/namespace.ts
2
+ const LINT_NAMESPACE = "ynzh";
3
+ const PACKAGE_NAMESPACE = "@th1o/frontend-lint";
4
+
5
+ //#endregion
6
+ export { PACKAGE_NAMESPACE as n, LINT_NAMESPACE as t };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@th1o/frontend-lint",
3
3
  "type": "module",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "description": "ESLint config",
6
6
  "author": "张天昊 <theozhang.tech@outlook.com>",
7
7
  "keywords": [
@@ -126,9 +126,11 @@
126
126
  "jsonc-eslint-parser": "^2.4.2",
127
127
  "local-pkg": "^1.1.2",
128
128
  "parse-gitignore": "^2.0.0",
129
+ "postcss-html": "^1.5.0",
129
130
  "stylelint-config-recess-order": "^7.6.0",
130
131
  "stylelint-config-recommended-vue": "^1.6.1",
131
132
  "stylelint-config-standard": "^40.0.0",
133
+ "stylelint-order": "^7.0.0",
132
134
  "toml-eslint-parser": "^1.0.3",
133
135
  "vue-eslint-parser": "^10.2.0",
134
136
  "yaml-eslint-parser": "^2.0.0"
@@ -173,7 +175,7 @@
173
175
  "typescript": "^5.9.3",
174
176
  "vitest": "^4.0.18",
175
177
  "vue": "^3.5.27",
176
- "frontend-lint": "npm:@th1o/frontend-lint@0.0.1"
178
+ "@th1o/frontend-lint": "0.0.2"
177
179
  },
178
180
  "resolutions": {
179
181
  "@eslint-community/eslint-utils": "catalog:peer",
@@ -203,6 +205,7 @@
203
205
  "release": "bumpp",
204
206
  "test": "vitest",
205
207
  "typecheck": "tsc --noEmit",
206
- "up": "taze --interactive"
208
+ "up": "taze --interactive",
209
+ "publish:npm": "pnpm publish --access public --registry https://registry.npmjs.org/"
207
210
  }
208
211
  }
@@ -1,6 +0,0 @@
1
- //#region src/namespace.ts
2
- const LINT_NAMESPACE = "ynzh";
3
- const PACKAGE_NAMESPACE = "frontend-lint";
4
-
5
- //#endregion
6
- export { PACKAGE_NAMESPACE as n, LINT_NAMESPACE as t };