@homestuck/eslint-config 1.6.0 → 1.7.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 +7 -0
- package/eslint.config.mjs +4 -5
- package/next.mjs +2 -3
- package/package.json +17 -35
- package/react.mjs +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.7.0](https://github.com/homestuck/configs/compare/eslint-config@v1.6.0...eslint-config@v1.7.0) (2026-01-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* release 1.7.0 ([5b2ccc5](https://github.com/homestuck/configs/commit/5b2ccc56289730d021be2bf945d28dcf7380b30b))
|
|
9
|
+
|
|
3
10
|
## [1.6.0](https://github.com/homestuck/configs/compare/eslint-config@v1.5.2...eslint-config@v1.6.0) (2026-01-20)
|
|
4
11
|
|
|
5
12
|
|
package/eslint.config.mjs
CHANGED
|
@@ -13,7 +13,8 @@ import { defineConfig, globalIgnores } from 'eslint/config'
|
|
|
13
13
|
import globals from 'globals'
|
|
14
14
|
import ts from 'typescript-eslint'
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
/** @type {import('eslint').Linter.Config[]} */
|
|
17
|
+
export default defineConfig(
|
|
17
18
|
pluginTurbo.configs['flat/recommended'],
|
|
18
19
|
{
|
|
19
20
|
name: 'eslint/js/recommended',
|
|
@@ -25,7 +26,7 @@ const rootEslintConfig = defineConfig(
|
|
|
25
26
|
...pluginPerfectionist.configs['recommended-natural'],
|
|
26
27
|
name: 'perfectionist/recommended-natural',
|
|
27
28
|
},
|
|
28
|
-
{ ...pluginRegexp.configs
|
|
29
|
+
{ ...pluginRegexp.configs.recommended, name: 'regexp/recommended' },
|
|
29
30
|
pluginUnicorn.configs.recommended,
|
|
30
31
|
pluginImport.flatConfigs.recommended,
|
|
31
32
|
// @ts-expect-error --- false positive
|
|
@@ -147,7 +148,7 @@ const rootEslintConfig = defineConfig(
|
|
|
147
148
|
{ fixStyle: 'inline-type-imports', prefer: 'type-imports' },
|
|
148
149
|
],
|
|
149
150
|
'@typescript-eslint/no-empty-function': ['warn'],
|
|
150
|
-
|
|
151
|
+
'@typescript-eslint/no-explicit-any': ['error'],
|
|
151
152
|
'@typescript-eslint/no-misused-promises': [
|
|
152
153
|
2,
|
|
153
154
|
{ checksVoidReturn: { attributes: false } },
|
|
@@ -166,5 +167,3 @@ const rootEslintConfig = defineConfig(
|
|
|
166
167
|
},
|
|
167
168
|
},
|
|
168
169
|
)
|
|
169
|
-
|
|
170
|
-
export default rootEslintConfig
|
package/next.mjs
CHANGED
|
@@ -3,7 +3,8 @@ import { defineConfig } from 'eslint/config'
|
|
|
3
3
|
|
|
4
4
|
import reactEslintConfig from '@homestuck/eslint-config/react'
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/** @type {import('eslint').Linter.Config[]} */
|
|
7
|
+
export default defineConfig(
|
|
7
8
|
reactEslintConfig,
|
|
8
9
|
{
|
|
9
10
|
name: '@next/next/recommended',
|
|
@@ -19,5 +20,3 @@ const $config = defineConfig(
|
|
|
19
20
|
name: 'Next Settings',
|
|
20
21
|
},
|
|
21
22
|
)
|
|
22
|
-
|
|
23
|
-
export default $config
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homestuck/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Baseline ESLint configs used and maintained by Homestuck Inc., et al.",
|
|
6
6
|
"repository": {
|
|
@@ -12,63 +12,45 @@
|
|
|
12
12
|
"author": "Homestuck <support@homestuck.com> (https://homestuck.com)",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"exports": {
|
|
15
|
-
".":
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"node": "./eslint.config.mjs",
|
|
19
|
-
"require": "./eslint.config.mjs",
|
|
20
|
-
"default": "./eslint.config.mjs"
|
|
21
|
-
},
|
|
22
|
-
"./next": {
|
|
23
|
-
"types": "./next.mjs",
|
|
24
|
-
"import": "./next.mjs",
|
|
25
|
-
"node": "./next.mjs",
|
|
26
|
-
"require": "./next.mjs",
|
|
27
|
-
"default": "./next.mjs"
|
|
28
|
-
},
|
|
29
|
-
"./react": {
|
|
30
|
-
"types": "./react.mjs",
|
|
31
|
-
"import": "./react.mjs",
|
|
32
|
-
"node": "./react.mjs",
|
|
33
|
-
"require": "./react.mjs",
|
|
34
|
-
"default": "./react.mjs"
|
|
35
|
-
}
|
|
15
|
+
".": "./eslint.config.mjs",
|
|
16
|
+
"./next": "./next.mjs",
|
|
17
|
+
"./react": "./react.mjs"
|
|
36
18
|
},
|
|
37
19
|
"main": "./eslint.config.mjs",
|
|
38
20
|
"prettier": "@homestuck/prettier-config",
|
|
39
21
|
"dependencies": {
|
|
40
22
|
"@eslint/eslintrc": "^3.3.3",
|
|
41
23
|
"@eslint/js": "^9.39.2",
|
|
42
|
-
"@next/eslint-plugin-next": "^16.1.
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
44
|
-
"@typescript-eslint/parser": "^8.
|
|
24
|
+
"@next/eslint-plugin-next": "^16.1.6",
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
26
|
+
"@typescript-eslint/parser": "^8.54.0",
|
|
45
27
|
"eslint": "^9.39.2",
|
|
46
28
|
"eslint-config-prettier": "^10.1.8",
|
|
47
29
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
48
30
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
49
31
|
"eslint-plugin-import": "^2.32.0",
|
|
50
32
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
51
|
-
"eslint-plugin-perfectionist": "^5.
|
|
33
|
+
"eslint-plugin-perfectionist": "^5.4.0",
|
|
52
34
|
"eslint-plugin-prettier": "^5.5.5",
|
|
53
35
|
"eslint-plugin-react": "^7.37.5",
|
|
54
36
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
55
37
|
"eslint-plugin-react-you-might-not-need-an-effect": "^0.8.5",
|
|
56
|
-
"eslint-plugin-regexp": "^
|
|
38
|
+
"eslint-plugin-regexp": "^3.0.0",
|
|
57
39
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
58
|
-
"eslint-plugin-storybook": "^10.1
|
|
59
|
-
"eslint-plugin-turbo": "^2.7.
|
|
40
|
+
"eslint-plugin-storybook": "^10.2.1",
|
|
41
|
+
"eslint-plugin-turbo": "^2.7.6",
|
|
60
42
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
61
43
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
62
|
-
"globals": "^17.
|
|
63
|
-
"typescript-eslint": "^8.
|
|
44
|
+
"globals": "^17.2.0",
|
|
45
|
+
"typescript-eslint": "^8.54.0"
|
|
64
46
|
},
|
|
65
47
|
"devDependencies": {
|
|
66
48
|
"@types/eslint": "^9.6.1",
|
|
67
49
|
"@types/eslint__js": "^9.14.0",
|
|
68
|
-
"@types/node": "^25.0
|
|
69
|
-
"prettier": "^3.8.
|
|
70
|
-
"@homestuck/
|
|
71
|
-
"@homestuck/
|
|
50
|
+
"@types/node": "^25.1.0",
|
|
51
|
+
"prettier": "^3.8.1",
|
|
52
|
+
"@homestuck/prettier-config": "1.7.0",
|
|
53
|
+
"@homestuck/tsconfig": "1.7.0"
|
|
72
54
|
},
|
|
73
55
|
"scripts": {
|
|
74
56
|
"clean": "rm -rf .turbo node_modules",
|
package/react.mjs
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
2
|
-
|
|
3
1
|
// @ts-expect-error - no types
|
|
4
2
|
import pluginJSXA11y from 'eslint-plugin-jsx-a11y'
|
|
5
3
|
import pluginReact from 'eslint-plugin-react'
|
|
@@ -9,7 +7,8 @@ import { defineConfig } from 'eslint/config'
|
|
|
9
7
|
|
|
10
8
|
import rootEslintConfig from '@homestuck/eslint-config'
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
/** @type {import('eslint').Linter.Config[]} */
|
|
11
|
+
export default defineConfig(
|
|
13
12
|
rootEslintConfig,
|
|
14
13
|
{
|
|
15
14
|
...pluginReact.configs.flat.recommended,
|
|
@@ -23,7 +22,7 @@ const $config = defineConfig(
|
|
|
23
22
|
...pluginReactYouMightNotNeedAnEffect.configs.recommended,
|
|
24
23
|
name: 'react-you-might-not-need-an-effect/recommended',
|
|
25
24
|
},
|
|
26
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
27
26
|
pluginJSXA11y.flatConfigs.recommended,
|
|
28
27
|
{
|
|
29
28
|
languageOptions: {
|
|
@@ -58,5 +57,3 @@ const $config = defineConfig(
|
|
|
58
57
|
},
|
|
59
58
|
},
|
|
60
59
|
)
|
|
61
|
-
|
|
62
|
-
export default $config
|