@zemd/eslint-js 1.0.3 → 1.0.4
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 +2 -2
package/dist/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var z=Object.create;var u=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var F=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var l=(r,e)=>u(r,"name",{value:e,configurable:!0});var G=(r,e)=>{for(var n in e)u(r,n,{get:e[n],enumerable:!0})},m=(r,e,n,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of q(e))!_.call(r,t)&&t!==n&&u(r,t,{get:()=>e[t],enumerable:!(c=S(e,t))||c.enumerable});return r},s=(r,e,n)=>(m(r,e,"default"),n&&m(n,e,"default")),a=(r,e,n)=>(n=r!=null?z(F(r)):{},m(e||!r||!r.__esModule?u(n,"default",{value:r,enumerable:!0}):n,r)),P=r=>m(u({},"__esModule",{value:!0}),r);var o={};G(o,{default:()=>k,javascript:()=>O,json:()=>y});module.exports=P(o);var j=a(require("eslint-plugin-sonarjs"),1);var w=a(require("eslint-plugin-unicorn"),1),B={"unicorn/error-message":"error","unicorn/escape-case":"error","unicorn/expiring-todo-comments":"error","unicorn/explicit-length-check":"error","unicorn/consistent-existence-index-check":"error","unicorn/new-for-builtins":"error","unicorn/no-abusive-eslint-disable":"error","unicorn/no-array-callback-reference":"error","unicorn/no-array-for-each":"error","unicorn/no-array-method-this-argument":"error","unicorn/no-await-expression-member":"error","unicorn/no-empty-file":"error","unicorn/no-
|
1
|
+
"use strict";var z=Object.create;var u=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var F=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var l=(r,e)=>u(r,"name",{value:e,configurable:!0});var G=(r,e)=>{for(var n in e)u(r,n,{get:e[n],enumerable:!0})},m=(r,e,n,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of q(e))!_.call(r,t)&&t!==n&&u(r,t,{get:()=>e[t],enumerable:!(c=S(e,t))||c.enumerable});return r},s=(r,e,n)=>(m(r,e,"default"),n&&m(n,e,"default")),a=(r,e,n)=>(n=r!=null?z(F(r)):{},m(e||!r||!r.__esModule?u(n,"default",{value:r,enumerable:!0}):n,r)),P=r=>m(u({},"__esModule",{value:!0}),r);var o={};G(o,{default:()=>k,javascript:()=>O,json:()=>y});module.exports=P(o);var j=a(require("eslint-plugin-sonarjs"),1);var w=a(require("eslint-plugin-unicorn"),1),B={"unicorn/error-message":"error","unicorn/escape-case":"error","unicorn/expiring-todo-comments":"error","unicorn/explicit-length-check":"error","unicorn/consistent-existence-index-check":"error","unicorn/new-for-builtins":"error","unicorn/no-abusive-eslint-disable":"error","unicorn/no-array-callback-reference":"error","unicorn/no-array-for-each":"error","unicorn/no-array-method-this-argument":"error","unicorn/no-await-expression-member":"error","unicorn/no-empty-file":"error","unicorn/no-invalid-remove-event-listener":"error","unicorn/no-new-buffer":"error","unicorn/no-this-assignment":"error","unicorn/no-unnecessary-await":"error","unicorn/no-useless-fallback-in-spread":"error","unicorn/no-useless-length-check":"error","unicorn/no-useless-promise-resolve-reject":"error","unicorn/no-useless-spread":"error","unicorn/no-useless-switch-case":"error","unicorn/no-zero-fractions":"error","unicorn/no-single-promise-in-promise-methods":"error","unicorn/no-await-in-promise-methods":"error","unicorn/no-invalid-fetch-options":"error","unicorn/no-negation-in-equality-check":"error","unicorn/number-literal-case":"error","unicorn/numeric-separators-style":"error","unicorn/prefer-add-event-listener":"error","unicorn/prefer-array-find":"error","unicorn/prefer-array-flat-map":"error","unicorn/prefer-array-flat":"error","unicorn/prefer-at":"error","unicorn/prefer-blob-reading-methods":"error","unicorn/prefer-code-point":"error","unicorn/prefer-date-now":"error","unicorn/prefer-dom-node-append":"error","unicorn/prefer-dom-node-dataset":"error","unicorn/prefer-dom-node-remove":"error","unicorn/prefer-event-target":"error","unicorn/prefer-export-from":"error","unicorn/prefer-keyboard-event-key":"error","unicorn/prefer-logical-operator-over-ternary":"error","unicorn/prefer-modern-dom-apis":"error","unicorn/prefer-modern-math-apis":"error","unicorn/prefer-negative-index":"error","unicorn/prefer-node-protocol":"error","unicorn/prefer-number-properties":"error","unicorn/prefer-optional-catch-binding":"error","unicorn/prefer-prototype-methods":"error","unicorn/prefer-query-selector":"error","unicorn/prefer-reflect-apply":"error","unicorn/prefer-regexp-test":"error","unicorn/prefer-set-size":"error","unicorn/prefer-string-replace-all":"error","unicorn/prefer-string-slice":"error","unicorn/prefer-string-starts-ends-with":"error","unicorn/prefer-string-trim-start-end":"error","unicorn/prefer-type-error":"error","unicorn/prefer-string-raw":"error","unicorn/prefer-structured-clone":"error","unicorn/prefer-math-min-max":"error","unicorn/prefer-global-this":"error","unicorn/relative-url-style":"error","unicorn/require-array-join-separator":"error","unicorn/require-number-to-fixed-digits-argument":"error","unicorn/switch-case-braces":"error","unicorn/text-encoding-identifier-case":"error","unicorn/throw-new-error":"error","unicorn/consistent-date-clone":"error","unicorn/no-named-default":"error","unicorn/no-instanceof-builtins":["error",{strategy:"loose"}],"unicorn/no-accessor-recursion":"error"},d={plugins:{unicorn:w.default},rules:B};var g=a(require("@eslint/js"),1),C={"no-promise-executor-return":["error"],"no-unreachable-loop":["error"],"no-caller":["error"],"no-extend-native":["error"],"no-extra-bind":["error"],"no-extra-label":["error"],"no-multi-str":["error"],"no-new-wrappers":["error"],"no-object-constructor":["error"],"no-restricted-properties":["error",{object:"global",property:"isFinite",message:"Please use Number.isFinite instead"},{object:"self",property:"isFinite",message:"Please use Number.isFinite instead"},{object:"window",property:"isFinite",message:"Please use Number.isFinite instead"},{object:"global",property:"isNaN",message:"Please use Number.isNaN instead"},{object:"self",property:"isNaN",message:"Please use Number.isNaN instead"},{object:"window",property:"isNaN",message:"Please use Number.isNaN instead"}],"no-octal-escape":["error"],"no-proto":["error"],"no-sequences":["error",{allowInParentheses:!0}],"no-void":["error"],"no-array-constructor":["error"],"no-multi-assign":["error"],"no-plusplus":["error"],"no-useless-call":["error"],"prefer-object-has-own":["error"],"no-lone-blocks":["error"],"no-return-assign":["error","always"],"no-else-return":["error"],"prefer-template":["error"],"no-param-reassign":["error"],"array-callback-return":["error",{allowImplicit:!0,checkForEach:!0}],eqeqeq:["error"],"prefer-arrow-callback":["error"],"arrow-body-style":["error","always"],"no-restricted-syntax":["error",{selector:"TSEnumDeclaration",message:"Avoid enums. Use union types instead."}]},b={plugins:{eslint:g.default},rules:{...g.default.configs.recommended.rules,...C}};var N=require("@zemd/eslint-common"),h=a(require("@eslint-community/eslint-plugin-eslint-comments"),1),v=a(require("eslint-config-flat-gitignore"),1),f=a(require("globals"),1);var p=a(require("@eslint/json"),1),i=require("@zemd/eslint-common");function y({jsonFiles:r=[i.GLOB_JSON],jsoncFiles:e=[i.GLOB_JSONC,i.GLOB_JSONC_TSCONFIG,i.GLOB_JSONC_VSCODE],json5Files:n=[i.GLOB_JSON5],jsoncLanguageOptions:c={}}={}){return[{name:"zemd/json/setup",plugins:{json:p.default}},{name:"zemd/json/files",files:r,language:"json/json",rules:{...p.default.configs.recommended.rules}},{name:"zemd/jsonc/files",files:e,language:"json/jsonc",languageOptions:c,rules:{...p.default.configs.recommended.rules}},{name:"zemd/json5/files",files:n,language:"json/json5",rules:{...p.default.configs.recommended.rules}}]}l(y,"json");var x=y;s(o,require("@zemd/eslint-common"),module.exports);function O({ecmaVersion:r=2022,sourceType:e="module",files:n=[N.GLOB_SRC],...c}={}){return[(0,v.default)({name:"zemd/gitignore/ignores"}),{name:"zemd/javascript/files",languageOptions:{sourceType:"commonjs"},files:["eslint.config.js"]},{name:"zemd/javascript/setup",languageOptions:{ecmaVersion:r,globals:{...f.default.browser,...f.default.es2021,...f.default.node,document:"readonly",navigator:"readonly",window:"readonly",...c.globals},sourceType:e}},{name:"zemd/javascript/rules",files:n,plugins:{...b.plugins,...d.plugins,sonarjs:j.default,"@eslint-community/eslint-comments":h.default},rules:{...b.rules,...d.rules,...j.default.configs.recommended.rules,"sonarjs/no-clear-text-protocols":["off"],"sonarjs/no-useless-intersection":["off"],"sonarjs/todo-tag":["off"],...h.default.configs.recommended.rules}}]}l(O,"javascript");function k(...r){return[...O(...r),...x()]}l(k,"default");0&&(module.exports={javascript,json,...require("@zemd/eslint-common")});
|
package/dist/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var g=Object.defineProperty;var o=(r,e)=>g(r,"name",{value:e,configurable:!0});import m from"eslint-plugin-sonarjs";import b from"eslint-plugin-unicorn";var y={"unicorn/error-message":"error","unicorn/escape-case":"error","unicorn/expiring-todo-comments":"error","unicorn/explicit-length-check":"error","unicorn/consistent-existence-index-check":"error","unicorn/new-for-builtins":"error","unicorn/no-abusive-eslint-disable":"error","unicorn/no-array-callback-reference":"error","unicorn/no-array-for-each":"error","unicorn/no-array-method-this-argument":"error","unicorn/no-await-expression-member":"error","unicorn/no-empty-file":"error","unicorn/no-
|
1
|
+
var g=Object.defineProperty;var o=(r,e)=>g(r,"name",{value:e,configurable:!0});import m from"eslint-plugin-sonarjs";import b from"eslint-plugin-unicorn";var y={"unicorn/error-message":"error","unicorn/escape-case":"error","unicorn/expiring-todo-comments":"error","unicorn/explicit-length-check":"error","unicorn/consistent-existence-index-check":"error","unicorn/new-for-builtins":"error","unicorn/no-abusive-eslint-disable":"error","unicorn/no-array-callback-reference":"error","unicorn/no-array-for-each":"error","unicorn/no-array-method-this-argument":"error","unicorn/no-await-expression-member":"error","unicorn/no-empty-file":"error","unicorn/no-invalid-remove-event-listener":"error","unicorn/no-new-buffer":"error","unicorn/no-this-assignment":"error","unicorn/no-unnecessary-await":"error","unicorn/no-useless-fallback-in-spread":"error","unicorn/no-useless-length-check":"error","unicorn/no-useless-promise-resolve-reject":"error","unicorn/no-useless-spread":"error","unicorn/no-useless-switch-case":"error","unicorn/no-zero-fractions":"error","unicorn/no-single-promise-in-promise-methods":"error","unicorn/no-await-in-promise-methods":"error","unicorn/no-invalid-fetch-options":"error","unicorn/no-negation-in-equality-check":"error","unicorn/number-literal-case":"error","unicorn/numeric-separators-style":"error","unicorn/prefer-add-event-listener":"error","unicorn/prefer-array-find":"error","unicorn/prefer-array-flat-map":"error","unicorn/prefer-array-flat":"error","unicorn/prefer-at":"error","unicorn/prefer-blob-reading-methods":"error","unicorn/prefer-code-point":"error","unicorn/prefer-date-now":"error","unicorn/prefer-dom-node-append":"error","unicorn/prefer-dom-node-dataset":"error","unicorn/prefer-dom-node-remove":"error","unicorn/prefer-event-target":"error","unicorn/prefer-export-from":"error","unicorn/prefer-keyboard-event-key":"error","unicorn/prefer-logical-operator-over-ternary":"error","unicorn/prefer-modern-dom-apis":"error","unicorn/prefer-modern-math-apis":"error","unicorn/prefer-negative-index":"error","unicorn/prefer-node-protocol":"error","unicorn/prefer-number-properties":"error","unicorn/prefer-optional-catch-binding":"error","unicorn/prefer-prototype-methods":"error","unicorn/prefer-query-selector":"error","unicorn/prefer-reflect-apply":"error","unicorn/prefer-regexp-test":"error","unicorn/prefer-set-size":"error","unicorn/prefer-string-replace-all":"error","unicorn/prefer-string-slice":"error","unicorn/prefer-string-starts-ends-with":"error","unicorn/prefer-string-trim-start-end":"error","unicorn/prefer-type-error":"error","unicorn/prefer-string-raw":"error","unicorn/prefer-structured-clone":"error","unicorn/prefer-math-min-max":"error","unicorn/prefer-global-this":"error","unicorn/relative-url-style":"error","unicorn/require-array-join-separator":"error","unicorn/require-number-to-fixed-digits-argument":"error","unicorn/switch-case-braces":"error","unicorn/text-encoding-identifier-case":"error","unicorn/throw-new-error":"error","unicorn/consistent-date-clone":"error","unicorn/no-named-default":"error","unicorn/no-instanceof-builtins":["error",{strategy:"loose"}],"unicorn/no-accessor-recursion":"error"},t={plugins:{unicorn:b},rules:y};import u from"@eslint/js";var j={"no-promise-executor-return":["error"],"no-unreachable-loop":["error"],"no-caller":["error"],"no-extend-native":["error"],"no-extra-bind":["error"],"no-extra-label":["error"],"no-multi-str":["error"],"no-new-wrappers":["error"],"no-object-constructor":["error"],"no-restricted-properties":["error",{object:"global",property:"isFinite",message:"Please use Number.isFinite instead"},{object:"self",property:"isFinite",message:"Please use Number.isFinite instead"},{object:"window",property:"isFinite",message:"Please use Number.isFinite instead"},{object:"global",property:"isNaN",message:"Please use Number.isNaN instead"},{object:"self",property:"isNaN",message:"Please use Number.isNaN instead"},{object:"window",property:"isNaN",message:"Please use Number.isNaN instead"}],"no-octal-escape":["error"],"no-proto":["error"],"no-sequences":["error",{allowInParentheses:!0}],"no-void":["error"],"no-array-constructor":["error"],"no-multi-assign":["error"],"no-plusplus":["error"],"no-useless-call":["error"],"prefer-object-has-own":["error"],"no-lone-blocks":["error"],"no-return-assign":["error","always"],"no-else-return":["error"],"prefer-template":["error"],"no-param-reassign":["error"],"array-callback-return":["error",{allowImplicit:!0,checkForEach:!0}],eqeqeq:["error"],"prefer-arrow-callback":["error"],"arrow-body-style":["error","always"],"no-restricted-syntax":["error",{selector:"TSEnumDeclaration",message:"Avoid enums. Use union types instead."}]},a={plugins:{eslint:u},rules:{...u.configs.recommended.rules,...j}};import{GLOB_SRC as O}from"@zemd/eslint-common";import f from"@eslint-community/eslint-plugin-eslint-comments";import k from"eslint-config-flat-gitignore";import c from"globals";import n from"@eslint/json";import{GLOB_JSONC_VSCODE as h,GLOB_JSON as w,GLOB_JSON5 as x,GLOB_JSONC as N,GLOB_JSONC_TSCONFIG as v}from"@zemd/eslint-common";function l({jsonFiles:r=[w],jsoncFiles:e=[N,v,h],json5Files:s=[x],jsoncLanguageOptions:i={}}={}){return[{name:"zemd/json/setup",plugins:{json:n}},{name:"zemd/json/files",files:r,language:"json/json",rules:{...n.configs.recommended.rules}},{name:"zemd/jsonc/files",files:e,language:"json/jsonc",languageOptions:i,rules:{...n.configs.recommended.rules}},{name:"zemd/json5/files",files:s,language:"json/json5",rules:{...n.configs.recommended.rules}}]}o(l,"json");var p=l;export*from"@zemd/eslint-common";function z({ecmaVersion:r=2022,sourceType:e="module",files:s=[O],...i}={}){return[k({name:"zemd/gitignore/ignores"}),{name:"zemd/javascript/files",languageOptions:{sourceType:"commonjs"},files:["eslint.config.js"]},{name:"zemd/javascript/setup",languageOptions:{ecmaVersion:r,globals:{...c.browser,...c.es2021,...c.node,document:"readonly",navigator:"readonly",window:"readonly",...i.globals},sourceType:e}},{name:"zemd/javascript/rules",files:s,plugins:{...a.plugins,...t.plugins,sonarjs:m,"@eslint-community/eslint-comments":f},rules:{...a.rules,...t.rules,...m.configs.recommended.rules,"sonarjs/no-clear-text-protocols":["off"],"sonarjs/no-useless-intersection":["off"],"sonarjs/todo-tag":["off"],...f.configs.recommended.rules}}]}o(z,"javascript");function S(...r){return[...z(...r),...p()]}o(S,"default");export{S as default,z as javascript,l as json};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zemd/eslint-js",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.4",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"description": "Shared ESLint config for javascript projects",
|
6
6
|
"keywords": [
|
@@ -47,7 +47,7 @@
|
|
47
47
|
"@eslint/json": "^0.10.0",
|
48
48
|
"eslint-config-flat-gitignore": "^2.0.0",
|
49
49
|
"eslint-plugin-sonarjs": "^3.0.2",
|
50
|
-
"eslint-plugin-unicorn": "^
|
50
|
+
"eslint-plugin-unicorn": "^57.0.0",
|
51
51
|
"globals": "^15.15.0",
|
52
52
|
"@zemd/eslint-common": "1.0.1"
|
53
53
|
},
|