@gsc-basic/eslint-config 1.0.1 → 1.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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -2
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var u=Object.create;var
|
|
1
|
+
var u=Object.create;var o=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty;var f=(e,r)=>{for(var n in r)o(e,n,{get:r[n],enumerable:!0})},a=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of c(r))!d.call(e,s)&&s!==n&&o(e,s,{get:()=>r[s],enumerable:!(t=l(r,s))||t.enumerable});return e};var p=(e,r,n)=>(n=e!=null?u(m(e)):{},a(r||!e||!e.__esModule?o(n,"default",{value:e,enumerable:!0}):n,e)),v=e=>a(o({},"__esModule",{value:!0}),e);var y={};f(y,{gscEslint:()=>g});module.exports=v(y);var i=p(require("@antfu/eslint-config"),1),g=(e={})=>(0,i.default)({type:e.type??"app",unocss:e.unocss??!0,lessOpinionated:e.lessOpinionated??!0,formatters:e.formatters??!0,isInEditor:e.isInEditor??!0,jsx:e.jsx??!0,ignores:e.ignores??[],vue:e.vue??!0,react:e.react??!1,stylistic:{indent:2,quotes:"single",semi:!0,quoteProps:"as-needed"},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"]}]}}},{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-named-imports":0}},{files:["**/*.jsx"],rules:{"no-unused-vars":0,"unused-imports/no-unused-vars":0}},...e.flatConfig??[]);0&&(module.exports={gscEslint});
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from"@antfu/eslint-config";var t=(e={})=>r({type:e.type??"app",unocss:e.unocss??!0,lessOpinionated:e.lessOpinionated??!0,formatters:e.formatters??!0,isInEditor:e.isInEditor??!0,jsx:e.jsx??!0,ignores:e.ignores??[],vue:e.vue??!0,react:e.react??!1,stylistic:{indent:2,quotes:"single",semi:!0,quoteProps:"as-needed"},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"]}]}}},{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-named-imports":0}},{files:["**/*.jsx"],rules:{"no-unused-vars":0,"unused-imports/no-unused-vars":0}},...e.flatConfig??[]);export{t as gscEslint};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gsc-basic/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"description": "ESLint config for GSC Basic Team",
|
|
6
6
|
"author": "wangll47 <wangll47@lenovo.com>",
|
|
7
7
|
"license": "UNLICENSED",
|
|
@@ -24,7 +24,10 @@
|
|
|
24
24
|
"./dist"
|
|
25
25
|
],
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"eslint": "^
|
|
27
|
+
"@eslint-react/eslint-plugin": "^1.14.3",
|
|
28
|
+
"eslint": "^9.12.0",
|
|
29
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
30
|
+
"eslint-plugin-react-refresh": "^0.4.12"
|
|
28
31
|
},
|
|
29
32
|
"dependencies": {
|
|
30
33
|
"@antfu/eslint-config": "^3.7.2",
|
|
@@ -33,6 +36,7 @@
|
|
|
33
36
|
},
|
|
34
37
|
"scripts": {
|
|
35
38
|
"build": "tsup --format esm,cjs --minify",
|
|
39
|
+
"outdated": "pnpm outdated",
|
|
36
40
|
"clean": "rimraf ./dist"
|
|
37
41
|
}
|
|
38
42
|
}
|