@stack-dev/eslint-config 0.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/base.mjs +15 -0
- package/package.json +12 -0
- package/react.mjs +17 -0
package/base.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import eslint from "@eslint/js";
|
|
2
|
+
import tseslint from "typescript-eslint";
|
|
3
|
+
|
|
4
|
+
export default tseslint.config(
|
|
5
|
+
eslint.configs.recommended,
|
|
6
|
+
tseslint.configs.strict,
|
|
7
|
+
tseslint.configs.stylistic,
|
|
8
|
+
{
|
|
9
|
+
rules: {
|
|
10
|
+
"@typescript-eslint/array-type": ["error", { default: "generic" }],
|
|
11
|
+
"@typescript-eslint/consistent-type-definitions": "off",
|
|
12
|
+
"@typescript-eslint/class-literal-property-style": ["error", "getters"],
|
|
13
|
+
},
|
|
14
|
+
}
|
|
15
|
+
);
|
package/package.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stack-dev/eslint-config",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"devDependencies": {
|
|
6
|
+
"@eslint/js": "^9.32.0",
|
|
7
|
+
"eslint": "^9.32.0",
|
|
8
|
+
"eslint-plugin-react": "^7.37.5",
|
|
9
|
+
"typescript": "^5.8.3",
|
|
10
|
+
"typescript-eslint": "^8.38.0"
|
|
11
|
+
}
|
|
12
|
+
}
|
package/react.mjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import eslint from "@eslint/js";
|
|
2
|
+
import pluginReact from "eslint-plugin-react";
|
|
3
|
+
import tseslint from "typescript-eslint";
|
|
4
|
+
|
|
5
|
+
export default tseslint.config(
|
|
6
|
+
eslint.configs.recommended,
|
|
7
|
+
tseslint.configs.strict,
|
|
8
|
+
pluginReact.configs.flat.recommended,
|
|
9
|
+
pluginReact.configs.flat["jsx-runtime"],
|
|
10
|
+
{
|
|
11
|
+
settings: {
|
|
12
|
+
react: {
|
|
13
|
+
version: "detect",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
}
|
|
17
|
+
);
|