@nihalgonsalves/esconfig 0.10.0 → 0.10.2
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.
|
@@ -9,9 +9,11 @@ import reactHooks from "eslint-plugin-react-hooks";
|
|
|
9
9
|
import tseslint from "typescript-eslint";
|
|
10
10
|
|
|
11
11
|
import sharedConfig from "./eslint.config.shared.js";
|
|
12
|
+
|
|
12
13
|
/** @type {Record<string, any>} */
|
|
13
14
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
|
14
15
|
const reactRules = react.config.recommended.rules;
|
|
16
|
+
|
|
15
17
|
export default tseslint.config(
|
|
16
18
|
...sharedConfig,
|
|
17
19
|
{
|
package/eslint.config.shared.js
CHANGED
|
@@ -7,6 +7,12 @@ import tseslint from "typescript-eslint";
|
|
|
7
7
|
|
|
8
8
|
export default tseslint.config(
|
|
9
9
|
js.configs.recommended,
|
|
10
|
+
// @ts-expect-error nullability
|
|
11
|
+
{
|
|
12
|
+
// extract only the rules, because this config otherwise applies only to
|
|
13
|
+
// TypeScript extensions, which causes problems with checkJs
|
|
14
|
+
rules: tseslint.configs.eslintRecommended.rules,
|
|
15
|
+
},
|
|
10
16
|
...tseslint.configs.strictTypeChecked,
|
|
11
17
|
...tseslint.configs.stylisticTypeChecked,
|
|
12
18
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nihalgonsalves/esconfig",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "Shared ECMAScript Config (TS, Lint, Prettier)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": "git@github.com:nihalgonsalves/esconfig.git",
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"packageManager": "yarn@4.4.0+sha512.91d93b445d9284e7ed52931369bc89a663414e5582d00eea45c67ddc459a2582919eece27c412d6ffd1bd0793ff35399381cb229326b961798ce4f4cc60ddfdb",
|
|
11
11
|
"files": [
|
|
12
12
|
"eslint.config.shared.js",
|
|
13
|
+
"eslint.config.shared.d.ts",
|
|
13
14
|
"eslint.config.react-shared.js",
|
|
15
|
+
"eslint.config.react-shared.d.ts",
|
|
14
16
|
"tsconfig.shared.json"
|
|
15
17
|
],
|
|
16
18
|
"scripts": {
|
|
@@ -41,7 +43,7 @@
|
|
|
41
43
|
},
|
|
42
44
|
"peerDependencies": {
|
|
43
45
|
"eslint": "^9.8.0",
|
|
44
|
-
"
|
|
45
|
-
"typescript": "^
|
|
46
|
+
"typescript": "^5.5.4",
|
|
47
|
+
"typescript-eslint": "^8.0.1"
|
|
46
48
|
}
|
|
47
49
|
}
|