@homestuck/eslint-config 1.1.1 → 1.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.2.0](https://github.com/homestuck/configs/compare/eslint-config@v1.1.1...eslint-config@v1.2.0) (2025-12-15)
4
+
5
+
6
+ ### Features
7
+
8
+ * **eslint:** Add NextJS config to Eslint exports ([#18](https://github.com/homestuck/configs/issues/18)) ([54c5dc9](https://github.com/homestuck/configs/commit/54c5dc9625646c09e3ab7ebe917af43fb1ca871c))
9
+
3
10
  ## [1.1.1](https://github.com/homestuck/configs/compare/eslint-config@v1.1.0...eslint-config@v1.1.1) (2025-12-15)
4
11
 
5
12
 
package/eslint.config.mjs CHANGED
@@ -13,7 +13,7 @@ import { defineConfig } from 'eslint/config'
13
13
  import globals from 'globals'
14
14
  import tseslint from 'typescript-eslint'
15
15
 
16
- export const rootEslintConfig = defineConfig(
16
+ const rootEslintConfig = defineConfig(
17
17
  {
18
18
  ignores: ['**/.next', '**/dist', '**/pnpm-lock.yaml', '**/next-env.d.ts'],
19
19
  },
package/next.mjs ADDED
@@ -0,0 +1,18 @@
1
+ import { FlatCompat } from '@eslint/eslintrc'
2
+ import { defineConfig } from 'eslint/config'
3
+
4
+ import reactEslintConfig from '@homestuck/eslint-config/react'
5
+
6
+ const compat = new FlatCompat({
7
+ baseDirectory: import.meta.dirname,
8
+ })
9
+
10
+ const $config = defineConfig([
11
+ reactEslintConfig,
12
+ // @ts-expect-error - False positive config type mismatch
13
+ ...compat.config({
14
+ extends: ['plugin:@next/next/recommended'],
15
+ }),
16
+ ])
17
+
18
+ export default $config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homestuck/eslint-config",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "private": false,
5
5
  "description": "Baseline eslint configs used and maintained by Homestuck Inc., et al.",
6
6
  "repository": {
@@ -19,6 +19,13 @@
19
19
  "require": "./eslint.config.mjs",
20
20
  "default": "./eslint.config.mjs"
21
21
  },
22
+ "./next": {
23
+ "types": "./next.mjs",
24
+ "import": "./next.mjs",
25
+ "node": "./next.mjs",
26
+ "require": "./next.mjs",
27
+ "default": "./next.mjs"
28
+ },
22
29
  "./react": {
23
30
  "types": "./react.mjs",
24
31
  "import": "./react.mjs",
package/react.mjs CHANGED
@@ -8,7 +8,7 @@ import pluginReactHooks from 'eslint-plugin-react-hooks'
8
8
  import pluginReactYouMightNotNeedAnEffect from 'eslint-plugin-react-you-might-not-need-an-effect'
9
9
  import { defineConfig } from 'eslint/config'
10
10
 
11
- import { rootEslintConfig } from '@homestuck/eslint-config'
11
+ import rootEslintConfig from '@homestuck/eslint-config'
12
12
 
13
13
  const $config = defineConfig(
14
14
  ...rootEslintConfig,
package/tsconfig.json CHANGED
@@ -3,6 +3,7 @@
3
3
  "baseUrl": ".",
4
4
  "paths": {
5
5
  "@homestuck/eslint-config": ["eslint.config.mjs"],
6
+ "@homestuck/eslint-config/next": ["next.mjs"],
6
7
  "@homestuck/eslint-config/react": ["react.mjs"]
7
8
  },
8
9
  "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",