@zemd/eslint-ts 1.0.1 → 1.0.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/README.md +6 -3
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -5
package/README.md
CHANGED
@@ -9,9 +9,9 @@ This package includes a set of ESLint configurations for Typescript projects.
|
|
9
9
|
|
10
10
|
**The package includes**:
|
11
11
|
|
12
|
-
| Package | Description | Rules |
|
13
|
-
| ---------------------------------- | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
14
|
-
| `@typescript-eslint/eslint-plugin` | At the moment the industry standard for enabling typescript support for ESLint | carefully hand-picked rules in conjunction with `strict-type-checked` config. Additionally, there are disabled rules for `@eslint/js` that overlap and can make issues. |
|
12
|
+
| Package | Description | Rules | License |
|
13
|
+
| ---------------------------------- | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
|
14
|
+
| `@typescript-eslint/eslint-plugin` | At the moment the industry standard for enabling typescript support for ESLint | carefully hand-picked rules in conjunction with `strict-type-checked` config. Additionally, there are disabled rules for `@eslint/js` that overlap and can make issues. | MIT |
|
15
15
|
|
16
16
|
## Installation
|
17
17
|
|
@@ -28,6 +28,9 @@ import typescript from "@zemd/eslint-ts";
|
|
28
28
|
export default [...typescript()];
|
29
29
|
// import { typescript } from "@zemd/eslint-ts"; // import only typescript config
|
30
30
|
// export default [...typescript()];
|
31
|
+
|
32
|
+
// you can also import any other config from @zemd/eslint-js or @zemd/eslint-common
|
33
|
+
// import { javascript, json, JS_FILES } from "@zemd/eslint-js";
|
31
34
|
```
|
32
35
|
|
33
36
|
## License
|
package/dist/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var
|
1
|
+
"use strict";var b=Object.create;var n=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var u=(e,r)=>n(e,"name",{value:r,configurable:!0});var E=(e,r)=>{for(var t in r)n(e,t,{get:r[t],enumerable:!0})},i=(e,r,t,y)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of w(r))!_.call(e,o)&&o!==t&&n(e,o,{get:()=>r[o],enumerable:!(y=h(r,o))||y.enumerable});return e},p=(e,r,t)=>(i(e,r,"default"),t&&i(t,r,"default")),c=(e,r,t)=>(t=e!=null?b(S(e)):{},i(r||!e||!e.__esModule?n(t,"default",{value:e,enumerable:!0}):t,e)),I=e=>i(n({},"__esModule",{value:!0}),e);var s={};E(s,{default:()=>x,typescript:()=>d});module.exports=I(s);var f=c(require("@typescript-eslint/eslint-plugin"),1),m=c(require("@typescript-eslint/parser"),1),P={"@typescript-eslint/consistent-type-exports":["error",{fixMixedExportsWithInlineTypeSpecifier:!0}],"@typescript-eslint/consistent-type-imports":["error",{fixStyle:"inline-type-imports"}],"@typescript-eslint/no-unused-vars":["error",{args:"all",argsIgnorePattern:"^_",caughtErrors:"all",caughtErrorsIgnorePattern:"^_",destructuredArrayIgnorePattern:"^_",varsIgnorePattern:"^_",ignoreRestSiblings:!0}],"@typescript-eslint/explicit-module-boundary-types":["error"],"@typescript-eslint/method-signature-style":["error"],"@typescript-eslint/no-import-type-side-effects":["error"],"@typescript-eslint/no-useless-empty-export":["error"],"@typescript-eslint/promise-function-async":["error"],"@typescript-eslint/require-array-sort-compare":["error"],"@typescript-eslint/restrict-template-expressions":["error",{allow:[{name:["Error","URL","URLSearchParams"],from:"lib"}],allowAny:!0,allowBoolean:!0,allowNullish:!0,allowNumber:!0,allowRegExp:!0}],"@typescript-eslint/no-unsafe-call":["off"],"@typescript-eslint/no-explicit-any":["off"],"@typescript-eslint/no-unsafe-return":["off"],"@typescript-eslint/no-unsafe-assignment":["off"],"@typescript-eslint/no-unsafe-member-access":["off"],"@typescript-eslint/no-unsafe-argument":["off"],"@typescript-eslint/no-empty-object-type":["off"],"@typescript-eslint/no-unnecessary-type-parameters":["off"]},l={plugins:{"@typescript-eslint":f.default},parser:m.default,rules:{...f.default.configs["strict-type-checked"].rules,...P,"no-unused-vars":["off"],"no-dupe-class-members":["off"]}};var a=require("@zemd/eslint-common"),g=c(require("@zemd/eslint-js"),1);p(s,require("@zemd/eslint-js"),module.exports);function d({files:e=[a.GLOB_TS,a.GLOB_TSX],parserOptions:r}={}){return[{name:"zemd/typescript/setup",files:e,languageOptions:{parser:l.parser,parserOptions:{ecmaFeatures:{modules:!0},project:!0,...r}}},{name:"zemd/typescript/rules",files:e,plugins:l.plugins,rules:l.rules}]}u(d,"typescript");function x(...e){return[...(0,g.default)(),...d(...e)]}u(x,"all");0&&(module.exports={typescript,...require("@zemd/eslint-js")});
|
package/dist/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var
|
1
|
+
var o=Object.defineProperty;var s=(e,t)=>o(e,"name",{value:t,configurable:!0});import p from"@typescript-eslint/eslint-plugin";import n from"@typescript-eslint/parser";var i={"@typescript-eslint/consistent-type-exports":["error",{fixMixedExportsWithInlineTypeSpecifier:!0}],"@typescript-eslint/consistent-type-imports":["error",{fixStyle:"inline-type-imports"}],"@typescript-eslint/no-unused-vars":["error",{args:"all",argsIgnorePattern:"^_",caughtErrors:"all",caughtErrorsIgnorePattern:"^_",destructuredArrayIgnorePattern:"^_",varsIgnorePattern:"^_",ignoreRestSiblings:!0}],"@typescript-eslint/explicit-module-boundary-types":["error"],"@typescript-eslint/method-signature-style":["error"],"@typescript-eslint/no-import-type-side-effects":["error"],"@typescript-eslint/no-useless-empty-export":["error"],"@typescript-eslint/promise-function-async":["error"],"@typescript-eslint/require-array-sort-compare":["error"],"@typescript-eslint/restrict-template-expressions":["error",{allow:[{name:["Error","URL","URLSearchParams"],from:"lib"}],allowAny:!0,allowBoolean:!0,allowNullish:!0,allowNumber:!0,allowRegExp:!0}],"@typescript-eslint/no-unsafe-call":["off"],"@typescript-eslint/no-explicit-any":["off"],"@typescript-eslint/no-unsafe-return":["off"],"@typescript-eslint/no-unsafe-assignment":["off"],"@typescript-eslint/no-unsafe-member-access":["off"],"@typescript-eslint/no-unsafe-argument":["off"],"@typescript-eslint/no-empty-object-type":["off"],"@typescript-eslint/no-unnecessary-type-parameters":["off"]},r={plugins:{"@typescript-eslint":p},parser:n,rules:{...p.configs["strict-type-checked"].rules,...i,"no-unused-vars":["off"],"no-dupe-class-members":["off"]}};import{GLOB_TS as l,GLOB_TSX as a}from"@zemd/eslint-common";import u from"@zemd/eslint-js";export*from"@zemd/eslint-js";function c({files:e=[l,a],parserOptions:t}={}){return[{name:"zemd/typescript/setup",files:e,languageOptions:{parser:r.parser,parserOptions:{ecmaFeatures:{modules:!0},project:!0,...t}}},{name:"zemd/typescript/rules",files:e,plugins:r.plugins,rules:r.rules}]}s(c,"typescript");function f(...e){return[...u(),...c(...e)]}s(f,"all");export{f as default,c as typescript};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zemd/eslint-ts",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.3",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"description": "Shared ESLint config for typescript projects",
|
6
6
|
"keywords": [
|
@@ -43,15 +43,16 @@
|
|
43
43
|
"eslint": ">=9.2.0"
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
47
|
-
"@typescript-eslint/parser": "^8.
|
48
|
-
"@zemd/eslint-
|
46
|
+
"@typescript-eslint/eslint-plugin": "^8.24.0",
|
47
|
+
"@typescript-eslint/parser": "^8.24.0",
|
48
|
+
"@zemd/eslint-common": "1.0.1",
|
49
|
+
"@zemd/eslint-js": "1.0.3"
|
49
50
|
},
|
50
51
|
"devDependencies": {
|
51
52
|
"@types/eslint": "^9.6.1",
|
52
53
|
"@types/eslint__js": "^8.42.3",
|
53
54
|
"@zemd/tsconfig": "^1.3.0",
|
54
|
-
"eslint": "^9.
|
55
|
+
"eslint": "^9.20.1",
|
55
56
|
"tsup": "^8.3.6",
|
56
57
|
"typescript": "^5.7.3"
|
57
58
|
},
|