@santi020k/eslint-config-santi020k 2.0.1 → 3.0.0

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/package.json CHANGED
@@ -1,24 +1,33 @@
1
1
  {
2
2
  "name": "@santi020k/eslint-config-santi020k",
3
- "version": "2.0.1",
3
+ "version": "3.0.0",
4
4
  "description": "A comprehensive ESLint configuration package for JavaScript, TypeScript, and React projects, including popular plugins and custom rules for consistent coding style.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
- "typings": "./dist/index.d.ts",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
8
9
  "exports": {
9
10
  ".": {
10
- "types": "./index.d.ts",
11
- "default": "./dist/index.js"
11
+ "import": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
12
13
  },
13
- "./package.json": "./package.json"
14
+ "./package.json": "./package.json",
15
+ "./*": {
16
+ "import": "./dist/*.js",
17
+ "types": "./dist/*.d.ts"
18
+ }
14
19
  },
15
20
  "files": [
16
- "/dist"
21
+ "dist",
22
+ "README.md",
23
+ "LICENSE"
17
24
  ],
18
25
  "scripts": {
19
- "build:clean": "rm -rf dist",
20
- "build": "rollup --config rollup.config.js && rollup --config rollup.config.es.js",
21
- "dev": "rollup --config rollup.config.js --watch",
26
+ "dev": "npm run build -- --watch ./src",
27
+ "build": "tsup src/index.ts --format esm --dts",
28
+ "build:dev": "tsup --watch",
29
+ "build:prod": "rm -rf ./dist && env NODE_ENV=production tsup",
30
+ "build:watch": "tsup --watch",
22
31
  "inspector": "npx @eslint/config-inspector@latest",
23
32
  "lint": "eslint . --report-unused-disable-directives",
24
33
  "lint:fix": "npm run lint -- --fix --max-warnings=0",
@@ -45,9 +54,6 @@
45
54
  "Santiago Molina <info@santi020k.me>"
46
55
  ],
47
56
  "license": "Apache License 2.0",
48
- "peerDependencies": {
49
- "eslint": "^9.0.0"
50
- },
51
57
  "publishConfig": {
52
58
  "access": "public"
53
59
  },
@@ -55,57 +61,54 @@
55
61
  "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
56
62
  },
57
63
  "devDependencies": {
58
- "@eslint/config-inspector": "^0.5.0",
59
- "@rollup/plugin-node-resolve": "^15.2.3",
60
- "@rollup/plugin-typescript": "^11.1.6",
61
- "@types/eslint__eslintrc": "^2.1.1",
62
- "@types/node": "^20.14.8",
63
- "@types/rollup-plugin-generate-package-json": "^3.2.9",
64
+ "@eslint/config-inspector": "^0.5.4",
65
+ "@types/eslint__eslintrc": "^2.1.2",
66
+ "@types/node": "^22.7.5",
64
67
  "cz-conventional-changelog": "^3.3.0",
65
- "esbuild": "^0.21.5",
66
- "husky": "^9.0.11",
67
- "lint-staged": "^15.2.7",
68
+ "esbuild": "^0.24.0",
69
+ "husky": "^9.1.6",
70
+ "lint-staged": "^15.2.10",
68
71
  "react": "^18.3.1",
69
72
  "react-dom": "^18.3.1",
70
- "rollup": "^4.18.0",
71
- "rollup-plugin-generate-package-json": "^3.2.0",
72
- "rollup-plugin-typescript2": "^0.36.0",
73
- "tslib": "^2.6.3",
74
- "typescript": "^5.5.2",
73
+ "tslib": "^2.7.0",
74
+ "tsup": "^8.3.0",
75
+ "typescript": "^5.6.3",
75
76
  "yalc": "^1.0.0-pre.53"
76
77
  },
77
78
  "dependencies": {
78
- "@cspell/eslint-plugin": "^8.9.1",
79
- "@eslint/compat": "^1.1.0",
80
- "@eslint/js": "^9.5.0",
81
- "@next/eslint-plugin-next": "^14.2.4",
82
- "@stylistic/eslint-plugin": "^2.2.2",
79
+ "eslint": "^9.12.0",
80
+ "@cspell/eslint-plugin": "^8.14.4",
81
+ "@eslint/compat": "^1.2.0",
82
+ "@eslint/js": "^9.12.0",
83
+ "@next/eslint-plugin-next": "^14.2.15",
84
+ "@stylistic/eslint-plugin": "^2.9.0",
83
85
  "@types/eslint__js": "^8.42.3",
84
- "@typescript-eslint/eslint-plugin": "^7.13.1",
85
- "@typescript-eslint/type-utils": "^7.13.1",
86
+ "@typescript-eslint/eslint-plugin": "^8.8.1",
87
+ "@typescript-eslint/type-utils": "^8.8.1",
86
88
  "cross-dirname": "^0.1.0",
87
89
  "eslint-config-expo": "^7.1.2",
88
90
  "eslint-config-standard": "^17.1.0",
89
- "eslint-plugin-astro": "^1.2.2",
90
- "eslint-plugin-i18next": "^6.0.3",
91
- "eslint-plugin-import": "^2.29.1",
92
- "eslint-plugin-jsx-a11y": "^6.9.0",
91
+ "eslint-plugin-astro": "^1.2.4",
92
+ "eslint-plugin-i18next": "^6.1.0",
93
+ "eslint-plugin-import": "^2.31.0",
94
+ "eslint-plugin-jsx-a11y": "^6.10.0",
93
95
  "eslint-plugin-mdx": "^3.1.5",
94
- "eslint-plugin-n": "^17.9.0",
95
- "eslint-plugin-promise": "^6.2.0",
96
- "eslint-plugin-react": "^7.34.3",
96
+ "eslint-plugin-n": "^17.11.1",
97
+ "eslint-plugin-promise": "^7.1.0",
98
+ "eslint-plugin-react": "^7.37.1",
97
99
  "eslint-plugin-react-hooks": "^4.6.2",
98
- "eslint-plugin-simple-import-sort": "^12.1.0",
99
- "eslint-plugin-sonarjs": "^1.0.3",
100
- "eslint-plugin-tailwindcss": "^3.17.4",
101
- "eslint-plugin-testing-library": "^6.2.2",
102
- "eslint-plugin-unused-imports": "^3.2.0",
100
+ "eslint-plugin-simple-import-sort": "^12.1.1",
101
+ "eslint-plugin-sonarjs": "^2.0.3",
102
+ "eslint-plugin-tailwindcss": "^3.17.5",
103
+ "eslint-plugin-testing-library": "^6.3.0",
104
+ "eslint-plugin-unused-imports": "^4.1.4",
103
105
  "eslint-plugin-vitest": "^0.5.4",
104
- "globals": "^15.6.0",
105
- "typescript-eslint": "^7.13.1"
106
+ "globals": "^15.11.0",
107
+ "typescript-eslint": "^8.8.1"
106
108
  },
