@jaemdev/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.cjs ADDED
@@ -0,0 +1,21 @@
1
+ module.exports = {
2
+ parser: '@typescript-eslint/parser',
3
+ extends: [
4
+ 'eslint:recommended',
5
+ 'plugin:@typescript-eslint/recommended',
6
+ 'prettier'
7
+ ],
8
+ plugins: ['@typescript-eslint'],
9
+ env: {
10
+ node: true,
11
+ es2022: true
12
+ },
13
+ parserOptions: {
14
+ ecmaVersion: 'latest',
15
+ sourceType: 'module'
16
+ },
17
+ rules: {
18
+ '@typescript-eslint/no-unused-vars': 'error',
19
+ '@typescript-eslint/no-explicit-any': 'warn'
20
+ }
21
+ };
package/index.cjs ADDED
@@ -0,0 +1,43 @@
1
+ const tseslint = require("@typescript-eslint/eslint-plugin");
2
+ const tsParser = require("@typescript-eslint/parser");
3
+ const reactPlugin = require("eslint-plugin-react");
4
+ const prettierPlugin = require("eslint-plugin-prettier");
5
+ const eslintConfigPrettier = require("eslint-config-prettier");
6
+
7
+ const prettierConfig = require("@repo/prettier-config");
8
+
9
+ module.exports = [
10
+ eslintConfigPrettier,
11
+ {
12
+ files: ["**/*.{js,jsx,ts,tsx}"],
13
+ ignores: ["dist/**"],
14
+
15
+ languageOptions: {
16
+ parser: tsParser,
17
+ ecmaVersion: "latest",
18
+ sourceType: "module",
19
+ parserOptions: {
20
+ ecmaFeatures: { jsx: true }
21
+ }
22
+ },
23
+
24
+ plugins: {
25
+ "@typescript-eslint": tseslint,
26
+ react: reactPlugin,
27
+ prettier: prettierPlugin
28
+ },
29
+
30
+ rules: {
31
+ ...tseslint.configs.recommended.rules,
32
+ ...reactPlugin.configs.recommended.rules,
33
+ "prettier/prettier": ["error", prettierConfig],
34
+ "react/react-in-jsx-scope": "off",
35
+ "@typescript-eslint/no-unused-vars": "warn",
36
+ "@typescript-eslint/ban-ts-comment": "off"
37
+ },
38
+
39
+ settings: {
40
+ react: { version: "detect" }
41
+ }
42
+ }
43
+ ];
package/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ declare module "@repo/eslint-config" {
2
+ const config: import("eslint").Linter.Config;
3
+ export default config;
4
+ }
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@jaemdev/eslint-config",
3
+ "version": "1.0.0",
4
+ "description": "Shared ESLint configuration",
5
+ "license": "MIT",
6
+ "main": "index.cjs",
7
+ "types": "index.d.ts",
8
+ "files": [
9
+ "*.cjs",
10
+ "*.d.ts"
11
+ ],
12
+ "publishConfig": {
13
+ "access": "public",
14
+ "provenance": true
15
+ },
16
+ "scripts": {
17
+ "lint": "eslint ."
18
+ },
19
+ "dependencies": {
20
+ "@typescript-eslint/parser": "^6.0.0",
21
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
22
+ "eslint-config-next": "^14.0.0",
23
+ "eslint-config-prettier": "^9.0.0",
24
+ "eslint-plugin-react": "^7.33.0",
25
+ "eslint-plugin-react-hooks": "^4.6.0"
26
+ },
27
+ "peerDependencies": {
28
+ "eslint": "^8.0.0",
29
+ "typescript": "^5.0.0"
30
+ },
31
+ "devDependencies": {
32
+ "eslint": "^8.56.0",
33
+ "typescript": "^5.3.3"
34
+ }
35
+ }