@internxt/eslint-config-internxt 2.0.1 → 2.1.1
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +25 -15
- package/dist/index.js.map +1 -1
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package provides the recommended ESLint configurations for all Internxt pro
|
|
|
8
8
|
1. Install eslint-config-internxt as a development dependency:
|
|
9
9
|
|
|
10
10
|
```
|
|
11
|
-
|
|
11
|
+
npm install --save-dev eslint-config-internxt
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
2. Add eslint-config-internxt to your ESLint configuration.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("eslint/config").ConfigObject[];
|
|
2
2
|
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
import tseslint from 'typescript-eslint';
|
|
2
2
|
import js from "@eslint/js";
|
|
3
3
|
import eslintConfigPrettier from 'eslint-config-prettier';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { defineConfig } from "eslint/config";
|
|
5
|
+
export default defineConfig([
|
|
6
|
+
{
|
|
7
|
+
files: ["**/*.js"],
|
|
8
|
+
plugins: { js },
|
|
9
|
+
extends: ["js/recommended"]
|
|
7
10
|
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
tseslint.configs.recommended,
|
|
12
|
+
eslintConfigPrettier,
|
|
13
|
+
{
|
|
14
|
+
languageOptions: {
|
|
15
|
+
parser: tseslint.parser,
|
|
16
|
+
},
|
|
17
|
+
rules: {
|
|
18
|
+
"quotes": ["error", "single", {
|
|
19
|
+
"avoidEscape": true,
|
|
20
|
+
}],
|
|
21
|
+
"semi": ["error", "always"],
|
|
22
|
+
"linebreak-style": ["error", "unix"],
|
|
23
|
+
"max-len": ["error", {
|
|
24
|
+
"code": 120,
|
|
25
|
+
"ignoreComments": true,
|
|
26
|
+
}],
|
|
27
|
+
"no-console": ["warn"],
|
|
28
|
+
},
|
|
19
29
|
},
|
|
20
|
-
|
|
30
|
+
]);
|
|
21
31
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAe,YAAY,CAAC;IACxB;QACI,KAAK,EAAE,CAAC,SAAS,CAAC;QAClB,OAAO,EAAE,EAAE,EAAE,EAAE;QACf,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B;IACD,QAAQ,CAAC,OAAO,CAAC,WAAW;IAC5B,oBAAoB;IACpB;QACI,eAAe,EAAE;YACb,MAAM,EAAE,QAAQ,CAAC,MAAM;SAC1B;QACD,KAAK,EAAE;YACH,QAAQ,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE;oBAC1B,aAAa,EAAE,IAAI;iBACtB,CAAC;YACF,MAAM,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;YAC3B,iBAAiB,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;YACpC,SAAS,EAAE,CAAC,OAAO,EAAE;oBACjB,MAAM,EAAE,GAAG;oBACX,gBAAgB,EAAE,IAAI;iBACzB,CAAC;YACF,YAAY,EAAE,CAAC,MAAM,CAAC;SACzB;KACJ;CACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@internxt/eslint-config-internxt",
|
|
3
3
|
"author": "Internxt <hello@internxt.com>",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/internxt/eslint-config-internxt.git"
|
|
@@ -20,19 +20,20 @@
|
|
|
20
20
|
"LICENSE"
|
|
21
21
|
],
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"eslint": "
|
|
24
|
-
"typescript": ">=4.
|
|
23
|
+
"eslint": "^9.0.0 || ^10.0.0",
|
|
24
|
+
"typescript": ">=4.8.4 <6.1.0"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": "
|
|
27
|
+
"node": "^20.19.0 || ^22.13.0 || >=24"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
31
|
-
"eslint": "^
|
|
32
|
-
"typescript": "^
|
|
31
|
+
"eslint": "^10.10.0",
|
|
32
|
+
"typescript": "^6.0.3"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
+
"@eslint/js": "^10.0.1",
|
|
35
36
|
"eslint-config-prettier": "^10.1.8",
|
|
36
|
-
"typescript-eslint": "^8.
|
|
37
|
+
"typescript-eslint": "^8.70.0"
|
|
37
38
|
}
|
|
38
39
|
}
|