107
109
  "overrides": {
108
110
  "eslint-config-standard": "$eslint-config-standard",
111
+ "eslint-plugin-promise": "$eslint-plugin-promise",
109
112
  "eslint-plugin-n": "$eslint-plugin-n",
110
113
  "typescript-eslint": "$typescript-eslint",
111
114
  "@typescript-eslint/eslint-plugin": "$@typescript-eslint/eslint-plugin",
@@ -1,9 +0,0 @@
1
- declare const astroConfig: (import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord> | {
2
- name: string;
3
- rules: {
4
- 'simple-import-sort/imports': (string | {
5
- groups: string[][];
6
- })[];
7
- };
8
- })[];
9
- export { astroConfig };
@@ -1,6 +0,0 @@
1
- declare const rules: {
2
- 'simple-import-sort/imports': (string | {
3
- groups: string[][];
4
- })[];
5
- };
6
- export { rules };
@@ -1,9 +0,0 @@
1
- declare const expoConfig: (import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord> | {
2
- name: string;
3
- rules: {
4
- 'simple-import-sort/imports': (string | {
5
- groups: string[][];
6
- })[];
7
- };
8
- })[];
9
- export { expoConfig };
@@ -1,6 +0,0 @@
1
- declare const rules: {
2
- 'simple-import-sort/imports': (string | {
3
- groups: string[][];
4
- })[];
5
- };
6
- export { rules };
@@ -1,6 +0,0 @@
1
- export { astroConfig } from './astro/index.config';
2
- export { jsConfig } from './js/index.config';
3
- export { nextConfig } from './next/index.config';
4
- export { reactConfig } from './react/index.config';
5
- export { tsConfig } from './ts/index.config';
6
- export { expoConfig } from './expo/index.config';
@@ -1,3 +0,0 @@
1
- import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
- declare const jsConfig: FlatConfig.ConfigArray;
3
- export { jsConfig };
@@ -1,4 +0,0 @@
1
- import { Linter } from '@typescript-eslint/utils/ts-eslint';
2
- declare const groups: string[][];
3
- declare const rules: Linter.RulesRecord;
4
- export { rules, groups };
@@ -1,9 +0,0 @@
1
- declare const nextConfig: (import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord> | {
2
- name: string;
3
- rules: {
4
- 'simple-import-sort/imports': (string | {
5
- groups: string[][];
6
- })[];
7
- };
8
- })[];
9
- export { nextConfig };
@@ -1,6 +0,0 @@
1
- declare const rules: {
2
- 'simple-import-sort/imports': (string | {
3
- groups: string[][];
4
- })[];
5
- };
6
- export { rules };
@@ -1,11 +0,0 @@
1
- import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
- declare const reactConfig: (FlatConfig.Config | {
3
- name: string;
4
- plugins: {
5
- 'react-hooks': any;
6
- };
7
- languageOptions: any;
8
- files: string[];
9
- rules: any;
10
- })[];
11
- export { reactConfig };
@@ -1,3 +0,0 @@
1
- import { Linter } from '@typescript-eslint/utils/ts-eslint';
2
- declare const rules: Linter.RulesRecord;
3
- export { rules };
@@ -1,3 +0,0 @@
1
- import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
- declare const tsConfig: FlatConfig.Config[];
3
- export { tsConfig };
@@ -1,25 +0,0 @@
1
- declare const rules: {
2
- semi: string;
3
- 'no-unused-vars': string;
4
- '@typescript-eslint/indent': string;
5
- '@typescript-eslint/no-unused-vars': (string | {
6
- vars: string;
7
- varsIgnorePattern: string;
8
- args: string;
9
- argsIgnorePattern: string;
10
- destructuredArrayIgnorePattern: string;
11
- ignoreRestSiblings: boolean;
12
- })[];
13
- '@typescript-eslint/no-explicit-any': string;
14
- '@typescript-eslint/no-empty-function': string;
15
- '@typescript-eslint/ban-types': string;
16
- '@typescript-eslint/no-var-requires': string;
17
- '@typescript-eslint/ban-ts-comment': string;
18
- '@typescript-eslint/no-non-null-assertion': string;
19
- '@typescript-eslint/no-invalid-void-type': string;
20
- '@typescript-eslint/no-dynamic-delete': string;
21
- '@typescript-eslint/no-useless-constructor': string;
22
- '@typescript-eslint/prefer-for-of': string;
23
- '@typescript-eslint/no-duplicate-enum-values': string;
24
- };
25
- export { rules };