@1stg/eslint-config 10.2.0 → 10.3.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 +12 -0
- package/angular.js +1 -6
- package/base.js +4 -1
- package/js-base.js +2 -4
- package/package.json +30 -30
- package/react.js +2 -2
- package/ts-base.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 10.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#389](https://github.com/1stG/configs/pull/389) [`9545a06`](https://github.com/1stG/configs/commit/9545a0630f2922d92598c4770ebac00380e45945) Thanks [@renovate](https://github.com/apps/renovate)! - fix(eslint-config): peer dependencies versions
|
|
8
|
+
|
|
9
|
+
## 10.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#393](https://github.com/1stG/configs/pull/393) [`3f70b26`](https://github.com/1stG/configs/commit/3f70b26ff7ee5a4373f430e589de713977cd93d3) Thanks [@JounQin](https://github.com/JounQin)! - chore: bump dependencies
|
|
14
|
+
|
|
3
15
|
## 10.2.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/angular.js
CHANGED
|
@@ -6,18 +6,13 @@ import angularTemplateParser from 'angular-eslint-template-parser'
|
|
|
6
6
|
import * as markup_ from 'eslint-plugin-markup'
|
|
7
7
|
import tseslint from 'typescript-eslint'
|
|
8
8
|
|
|
9
|
-
import { prettierExtends
|
|
9
|
+
import { prettierExtends } from './_util.js'
|
|
10
10
|
|
|
11
11
|
export const angular = tseslint.config(
|
|
12
12
|
{
|
|
13
13
|
name: '@1stg/angular-ts',
|
|
14
14
|
files: ['**/*.ts'],
|
|
15
15
|
ignores: ['**/*.d.ts'],
|
|
16
|
-
languageOptions: {
|
|
17
|
-
parserOptions: {
|
|
18
|
-
project,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
16
|
extends: [angular_.configs.tsRecommended, prettierExtends],
|
|
22
17
|
processor: angular_.processInlineTemplates,
|
|
23
18
|
rules: {
|
package/base.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
|
+
/** @import { TSESLint } from '@typescript-eslint/utils' */
|
|
4
|
+
|
|
3
5
|
import eslint from '@eslint/js'
|
|
4
6
|
import eslintCommentsConfigs from '@eslint-community/eslint-plugin-eslint-comments/configs'
|
|
5
7
|
import { isPkgAvailable, tryRequirePkg } from '@pkgr/utils'
|
|
@@ -33,7 +35,8 @@ export const base = tseslint.config([
|
|
|
33
35
|
n.configs['flat/recommended'],
|
|
34
36
|
promise.configs['flat/recommended'],
|
|
35
37
|
regexp.configs['flat/recommended'],
|
|
36
|
-
sonarjs.configs
|
|
38
|
+
/** @type {TSESLint.FlatConfig.SharedConfigs} */ (sonarjs.configs)
|
|
39
|
+
.recommended,
|
|
37
40
|
unicornX.configs.recommended,
|
|
38
41
|
prettierExtends,
|
|
39
42
|
isEslintNodeDepsEnabled && isPkgAvailable('eslint-plugin-node-dependencies')
|
package/js-base.js
CHANGED
|
@@ -16,7 +16,7 @@ export const jsBase = {
|
|
|
16
16
|
files: ['**/*.{cjs,mjs,js,jsx}'],
|
|
17
17
|
languageOptions: isBabelAvailable
|
|
18
18
|
? {
|
|
19
|
-
parser: tryRequirePkg('@babel/eslint-parser'),
|
|
19
|
+
parser: tryRequirePkg('@babel/eslint-parser', true),
|
|
20
20
|
// eslint-disable-next-line no-cond-assign, sonarjs/no-nested-assignment
|
|
21
21
|
parserOptions: (configFile =
|
|
22
22
|
tryFile('babel.config.js') ||
|
|
@@ -30,7 +30,7 @@ export const jsBase = {
|
|
|
30
30
|
isBabelAvailable
|
|
31
31
|
? {
|
|
32
32
|
'@babel': /** @type {Omit<TSESLint.FlatConfig.Plugin, 'configs'>} */ (
|
|
33
|
-
tryRequirePkg('@babel/eslint-plugin')
|
|
33
|
+
tryRequirePkg('@babel/eslint-plugin', true)
|
|
34
34
|
),
|
|
35
35
|
}
|
|
36
36
|
: {}
|
|
@@ -39,10 +39,8 @@ export const jsBase = {
|
|
|
39
39
|
camelcase: [2, { properties: 'never', ignoreDestructuring: true }],
|
|
40
40
|
...(isBabelAvailable && {
|
|
41
41
|
'new-cap': 0,
|
|
42
|
-
'no-invalid-this': 0,
|
|
43
42
|
'no-unused-expressions': 0,
|
|
44
43
|
'@babel/new-cap': 2,
|
|
45
|
-
'@babel/no-invalid-this': 2,
|
|
46
44
|
'@babel/no-unused-expressions': 2,
|
|
47
45
|
}),
|
|
48
46
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1stg/eslint-config",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Personal but Shareable ESLint Configuration for all 1stG.me projects",
|
|
6
6
|
"repository": "git+https://github.com/1stG/configs.git",
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@babel/eslint-parser": "^7.0.0",
|
|
25
25
|
"@babel/eslint-plugin": "^7.0.0",
|
|
26
|
-
"@eslint-react/eslint-plugin": "
|
|
26
|
+
"@eslint-react/eslint-plugin": ">=1.0.0",
|
|
27
27
|
"@vitest/eslint-plugin": "^1.0.0",
|
|
28
|
-
"angular-eslint": "
|
|
28
|
+
"angular-eslint": ">=18.0.0",
|
|
29
29
|
"angular-eslint-template-parser": "^0.1.0",
|
|
30
30
|
"eslint": ">=8.0.0",
|
|
31
|
-
"eslint-plugin-jest": "
|
|
32
|
-
"eslint-plugin-node-dependencies": "^1.0.0",
|
|
33
|
-
"eslint-plugin-react-hooks": "
|
|
34
|
-
"eslint-plugin-react-refresh": "^0.4.0",
|
|
31
|
+
"eslint-plugin-jest": ">=28.0.0",
|
|
32
|
+
"eslint-plugin-node-dependencies": "^1.3.0 || ^2.0.0",
|
|
33
|
+
"eslint-plugin-react-hooks": ">=5.0.0",
|
|
34
|
+
"eslint-plugin-react-refresh": "^0.4.26 || ^0.5.0",
|
|
35
35
|
"eslint-plugin-vue": "^10.0.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependenciesMeta": {
|
|
@@ -71,30 +71,30 @@
|
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@1stg/config": "^1.2.0",
|
|
74
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.
|
|
75
|
-
"@eslint/js": "^9.
|
|
76
|
-
"@pkgr/utils": "^4.
|
|
77
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
78
|
-
"@typescript-eslint/parser": "^8.
|
|
79
|
-
"eslint-config-prettier": "^10.1.
|
|
80
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
81
|
-
"eslint-plugin-css": "^0.
|
|
82
|
-
"eslint-plugin-import-x": "^4.16.
|
|
83
|
-
"eslint-plugin-jsdoc": "
|
|
84
|
-
"eslint-plugin-jsonc": "^2.
|
|
74
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
|
|
75
|
+
"@eslint/js": "^9.39.4 || ^10.0.1",
|
|
76
|
+
"@pkgr/utils": "^4.1.0",
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "^8.60.0",
|
|
78
|
+
"@typescript-eslint/parser": "^8.60.0",
|
|
79
|
+
"eslint-config-prettier": "^10.1.8",
|
|
80
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
81
|
+
"eslint-plugin-css": "^0.12.0",
|
|
82
|
+
"eslint-plugin-import-x": "^4.16.2",
|
|
83
|
+
"eslint-plugin-jsdoc": ">=50.8.0",
|
|
84
|
+
"eslint-plugin-jsonc": "^2.21.1 || ^3.2.0",
|
|
85
85
|
"eslint-plugin-markup": "^1.0.1",
|
|
86
|
-
"eslint-plugin-mdx": "^3.
|
|
87
|
-
"eslint-plugin-n": "^17.
|
|
88
|
-
"eslint-plugin-prettier": "^5.5.
|
|
89
|
-
"eslint-plugin-promise": "^7.
|
|
90
|
-
"eslint-plugin-regexp": "^2.
|
|
91
|
-
"eslint-plugin-simple-import-sort": "^
|
|
92
|
-
"eslint-plugin-sonarjs": "^
|
|
93
|
-
"eslint-plugin-toml": "^0.
|
|
94
|
-
"eslint-plugin-unicorn-x": "^2.0.0",
|
|
95
|
-
"eslint-plugin-yml": "^1.
|
|
96
|
-
"globals": "^
|
|
97
|
-
"typescript-eslint": "^8.
|
|
86
|
+
"eslint-plugin-mdx": "^3.7.1",
|
|
87
|
+
"eslint-plugin-n": "^17.24.0 || ^18.0.1",
|
|
88
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
89
|
+
"eslint-plugin-promise": "^7.3.0",
|
|
90
|
+
"eslint-plugin-regexp": "^2.10.0 || ^3.1.0",
|
|
91
|
+
"eslint-plugin-simple-import-sort": "^13.0.0",
|
|
92
|
+
"eslint-plugin-sonarjs": "^4.0.3",
|
|
93
|
+
"eslint-plugin-toml": "^0.13.1 || ^1.4.0",
|
|
94
|
+
"eslint-plugin-unicorn-x": "^2.0.0 || ^3.2.1",
|
|
95
|
+
"eslint-plugin-yml": "^1.19.1 || ^2.0.2 || ^3.4.0",
|
|
96
|
+
"globals": "^17.6.0",
|
|
97
|
+
"typescript-eslint": "^8.60.0"
|
|
98
98
|
},
|
|
99
99
|
"publishConfig": {
|
|
100
100
|
"access": "public"
|
package/react.js
CHANGED
|
@@ -17,13 +17,13 @@ export const reactJsx = tseslint.config({
|
|
|
17
17
|
})
|
|
18
18
|
|
|
19
19
|
const reactHooks_ = tryRequirePkg('eslint-plugin-react-hooks')
|
|
20
|
-
const reactRefresh = tryRequirePkg('eslint-plugin-react-refresh')
|
|
20
|
+
const reactRefresh = tryRequirePkg('eslint-plugin-react-refresh', true)
|
|
21
21
|
|
|
22
22
|
export const react = tseslint.config(
|
|
23
23
|
{
|
|
24
24
|
name: '@1stg/react',
|
|
25
25
|
files: ['**/*.{js,jsx,tsx}'],
|
|
26
|
-
extends: [reactRefresh?.configs.recommended, reactJsx].filter(Boolean),
|
|
26
|
+
extends: [reactRefresh?.configs.recommended(), reactJsx].filter(Boolean),
|
|
27
27
|
rules: {
|
|
28
28
|
'@eslint-react/avoid-shorthand-boolean': 2,
|
|
29
29
|
// '@eslint-react/naming-convention/handler-prop': [
|
package/ts-base.js
CHANGED
|
@@ -57,7 +57,8 @@ export const tsBase = tseslint.config({
|
|
|
57
57
|
],
|
|
58
58
|
'@typescript-eslint/explicit-module-boundary-types': 0,
|
|
59
59
|
'@typescript-eslint/member-ordering': 2,
|
|
60
|
-
// eslint-disable-line sonarjs/todo-tag
|
|
60
|
+
// eslint-disable-next-line sonarjs/todo-tag
|
|
61
|
+
// TODO: find better config
|
|
61
62
|
'@typescript-eslint/naming-convention': 0,
|
|
62
63
|
'@typescript-eslint/no-empty-function': 2,
|
|
63
64
|
'@typescript-eslint/no-extraneous-class': [
|