@1stg/eslint-config 10.1.0 → 10.3.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 +17 -0
- package/angular.js +1 -6
- package/base.js +4 -1
- package/js-base.js +2 -4
- package/package.json +27 -27
- package/ts-base.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 10.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
9
|
+
## 10.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#381](https://github.com/1stG/configs/pull/381) [`4c2cbd7`](https://github.com/1stG/configs/commit/4c2cbd7ee4b5ef548d6ad9a265a1c42c68300e09) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update all upgradable plugins
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`a7ee3ee`](https://github.com/1stG/configs/commit/a7ee3ee619abbd070a2c9f5e29346af6fab1b3a8)]:
|
|
18
|
+
- @1stg/config@1.2.0
|
|
19
|
+
|
|
3
20
|
## 10.1.0
|
|
4
21
|
|
|
5
22
|
### 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.0",
|
|
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",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"@babel/eslint-plugin": "^7.0.0",
|
|
26
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": "
|
|
31
|
+
"eslint-plugin-jest": ">=28.0.0",
|
|
32
32
|
"eslint-plugin-node-dependencies": "^1.0.0",
|
|
33
33
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
34
34
|
"eslint-plugin-react-refresh": "^0.4.0",
|
|
@@ -70,31 +70,31 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@1stg/config": "^1.
|
|
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.
|
|
83
|
-
"eslint-plugin-jsdoc": "
|
|
84
|
-
"eslint-plugin-jsonc": "^2.
|
|
73
|
+
"@1stg/config": "^1.2.0",
|
|
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.18.0",
|
|
88
|
-
"eslint-plugin-prettier": "^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": "^
|
|
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/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': [
|