@kataloka/eslint-config 1.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/base.js ADDED
@@ -0,0 +1,7 @@
1
+ import { configs as jsConfigs } from "@eslint/js";
2
+ import { configs as tsConfigs } from "typescript-eslint";
3
+
4
+ export default [
5
+ jsConfigs.recommended,
6
+ ...tsConfigs.recommended
7
+ ];
package/node.js ADDED
@@ -0,0 +1,10 @@
1
+ import { node as nodeGlobals } from "globals";
2
+
3
+ /** @type {import("eslint").Linter.FlatConfig} */
4
+ export default {
5
+ languageOptions: {
6
+ globals: {
7
+ ...nodeGlobals
8
+ }
9
+ }
10
+ };
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@kataloka/eslint-config",
3
+ "version": "1.0.0",
4
+ "description": "Shared TypeScript configuration for kataloka projects",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "files": ["*.js"],
8
+ "dependencies": {
9
+ "globals": ">=17.0.0",
10
+ "@eslint/js": ">9.0.0",
11
+ "typescript-eslint": ">=8.0.0"
12
+ },
13
+ "peerDependencies": {
14
+ "eslint": ">=9.0.0",
15
+ "typescript": ">=5.0.0",
16
+ "eslint-plugin-prettier": ">=5.0.0"
17
+ }
18
+ }
package/prettier.js ADDED
@@ -0,0 +1,10 @@
1
+ import pluginPrettier from "eslint-plugin-prettier";
2
+
3
+ export default {
4
+ plugins: {
5
+ prettier: pluginPrettier
6
+ },
7
+ rules: {
8
+ "prettier/prettier": "error"
9
+ }
10
+ };
package/strict.js ADDED
@@ -0,0 +1,4 @@
1
+ import { configs } from "typescript-eslint";
2
+
3
+ /** @type {import("eslint").Linter.FlatConfig[]} */
4
+ export default configs.recommendedTypeChecked;