@gsc-basic/eslint-config 1.1.1 → 1.1.3

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 CHANGED
@@ -1 +1 @@
1
- "use strict";var u=Object.create;var t=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var p=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})},i=(e,r,n,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of l(r))!m.call(e,o)&&o!==n&&t(e,o,{get:()=>r[o],enumerable:!(s=c(r,o))||s.enumerable});return e};var d=(e,r,n)=>(n=e!=null?u(f(e)):{},i(r||!e||!e.__esModule?t(n,"default",{value:e,enumerable:!0}):n,e)),v=e=>i(t({},"__esModule",{value:!0}),e);var y={};p(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}},...e.flatConfig??[]);0&&(module.exports={gscEslint});
1
+ "use strict";var l=Object.create;var t=Object.defineProperty;var u=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=u(n,o))||s.enumerable});return e};var d=(e,n,r)=>(r=e!=null?l(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}},...e.flatConfig??[]);0&&(module.exports={gscEslint});
package/dist/index.d.cts CHANGED
@@ -1,7 +1,10 @@
1
1
  import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
2
2
  import * as _antfu_eslint_config from '@antfu/eslint-config';
3
- import { OptionsProjectType, OptionsConfig } from '@antfu/eslint-config';
3
+ import { OptionsProjectType, OptionsConfig, OptionsFiles } from '@antfu/eslint-config';
4
4
 
5
+ interface FlatConfig extends OptionsFiles {
6
+ rules: Record<string, any>;
7
+ }
5
8
  interface GscEslintOptions extends OptionsProjectType {
6
9
  unocss?: boolean;
7
10
  jsx?: boolean;
@@ -9,7 +12,7 @@ interface GscEslintOptions extends OptionsProjectType {
9
12
  react?: boolean;
10
13
  ignores?: string[];
11
14
  antfu?: OptionsConfig;
12
- flatConfig?: Record<string, any>[];
15
+ flatConfig?: FlatConfig[];
13
16
  }
14
17
  declare const gscEslint: (options?: GscEslintOptions) => eslint_flat_config_utils.FlatConfigComposer<_antfu_eslint_config.TypedFlatConfigItem, _antfu_eslint_config.ConfigNames>;
15
18
 
package/dist/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
2
2
  import * as _antfu_eslint_config from '@antfu/eslint-config';
3
- import { OptionsProjectType, OptionsConfig } from '@antfu/eslint-config';
3
+ import { OptionsProjectType, OptionsConfig, OptionsFiles } from '@antfu/eslint-config';
4
4
 
5
+ interface FlatConfig extends OptionsFiles {
6
+ rules: Record<string, any>;
7
+ }
5
8
  interface GscEslintOptions extends OptionsProjectType {
6
9
  unocss?: boolean;
7
10
  jsx?: boolean;
@@ -9,7 +12,7 @@ interface GscEslintOptions extends OptionsProjectType {
9
12
  react?: boolean;
10
13
  ignores?: string[];
11
14
  antfu?: OptionsConfig;
12
- flatConfig?: Record<string, any>[];
15
+ flatConfig?: FlatConfig[];
13
16
  }
14
17
  declare const gscEslint: (options?: GscEslintOptions) => eslint_flat_config_utils.FlatConfigComposer<_antfu_eslint_config.TypedFlatConfigItem, _antfu_eslint_config.ConfigNames>;
15
18
 
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import r from"@antfu/eslint-config";var s=(e={})=>r({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}},...e.flatConfig??[]);export{s as gscEslint};
1
+ 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}},...e.flatConfig??[]);export{s 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.1.1",
4
+ "version": "1.1.3",
5
5
  "description": "ESLint config for GSC Basic Team",
6
6
  "author": "wangll47 <wangll47@lenovo.com>",
7
7
  "license": "UNLICENSED",
@@ -25,22 +25,23 @@
25
25
  }
26
26
  },
27
27
  "main": "./dist/index.js",
28
+ "types": "./dist/index.d.ts",
28
29
  "files": [
29
30
  "./dist"
30
31
  ],
31
32
  "peerDependencies": {
32
- "@eslint-react/eslint-plugin": "^1.20.1",
33
+ "@eslint-react/eslint-plugin": "^1.23.2",
33
34
  "eslint": "^9.18.0",
34
35
  "eslint-plugin-react-hooks": "^5.1.0",
35
36
  "eslint-plugin-react-refresh": "^0.4.18"
36
37
  },
37
38
  "dependencies": {
38
- "@antfu/eslint-config": "^3.14.0",
39
- "@unocss/eslint-plugin": "^65.4.0",
39
+ "@antfu/eslint-config": "^3.16.0",
40
+ "@unocss/eslint-plugin": "^65.4.3",
40
41
  "eslint-plugin-format": "^1.0.1"
41
42
  },
42
43
  "scripts": {
43
- "build": "tsup --format esm,cjs --minify",
44
+ "build": "tsup",
44
45
  "outdated": "pnpm outdated",
45
46
  "clean": "rimraf ./dist"
46
47
  }