@internxt/eslint-config-internxt 1.0.10 → 2.0.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 ADDED
@@ -0,0 +1,31 @@
1
+ # eslint-config-internxt
2
+
3
+ This package provides the recommended ESLint configurations for all Internxt projects.
4
+
5
+
6
+ ## Installation
7
+
8
+ 1. Install eslint-config-internxt as a development dependency:
9
+
10
+ ```
11
+ yarn add --dev eslint-config-internxt
12
+ ```
13
+
14
+ 2. Add eslint-config-internxt to your ESLint configuration.
15
+
16
+ - **Flat configuration** (eslint.config.mjs): Import eslint-config-internxt, and put it in the configuration array.
17
+
18
+ <!-- prettier-ignore -->
19
+ ```js
20
+ import someConfig from "some-other-config-you-use";
21
+ import eslintConfigInternxt from "eslint-config-internxt";
22
+
23
+ export default [
24
+ someConfig,
25
+ eslintConfigInternxt,
26
+ ];
27
+ ```
28
+
29
+ ## License
30
+
31
+ This project is based on MIT License. You can show it in the [License](LICENSE) file.
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
2
+ export default _default;
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
1
+ import tseslint from 'typescript-eslint';
2
+ import js from "@eslint/js";
3
+ import eslintConfigPrettier from 'eslint-config-prettier';
4
+ export default tseslint.config(js.configs.recommended, tseslint.configs.recommended, eslintConfigPrettier, {
5
+ languageOptions: {
6
+ parser: tseslint.parser,
7
+ },
8
+ rules: {
9
+ "quotes": ["error", "single", {
10
+ "avoidEscape": false,
11
+ }],
12
+ "semi": ["error", "always"],
13
+ "linebreak-style": ["error", "unix"],
14
+ "max-len": ["error", {
15
+ "code": 120,
16
+ "ignoreComments": true,
17
+ }],
18
+ "no-console": ["warn"],
19
+ },
20
+ });
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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;AAE1D,eAAe,QAAQ,CAAC,MAAM,CAC1B,EAAE,CAAC,OAAO,CAAC,WAAW,EACtB,QAAQ,CAAC,OAAO,CAAC,WAAW,EAC5B,oBAAoB,EACpB;IACI,eAAe,EAAE;QACb,MAAM,EAAE,QAAQ,CAAC,MAAM;KAC1B;IACD,KAAK,EAAE;QACH,QAAQ,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE;gBAC1B,aAAa,EAAE,KAAK;aACvB,CAAC;QACF,MAAM,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;QAC3B,iBAAiB,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QACpC,SAAS,EAAE,CAAC,OAAO,EAAE;gBACjB,MAAM,EAAE,GAAG;gBACX,gBAAgB,EAAE,IAAI;aACzB,CAAC;QACF,YAAY,EAAE,CAAC,MAAM,CAAC;KACzB;CACJ,CACJ,CAAC"}
package/package.json CHANGED
@@ -1,27 +1,38 @@
1
1
  {
2
2
  "name": "@internxt/eslint-config-internxt",
3
- "version": "1.0.10",
4
- "main": "index.js",
3
+ "author": "Internxt <hello@internxt.com>",
4
+ "version": "2.0.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/internxt/eslint-config-internxt.git"
8
8
  },
9
- "author": "Internxt",
10
9
  "license": "MIT",
11
- "peerDependencies": {
12
- "eslint": ">=0.8.0"
10
+ "type": "module",
11
+ "scripts": {
12
+ "build": "tsc",
13
+ "publish:npm": "npm run build && npm publish --scope=@internxt --registry=https://registry.npmjs.org/ --access public",
14
+ "publish:github": "npm run build && npm publish --scope=@internxt --registry=https://npm.pkg.github.com"
13
15
  },
14
- "publishConfig": {
15
- "access": "public",
16
- "registry": "https://registry.npmjs.org/"
16
+ "main": "dist/index.js",
17
+ "types": "dist/index.d.ts",
18
+ "files": [
19
+ "dist",
20
+ "LICENSE"
21
+ ],
22
+ "peerDependencies": {
23
+ "eslint": ">=9.0.0",
24
+ "typescript": ">=4.2.0"
17
25
  },
18
26
  "engines": {
19
- "node": ">=0.14.17"
27
+ "node": ">=14.17.0"
28
+ },
29
+ "devDependencies": {
30
+ "@types/eslint-config-prettier": "^6.11.3",
31
+ "eslint": "^9.34.0",
32
+ "typescript": "^5.9.2"
20
33
  },
21
- "devDependencies": {},
22
34
  "dependencies": {
23
- "@typescript-eslint/eslint-plugin": "^5.4.0",
24
- "@typescript-eslint/parser": "^5.4.0",
25
- "eslint-config-prettier": "^8.3.0"
35
+ "eslint-config-prettier": "^10.1.8",
36
+ "typescript-eslint": "^8.40.0"
26
37
  }
27
38
  }
@@ -1,23 +0,0 @@
1
- name: Node.js Package
2
- on:
3
- push:
4
- branches: [master]
5
- # release:
6
- # types: [created]
7
- jobs:
8
- build:
9
- runs-on: ubuntu-latest
10
- permissions:
11
- contents: read
12
- packages: write
13
- steps:
14
- - uses: actions/checkout@v2
15
- # Setup .npmrc file to publish to GitHub Packages
16
- - uses: actions/setup-node@v2
17
- with:
18
- node-version: '16.x'
19
- registry-url: 'https://npm.pkg.github.com'
20
- - run: yarn
21
- - run: yarn publish
22
- env:
23
- NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/index.js DELETED
@@ -1,21 +0,0 @@
1
- module.exports = {
2
- parser: "@typescript-eslint/parser",
3
- extends: [
4
- "eslint:recommended",
5
- "plugin:@typescript-eslint/recommended",
6
- "prettier",
7
- ],
8
- rules: {
9
- quotes: ["error", "single", { avoidEscape: false }],
10
- semi: ["error", "always"],
11
- "linebreak-style": ["error", "unix"],
12
- "max-len": [
13
- "error",
14
- {
15
- code: 120,
16
- ignoreComments: true,
17
- },
18
- ],
19
- "no-console": ["warn"],
20
- },
21
- };