@jarsec/eslint-config 6.4.1 → 7.0.1
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 +24 -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,29 @@
|
|
|
1
1
|
# @jarsec/eslint-config
|
|
2
2
|
|
|
3
|
+
## 7.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a831c22: fix(deps): update dependency @stylistic/eslint-plugin to ^5.9.0
|
|
8
|
+
- 6b7c3ee: fix(deps): update eslint
|
|
9
|
+
- 55c0da7: fix(deps): update dependency eslint-plugin-perfectionist to ^5.6.0
|
|
10
|
+
|
|
11
|
+
## 7.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- 0d9452d: Update to Eslint 10
|
|
16
|
+
Replace React plugins with @eslint-react/eslint-plugin
|
|
17
|
+
- 20b51a6: fix(deps): update dependency @stylistic/eslint-plugin to v5
|
|
18
|
+
- c82b578: fix(deps): update dependency eslint-plugin-perfectionist to v5
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 0541a3c: fix(deps): update eslint
|
|
23
|
+
- 9e7f69f: fix(deps): update dependency globals to ^17.3.0
|
|
24
|
+
- 7c40703: fix(deps): update dependency eslint-plugin-n to ^17.24.0
|
|
25
|
+
- c9d5835: chore(deps): update dependency typescript to ^5.9.3
|
|
26
|
+
|
|
3
27
|
## 6.4.1
|
|
4
28
|
|
|
5
29
|
### Patch 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.1",
|
|
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": "^9.
|
|
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.9.0",
|
|
25
|
+
"eslint": "^10.0.2",
|
|
26
|
+
"eslint-plugin-n": "^17.24.0",
|
|
27
|
+
"eslint-plugin-perfectionist": "^5.6.0",
|
|
28
28
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
29
|
-
"globals": "^17.
|
|
30
|
-
"typescript-eslint": "^8.
|
|
29
|
+
"globals": "^17.3.0",
|
|
30
|
+
"typescript-eslint": "^8.56.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^24.10.
|
|
33
|
+
"@types/node": "^24.10.15",
|
|
34
34
|
"typescript": "^5.9.3"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"eslint": "^
|
|
38
|
-
"typescript": "^5.
|
|
37
|
+
"eslint": "^10.0.2",
|
|
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
|