@gsc-basic/eslint-config 1.1.13 → 1.2.0
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/LICENSE +6 -0
- package/README.md +6 -2
- package/dist/index.cjs +13 -0
- package/dist/index.js +13 -0
- package/package.json +7 -7
package/LICENSE
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
|
|
2
|
+
@license Proprietary
|
|
3
|
+
|
|
4
|
+
This software is the confidential and proprietary property of Lenovo SSG BASD.
|
|
5
|
+
You shall not disclose such Confidential Information and shall use it only in
|
|
6
|
+
accordance with the terms of the license agreement.
|
package/README.md
CHANGED
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
|
|
11
11
|
默认用于 `TypeScript`、`Vue`、`Jsx`、`Unocss`、`JSON`、`YAML`、`Toml`、`Markdown`等开箱即用。
|
|
12
12
|
|
|
13
|
-
可选 `React` 支持。
|
|
13
|
+
可选 `React`、`Angular` 支持。
|
|
14
14
|
|
|
15
15
|
**风格原则**:Minimal for reading, stable for diff, consistent。
|
|
16
16
|
|
|
17
17
|
## 使用
|
|
18
18
|
|
|
19
|
-
ESLint
|
|
19
|
+
ESLint v10.0.0+ is now required.
|
|
20
20
|
|
|
21
21
|
`pnpm i -D eslint @gsc-basic/eslint-config`
|
|
22
22
|
|
|
@@ -185,3 +185,7 @@ echo Run pre-commit hook done.
|
|
|
185
185
|
]
|
|
186
186
|
}
|
|
187
187
|
```
|
|
188
|
+
|
|
189
|
+
## Author & License
|
|
190
|
+
|
|
191
|
+
This package is maintained by Lenovo SSG BASD. It is distributed under the LicenseRef-Proprietary license; see LICENSE for details.
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
|
|
3
|
+
@license Proprietary
|
|
4
|
+
|
|
5
|
+
This software is the confidential and proprietary property of Lenovo SSG BASD.
|
|
6
|
+
You shall not disclose such Confidential Information and shall use it only in
|
|
7
|
+
accordance with the terms of the license agreement.
|
|
8
|
+
|
|
9
|
+
--- Build Info ---
|
|
10
|
+
Version: 1.1.13
|
|
11
|
+
Build Time: 2026/2/11 18:33:57
|
|
12
|
+
Build Commit: 9b4b89872743098216d14081433fa57d7fa73fd3
|
|
13
|
+
*/
|
|
1
14
|
"use strict";var u=Object.create;var t=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty;var m=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},i=(e,n,r,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of c(n))!p.call(e,o)&&o!==r&&t(e,o,{get:()=>n[o],enumerable:!(s=l(n,o))||s.enumerable});return e};var d=(e,n,r)=>(r=e!=null?u(f(e)):{},i(n||!e||!e.__esModule?t(r,"default",{value:e,enumerable:!0}):r,e)),v=e=>i(t({},"__esModule",{value:!0}),e);var y={};m(y,{gscEslint:()=>g});module.exports=v(y);var a=d(require("@antfu/eslint-config"),1),g=(e={})=>(0,a.default)({type:e.type??"app",unocss:e.unocss??!0,jsx:e.jsx??!0,vue:e.vue??!0,react:e.react??!1,ignores:e.ignores??[],formatters:!0,isInEditor:!0,lessOpinionated:!0,stylistic:{indent:2,quotes:"single",semi:!0},overrides:{vue:{"vue/html-self-closing":["error",{html:{void:"always",normal:"never",component:"always"},svg:"always",math:"always"}],"vue/attributes-order":2,"vue/order-in-components":2,"vue/v-on-event-hyphenation":["error","always",{autofix:!0,ignore:[]}],"vue/custom-event-name-casing":"off","vue/html-closing-bracket-spacing":"off","vue/multi-word-component-names":"off","vue/no-reserved-component-names":"off","vue/component-name-in-template-casing":"off","vue/max-attributes-per-line":["error",{singleline:{max:2},multiline:{max:1}}],"vue/block-order":["error",{order:[["template","script"],"style"]}]}},...e.antfu??{}},{rules:{"no-undef":2,"no-use-before-define":"off","no-console":2,"no-eval":2,curly:[2,"all"],eqeqeq:[2,"always",{null:"ignore"}],"prefer-promise-reject-errors":0,"sort-imports":0,"no-case-declarations":0,"import/order":0,"unicorn/prefer-dom-node-text-content":0,"style/indent-binary-ops":0,"style/no-tabs":0,"node/no-callback-literal":0,"node/prefer-global/process":0,"jsdoc/check-param-names":0,"jsdoc/require-param-name":0,"jsdoc/require-returns-description":0,"jsdoc/require-returns-check":0,"unicorn/consistent-function-scoping":0,"perfectionist/sort-imports":0,"perfectionist/sort-exports":0,"perfectionist/sort-named-imports":0}},{files:["**/*.jsx","**/*.tsx"],rules:{"no-unused-vars":0,"unused-imports/no-unused-vars":0,"unused-imports/no-unused-imports":0}},...e.flatConfig??[]);0&&(module.exports={gscEslint});
|
package/dist/index.js
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
|
|
3
|
+
@license Proprietary
|
|
4
|
+
|
|
5
|
+
This software is the confidential and proprietary property of Lenovo SSG BASD.
|
|
6
|
+
You shall not disclose such Confidential Information and shall use it only in
|
|
7
|
+
accordance with the terms of the license agreement.
|
|
8
|
+
|
|
9
|
+
--- Build Info ---
|
|
10
|
+
Version: 1.1.13
|
|
11
|
+
Build Time: 2026/2/11 18:33:57
|
|
12
|
+
Build Commit: 9b4b89872743098216d14081433fa57d7fa73fd3
|
|
13
|
+
*/
|
|
1
14
|
import n from"@antfu/eslint-config";var s=(e={})=>n({type:e.type??"app",unocss:e.unocss??!0,jsx:e.jsx??!0,vue:e.vue??!0,react:e.react??!1,ignores:e.ignores??[],formatters:!0,isInEditor:!0,lessOpinionated:!0,stylistic:{indent:2,quotes:"single",semi:!0},overrides:{vue:{"vue/html-self-closing":["error",{html:{void:"always",normal:"never",component:"always"},svg:"always",math:"always"}],"vue/attributes-order":2,"vue/order-in-components":2,"vue/v-on-event-hyphenation":["error","always",{autofix:!0,ignore:[]}],"vue/custom-event-name-casing":"off","vue/html-closing-bracket-spacing":"off","vue/multi-word-component-names":"off","vue/no-reserved-component-names":"off","vue/component-name-in-template-casing":"off","vue/max-attributes-per-line":["error",{singleline:{max:2},multiline:{max:1}}],"vue/block-order":["error",{order:[["template","script"],"style"]}]}},...e.antfu??{}},{rules:{"no-undef":2,"no-use-before-define":"off","no-console":2,"no-eval":2,curly:[2,"all"],eqeqeq:[2,"always",{null:"ignore"}],"prefer-promise-reject-errors":0,"sort-imports":0,"no-case-declarations":0,"import/order":0,"unicorn/prefer-dom-node-text-content":0,"style/indent-binary-ops":0,"style/no-tabs":0,"node/no-callback-literal":0,"node/prefer-global/process":0,"jsdoc/check-param-names":0,"jsdoc/require-param-name":0,"jsdoc/require-returns-description":0,"jsdoc/require-returns-check":0,"unicorn/consistent-function-scoping":0,"perfectionist/sort-imports":0,"perfectionist/sort-exports":0,"perfectionist/sort-named-imports":0}},{files:["**/*.jsx","**/*.tsx"],rules:{"no-unused-vars":0,"unused-imports/no-unused-vars":0,"unused-imports/no-unused-imports":0}},...e.flatConfig??[]);export{s as gscEslint};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gsc-basic/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"description": "ESLint config for GSC Basic Team",
|
|
6
|
-
"author": "
|
|
7
|
-
"license": "
|
|
6
|
+
"author": "Lenovo SSG BASD <-GSC_Scaffolding_Support@lenovo.com>",
|
|
7
|
+
"license": "LicenseRef-Proprietary",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://gitlab.xpaas.lenovo.com/tsd-basic/gsc-frontend-config.git"
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
],
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@eslint-react/eslint-plugin": "^2.7.4",
|
|
34
|
-
"eslint": "^
|
|
34
|
+
"eslint": "^10.0.0",
|
|
35
35
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
36
|
-
"eslint-plugin-react-refresh": "^0.
|
|
36
|
+
"eslint-plugin-react-refresh": "^0.5.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@antfu/eslint-config": "^7.2
|
|
39
|
+
"@antfu/eslint-config": "^7.4.2",
|
|
40
40
|
"@unocss/eslint-plugin": "^66.6.0",
|
|
41
|
-
"eslint-plugin-format": "^1.
|
|
41
|
+
"eslint-plugin-format": "^1.4.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsup",
|