@santi020k/eslint-config-santi020k 2.1.0 → 3.1.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.1.0",
3
+ "version": "3.1.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,58 +61,55 @@
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.6",
65
+ "@types/eslint__eslintrc": "^2.1.2",
66
+ "@types/node": "^22.9.0",
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.8.1",
74
+ "tsup": "^8.3.5",
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.14.0",
80
+ "@eslint/markdown": "^6.2.1",
81
+ "@cspell/eslint-plugin": "^8.16.0",
82
+ "@eslint/compat": "^1.2.2",
83
+ "@eslint/js": "^9.14.0",
84
+ "@next/eslint-plugin-next": "^15.0.3",
85
+ "@stylistic/eslint-plugin": "^2.10.1",
83
86
  "@types/eslint__js": "^8.42.3",
84
- "@typescript-eslint/eslint-plugin": "^7.13.1",
85
- "@typescript-eslint/parser": "^7.13.1",
86
- "@typescript-eslint/type-utils": "^7.13.1",
87
+ "@typescript-eslint/eslint-plugin": "^8.13.0",
88
+ "@typescript-eslint/type-utils": "^8.13.0",
87
89
  "cross-dirname": "^0.1.0",
88
90
  "eslint-config-expo": "^7.1.2",
89
91
  "eslint-config-standard": "^17.1.0",
90
- "eslint-plugin-astro": "^1.2.2",
91
- "eslint-plugin-i18next": "^6.0.3",
92
- "eslint-plugin-import": "^2.29.1",
93
- "eslint-plugin-jsx-a11y": "^6.9.0",
92
+ "eslint-plugin-astro": "^1.3.1",
93
+ "eslint-plugin-i18next": "^6.1.0",
94
+ "eslint-plugin-import": "^2.31.0",
95
+ "eslint-plugin-jsx-a11y": "^6.10.2",
94
96
  "eslint-plugin-mdx": "^3.1.5",
95
- "eslint-plugin-n": "^17.9.0",
96
- "eslint-plugin-promise": "^6.2.0",
97
- "eslint-plugin-react": "^7.34.3",
98
- "eslint-plugin-react-hooks": "^4.6.2",
99
- "eslint-plugin-simple-import-sort": "^12.1.0",
100
- "eslint-plugin-sonarjs": "^1.0.3",
101
- "eslint-plugin-tailwindcss": "^3.17.4",
102
- "eslint-plugin-testing-library": "^6.2.2",
103
- "eslint-plugin-unused-imports": "^3.2.0",
97
+ "eslint-plugin-n": "^17.13.1",
98
+ "eslint-plugin-promise": "^7.1.0",
99
+ "eslint-plugin-react": "^7.37.2",
100
+ "eslint-plugin-react-hooks": "^5.0.0",
101
+ "eslint-plugin-simple-import-sort": "^12.1.1",
102
+ "eslint-plugin-sonarjs": "^2.0.4",
103
+ "eslint-plugin-tailwindcss": "^3.17.5",
104
+ "eslint-plugin-testing-library": "^6.4.0",
105
+ "eslint-plugin-unused-imports": "^4.1.4",
104
106
  "eslint-plugin-vitest": "^0.5.4",
105
- "globals": "^15.6.0",
106
- "typescript-eslint": "^7.13.1"
107
+ "globals": "^15.12.0",
108
+ "typescript-eslint": "^8.13.0"
107
109
  },
108
110
  "overrides": {
109
111
  "eslint-config-standard": "$eslint-config-standard",
112
+ "eslint-plugin-promise": "$eslint-plugin-promise",
110
113
  "eslint-plugin-n": "$eslint-plugin-n",
111
114
  "typescript-eslint": "$typescript-eslint",
112
115
  "@typescript-eslint/eslint-plugin": "$@typescript-eslint/eslint-plugin",
@@ -1,22 +0,0 @@
1
- declare const astroConfig: (import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord> | {
2
- files: string[];
3
- name: string;
4
- rules: {
5
- 'simple-import-sort/imports': (string | {
6
- groups: string[][];
7
- })[];
8
- 'react/jsx-filename-extension': (number | {
9
- extensions: string[];
10
- })[];
11
- 'react/destructuring-assignment': string;
12
- 'react/require-default-props': string;
13
- 'react/jsx-props-no-spreading': string;
14
- 'react/react-in-jsx-scope': string;
15
- 'react/no-unknown-property': string;
16
- '@stylistic/jsx-indent': string;
17
- '@stylistic/jsx-one-expression-per-line': string;
18
- '@stylistic/jsx-tag-spacing': string;
19
- 'react/jsx-key': string;
20
- };
21
- })[];
22
- export { astroConfig };
@@ -1,18 +0,0 @@
1
- declare const rules: {
2
- 'simple-import-sort/imports': (string | {
3
- groups: string[][];
4
- })[];
5
- 'react/jsx-filename-extension': (number | {
6
- extensions: string[];
7
- })[];
8
- 'react/destructuring-assignment': string;
9
- 'react/require-default-props': string;
10
- 'react/jsx-props-no-spreading': string;
11
- 'react/react-in-jsx-scope': string;
12
- 'react/no-unknown-property': string;
13
- '@stylistic/jsx-indent': string;
14
- '@stylistic/jsx-one-expression-per-line': string;
15
- '@stylistic/jsx-tag-spacing': string;
16
- 'react/jsx-key': string;
17
- };
18
- 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 };