@jarsec/eslint-config 6.4.0 → 7.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/CHANGELOG.md +25 -0
- package/configs/react.js +29 -0
- package/package.json +15 -15
- package/configs/react.mjs +0 -39
- /package/configs/{base.mjs → base.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @jarsec/eslint-config
|
|
2
2
|
|
|
3
|
+
## 7.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 0d9452d: Update to Eslint 10
|
|
8
|
+
Replace React plugins with @eslint-react/eslint-plugin
|
|
9
|
+
- 20b51a6: fix(deps): update dependency @stylistic/eslint-plugin to v5
|
|
10
|
+
- c82b578: fix(deps): update dependency eslint-plugin-perfectionist to v5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 0541a3c: fix(deps): update eslint
|
|
15
|
+
- 9e7f69f: fix(deps): update dependency globals to ^17.3.0
|
|
16
|
+
- 7c40703: fix(deps): update dependency eslint-plugin-n to ^17.24.0
|
|
17
|
+
- c9d5835: chore(deps): update dependency typescript to ^5.9.3
|
|
18
|
+
|
|
19
|
+
## 6.4.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 5415df4: chore(deps): update dependency typescript-eslint to ^8.53.0
|
|
24
|
+
- cf67259: chore(deps): update dependency globals to v17
|
|
25
|
+
- 6ee0d93: chore(deps): update dependency eslint-plugin-n to ^17.23.2
|
|
26
|
+
- 2975e2e: chore(deps): update eslint monorepo to ^9.39.2
|
|
27
|
+
|
|
3
28
|
## 6.4.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
package/configs/react.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import react from '@eslint-react/eslint-plugin';
|
|
2
|
+
import eslint from '@eslint/js';
|
|
3
|
+
import { defineConfig } from 'eslint/config';
|
|
4
|
+
import tseslint from 'typescript-eslint';
|
|
5
|
+
|
|
6
|
+
import baseConfig from './base.js';
|
|
7
|
+
|
|
8
|
+
export default defineConfig(
|
|
9
|
+
{
|
|
10
|
+
extends: [
|
|
11
|
+
eslint.configs.recommended,
|
|
12
|
+
tseslint.configs.recommended,
|
|
13
|
+
...baseConfig,
|
|
14
|
+
react.configs['recommended-typescript'],
|
|
15
|
+
],
|
|
16
|
+
files: ['**/*.ts', '**/*.tsx'],
|
|
17
|
+
languageOptions: {
|
|
18
|
+
parser: tseslint.parser,
|
|
19
|
+
parserOptions: {
|
|
20
|
+
projectService: true,
|
|
21
|
+
// eslint-disable-next-line n/no-unsupported-features/node-builtins
|
|
22
|
+
tsconfigRootDir: import.meta.dirname,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
rules: {
|
|
26
|
+
'@eslint-react/no-missing-key': 'warn',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jarsec/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "jsec's eslint configurations",
|
|
5
6
|
"author": "Jarrod Seccombe <jarrod.seccombe@icloud.com>",
|
|
6
7
|
"license": "MIT",
|
|
@@ -14,28 +15,27 @@
|
|
|
14
15
|
"provenance": true
|
|
15
16
|
},
|
|
16
17
|
"exports": {
|
|
17
|
-
".": "./configs/base.
|
|
18
|
-
"./react": "./configs/react.
|
|
18
|
+
".": "./configs/base.js",
|
|
19
|
+
"./react": "./configs/react.js"
|
|
19
20
|
},
|
|
20
21
|
"dependencies": {
|
|
21
|
-
"@eslint/
|
|
22
|
-
"@
|
|
23
|
-
"eslint": "^
|
|
24
|
-
"eslint
|
|
25
|
-
"eslint-plugin-
|
|
26
|
-
"eslint-plugin-
|
|
27
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
22
|
+
"@eslint-react/eslint-plugin": "^2.13.0",
|
|
23
|
+
"@eslint/js": "^10.0.1",
|
|
24
|
+
"@stylistic/eslint-plugin": "^5.7.1",
|
|
25
|
+
"eslint": "^10.0.1",
|
|
26
|
+
"eslint-plugin-n": "^17.24.0",
|
|
27
|
+
"eslint-plugin-perfectionist": "^5.4.0",
|
|
28
28
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
29
|
-
"globals": "^
|
|
30
|
-
"typescript-eslint": "^8.
|
|
29
|
+
"globals": "^17.3.0",
|
|
30
|
+
"typescript-eslint": "^8.56.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^
|
|
33
|
+
"@types/node": "^24.10.13",
|
|
34
34
|
"typescript": "^5.9.3"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"eslint": "^
|
|
38
|
-
"typescript": "^5.
|
|
37
|
+
"eslint": "^10.0.1",
|
|
38
|
+
"typescript": "^5.9.3"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"lint": "eslint --fix ."
|
package/configs/react.mjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
|
|
3
|
-
import js from '@eslint/js';
|
|
4
|
-
import eslintConfigPrettier from 'eslint-config-prettier';
|
|
5
|
-
import reactPlugin from 'eslint-plugin-react';
|
|
6
|
-
import hooksPlugin from 'eslint-plugin-react-hooks';
|
|
7
|
-
import { defineConfig } from 'eslint/config';
|
|
8
|
-
import globals from 'globals';
|
|
9
|
-
import tseslint from 'typescript-eslint';
|
|
10
|
-
|
|
11
|
-
import baseConfig from './base.mjs';
|
|
12
|
-
|
|
13
|
-
export default defineConfig([
|
|
14
|
-
...baseConfig,
|
|
15
|
-
js.configs.recommended,
|
|
16
|
-
eslintConfigPrettier,
|
|
17
|
-
...tseslint.configs.recommended,
|
|
18
|
-
reactPlugin.configs.flat.recommended,
|
|
19
|
-
{
|
|
20
|
-
languageOptions: {
|
|
21
|
-
...reactPlugin.configs.flat.recommended.languageOptions,
|
|
22
|
-
globals: {
|
|
23
|
-
...globals.serviceworker,
|
|
24
|
-
...globals.browser,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
plugins: {
|
|
30
|
-
'react-hooks': hooksPlugin,
|
|
31
|
-
},
|
|
32
|
-
rules: {
|
|
33
|
-
...hooksPlugin.configs.recommended.rules,
|
|
34
|
-
// React scope no longer necessary with new JSX transform.
|
|
35
|
-
'react/react-in-jsx-scope': 'off',
|
|
36
|
-
},
|
|
37
|
-
settings: { react: { version: 'detect' } },
|
|
38
|
-
},
|
|
39
|
-
]);
|
|
File without changes
|