@kunalnagarco/eslint-config 2.3.0-beta.2 → 3.0.0-alpha.1775545085420

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.
@@ -0,0 +1,4 @@
1
+ import type { Linter } from 'eslint';
2
+ declare const config: Linter.Config[];
3
+ export default config;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,QAAA,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAgCP,CAAC;AAErB,eAAe,MAAM,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
14
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
+ if (ar || !(i in from)) {
16
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
+ ar[i] = from[i];
18
+ }
19
+ }
20
+ return to.concat(ar || Array.prototype.slice.call(from));
21
+ };
22
+ var __importDefault = (this && this.__importDefault) || function (mod) {
23
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ var js_1 = __importDefault(require("@eslint/js"));
27
+ var typescript_eslint_1 = __importDefault(require("typescript-eslint"));
28
+ var eslint_plugin_import_x_1 = __importDefault(require("eslint-plugin-import-x"));
29
+ var eslint_plugin_jest_1 = __importDefault(require("eslint-plugin-jest"));
30
+ var eslint_config_prettier_1 = __importDefault(require("eslint-config-prettier"));
31
+ var config = typescript_eslint_1.default.config.apply(typescript_eslint_1.default, __spreadArray(__spreadArray([js_1.default.configs.recommended], typescript_eslint_1.default.configs.recommendedTypeChecked, false), [eslint_plugin_import_x_1.default.flatConfigs.recommended,
32
+ eslint_plugin_import_x_1.default.flatConfigs.typescript, __assign({ files: ['**/*.test.ts', '**/*.test.tsx', '**/*.spec.ts', '**/*.spec.tsx'] }, eslint_plugin_jest_1.default.configs['flat/recommended']), {
33
+ rules: {
34
+ 'import-x/order': [
35
+ 'error',
36
+ {
37
+ pathGroupsExcludedImportTypes: ['builtin'],
38
+ groups: [
39
+ 'builtin',
40
+ ['external', 'internal'],
41
+ 'parent',
42
+ ['sibling', 'index'],
43
+ ],
44
+ 'newlines-between': 'always',
45
+ },
46
+ ],
47
+ },
48
+ },
49
+ eslint_config_prettier_1.default], false));
50
+ exports.default = config;
package/package.json CHANGED
@@ -1,11 +1,21 @@
1
1
  {
2
2
  "name": "@kunalnagarco/eslint-config",
3
- "version": "2.3.0-beta.2",
3
+ "version": "3.0.0-alpha.1775545085420",
4
4
  "description": "An ESLint configuration for use across javascript projects",
5
+ "files": [
6
+ "dist"
7
+ ],
5
8
  "repository": {
6
- "url": "git+https://github.com/kunalnagarco/ui.git"
9
+ "type": "git",
10
+ "url": "https://github.com/kunalnagarco/ui"
11
+ },
12
+ "main": "dist/index.js",
13
+ "exports": {
14
+ ".": {
15
+ "require": "./dist/index.js",
16
+ "default": "./dist/index.js"
17
+ }
7
18
  },
8
- "main": "src/index.js",
9
19
  "keywords": [
10
20
  "eslint",
11
21
  "eslint-config",
@@ -33,21 +43,28 @@
33
43
  "provenance": true
34
44
  },
35
45
  "scripts": {
36
- "pack:run": "yarn pack"
46
+ "build": "rimraf dist && tsc",
47
+ "pack:run": "npm pack"
37
48
  },
38
49
  "devDependencies": {
39
- "rimraf": "^5.0.5",
40
- "typescript": "^5.0.4"
50
+ "@eslint/js": "9.x",
51
+ "@kunalnagarco/ui.tsconfig": "*",
52
+ "@types/eslint-config-prettier": "^6.11.3",
53
+ "eslint": "9.x",
54
+ "eslint-config-prettier": "9.x",
55
+ "eslint-plugin-import-x": "4.x",
56
+ "eslint-plugin-jest": "28.x",
57
+ "rimraf": "6.0.1",
58
+ "typescript": "5.8.2",
59
+ "typescript-eslint": "8.x"
41
60
  },
42
61
  "peerDependencies": {
43
- "@typescript-eslint/eslint-plugin": ">=6.x",
44
- "@typescript-eslint/parser": ">=6.x",
45
- "eslint": ">=7.x",
46
- "eslint-config-airbnb": ">=19.x",
47
- "eslint-config-airbnb-typescript": ">=17.x",
48
- "eslint-config-prettier": ">=8.x",
49
- "eslint-plugin-import": ">=2.x",
50
- "eslint-plugin-jest": ">=27.x",
51
- "prettier": ">=2.x"
62
+ "@eslint/js": ">=9.0.0",
63
+ "eslint": ">=9.0.0",
64
+ "eslint-config-prettier": ">=9.0.0",
65
+ "eslint-plugin-import-x": ">=4.0.0",
66
+ "eslint-plugin-jest": ">=28.0.0",
67
+ "typescript": ">=5.0.0",
68
+ "typescript-eslint": ">=8.0.0"
52
69
  }
53
70
  }
package/CHANGELOG.md DELETED
@@ -1,86 +0,0 @@
1
- # @kunalnagarco/eslint-config
2
-
3
- ## 2.2.0
4
-
5
- ### Minor Changes
6
-
7
- - Remove nx and update dependencies
8
-
9
- ## 2.1.0
10
-
11
- ### Minor Changes
12
-
13
- - Add right peerdependencies to ESLint package
14
-
15
- ## 2.0.0
16
-
17
- ### Major Changes
18
-
19
- - Switch from ESLint React App config to AirBnB TypeScript
20
-
21
- ## 1.9.0
22
-
23
- ### Minor Changes
24
-
25
- - Change permission to write
26
-
27
- ## 1.8.0
28
-
29
- ### Minor Changes
30
-
31
- - Remove Identity file
32
-
33
- ## 1.7.0
34
-
35
- ### Minor Changes
36
-
37
- - Allow read permission for provenance
38
-
39
- ## 1.6.0
40
-
41
- ### Minor Changes
42
-
43
- - Fix CD permissions for provenance
44
-
45
- ## 1.5.0
46
-
47
- ### Minor Changes
48
-
49
- - Add npm provenance support
50
-
51
- ## 1.4.0
52
-
53
- ### Minor Changes
54
-
55
- - Release minor versions of all packages
56
-
57
- ## 1.3.0
58
-
59
- ### Minor Changes
60
-
61
- - Add build to CD script
62
-
63
- ## 1.2.0
64
-
65
- ### Minor Changes
66
-
67
- - Test GitHub Action for changesets
68
-
69
- ## 1.1.0
70
-
71
- ### Minor Changes
72
-
73
- - Bump minor versions for all packages
74
-
75
- ## 1.0.0
76
-
77
- ### Major Changes
78
-
79
- - f344f56: Release major version
80
-
81
- ### Minor Changes
82
-
83
- - bf69eee: Add comment to eslint to test changesets
84
- - 21c922f: Update monorepo to use Changesets
85
- - 43b3cc1: Remove comment
86
- - Bump minor version
package/src/index.js DELETED
@@ -1,36 +0,0 @@
1
- const airbnbConfig = require('eslint-config-airbnb');
2
- const airbnbTypescriptConfig = require('eslint-config-airbnb-typescript');
3
- const prettierConfig = require('eslint-config-prettier');
4
- const importPlugin = require('eslint-plugin-import');
5
- const typescriptEslintPlugin = require('@typescript-eslint/eslint-plugin');
6
-
7
- module.exports = {
8
- airbnbConfig,
9
- airbnbTypescriptConfig,
10
- prettierConfig,
11
- plugins: {
12
- importPlugin,
13
- typescriptEslintPlugin,
14
- },
15
- env: {
16
- browser: true,
17
- es6: true,
18
- jest: true,
19
- },
20
- parser: '@typescript-eslint/parser',
21
- rules: {
22
- 'import/order': [
23
- 'error',
24
- {
25
- pathGroupsExcludedImportTypes: ['builtin'],
26
- groups: [
27
- 'builtin',
28
- ['external', 'internal'],
29
- 'parent',
30
- ['sibling', 'index'],
31
- ],
32
- 'newlines-between': 'always',
33
- },
34
- ],
35
- },
36
- };