@tokoqu/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.
Files changed (3) hide show
  1. package/base.js +29 -0
  2. package/next.js +15 -0
  3. package/package.json +19 -0
package/base.js ADDED
@@ -0,0 +1,29 @@
1
+ import js from '@eslint/js'
2
+ import tseslint from 'typescript-eslint'
3
+ import prettier from 'eslint-config-prettier'
4
+ import globals from 'globals'
5
+
6
+ /**
7
+ * Shared ESLint flat config base for all LinkUsaha packages.
8
+ * Kept intentionally lean — formatting is owned by Prettier.
9
+ */
10
+ export default tseslint.config(
11
+ js.configs.recommended,
12
+ ...tseslint.configs.recommended,
13
+ {
14
+ languageOptions: {
15
+ globals: { ...globals.node },
16
+ },
17
+ rules: {
18
+ '@typescript-eslint/no-unused-vars': [
19
+ 'warn',
20
+ { argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
21
+ ],
22
+ '@typescript-eslint/no-explicit-any': 'warn',
23
+ },
24
+ },
25
+ {
26
+ ignores: ['node_modules/**', 'dist/**', '.next/**', '.turbo/**'],
27
+ },
28
+ prettier,
29
+ )
package/next.js ADDED
@@ -0,0 +1,15 @@
1
+ import globals from 'globals'
2
+ import base from './base.js'
3
+
4
+ /**
5
+ * ESLint flat config for Next.js template apps.
6
+ * Extends the shared base and adds browser globals.
7
+ */
8
+ export default [
9
+ ...base,
10
+ {
11
+ languageOptions: {
12
+ globals: { ...globals.browser },
13
+ },
14
+ },
15
+ ]
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "@tokoqu/eslint-config",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "exports": {
7
+ "./base": "./base.js",
8
+ "./next": "./next.js"
9
+ },
10
+ "dependencies": {
11
+ "@eslint/js": "^9.18.0",
12
+ "eslint-config-prettier": "^9.1.0",
13
+ "globals": "^15.14.0",
14
+ "typescript-eslint": "^8.20.0"
15
+ },
16
+ "peerDependencies": {
17
+ "eslint": "^9"
18
+ }
19
+ }