@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/README.md +22 -18
- package/dist/index.d.ts +31 -8
- package/dist/index.js +567 -439
- package/package.json +52 -49
- package/dist/configs/astro/index.config.d.ts +0 -22
- package/dist/configs/astro/rules.d.ts +0 -18
- package/dist/configs/expo/index.config.d.ts +0 -9
- package/dist/configs/expo/rules.d.ts +0 -6
- package/dist/configs/index.d.ts +0 -6
- package/dist/configs/js/index.config.d.ts +0 -3
- package/dist/configs/js/rules.d.ts +0 -4
- package/dist/configs/next/index.config.d.ts +0 -9
- package/dist/configs/next/rules.d.ts +0 -6
- package/dist/configs/react/index.config.d.ts +0 -11
- package/dist/configs/react/rules.d.ts +0 -3
- package/dist/configs/ts/index.config.d.ts +0 -3
- package/dist/configs/ts/rules.d.ts +0 -25
- package/dist/index.mjs +0 -489
- package/dist/optionals/cspell.d.ts +0 -15
- package/dist/optionals/i18next.d.ts +0 -2
- package/dist/optionals/index.d.ts +0 -6
- package/dist/optionals/mdx.d.ts +0 -21
- package/dist/optionals/tailwind.d.ts +0 -2
- package/dist/optionals/vitest.d.ts +0 -23
- package/dist/package.json +0 -107
- package/dist/utils/flatCompat.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,24 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@santi020k/eslint-config-santi020k",
|
|
3
|
-
"version": "
|
|
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
|
-
"
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
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
|
-
"
|
|
21
|
+
"dist",
|
|
22
|
+
"README.md",
|
|
23
|
+
"LICENSE"
|
|
17
24
|
],
|
|
18
25
|
"scripts": {
|
|
19
|
-
"
|
|
20
|
-
"build": "
|
|
21
|
-
"dev": "
|
|
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.
|
|
59
|
-
"@
|
|
60
|
-
"@
|
|
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.
|
|
66
|
-
"husky": "^9.
|
|
67
|
-
"lint-staged": "^15.2.
|
|
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
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
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
|
-
"
|
|
79
|
-
"@eslint/
|
|
80
|
-
"@eslint
|
|
81
|
-
"@
|
|
82
|
-
"@
|
|
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": "^
|
|
85
|
-
"@typescript-eslint/
|
|
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.
|
|
91
|
-
"eslint-plugin-i18next": "^6.0
|
|
92
|
-
"eslint-plugin-import": "^2.
|
|
93
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
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.
|
|
96
|
-
"eslint-plugin-promise": "^
|
|
97
|
-
"eslint-plugin-react": "^7.
|
|
98
|
-
"eslint-plugin-react-hooks": "^
|
|
99
|
-
"eslint-plugin-simple-import-sort": "^12.1.
|
|
100
|
-
"eslint-plugin-sonarjs": "^
|
|
101
|
-
"eslint-plugin-tailwindcss": "^3.17.
|
|
102
|
-
"eslint-plugin-testing-library": "^6.
|
|
103
|
-
"eslint-plugin-unused-imports": "^
|
|
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.
|
|
106
|
-
"typescript-eslint": "^
|
|
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 };
|
package/dist/configs/index.d.ts
DELETED
|
@@ -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,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,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 };
|