@smartive/eslint-config 5.0.0 → 5.2.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/.eslintrc.js +1 -1
- package/.eslintrc.react.js +8 -0
- package/.husky/commit-msg +0 -3
- package/.nvmrc +1 -0
- package/CHANGELOG.md +2 -17
- package/package.json +5 -5
package/.eslintrc.js
CHANGED
|
@@ -13,7 +13,7 @@ module.exports = {
|
|
|
13
13
|
'array-callback-return': 'error',
|
|
14
14
|
'no-debugger': 'error',
|
|
15
15
|
'no-alert': 'error',
|
|
16
|
-
'no-console': ['error', { allow: ['info', 'warn', 'error', 'trace', 'time', 'timeEnd'] }],
|
|
16
|
+
'no-console': ['error', { allow: ['debug', 'info', 'warn', 'error', 'trace', 'time', 'timeEnd'] }],
|
|
17
17
|
'newline-before-return': 'error',
|
|
18
18
|
'prefer-const': 'error',
|
|
19
19
|
'no-else-return': 'error',
|
package/.eslintrc.react.js
CHANGED
|
@@ -5,6 +5,14 @@ module.exports = {
|
|
|
5
5
|
'react/prop-types': 'off',
|
|
6
6
|
'react/display-name': 'off',
|
|
7
7
|
'react/forbid-component-props': ['warn', { forbid: ['style', 'className'] }],
|
|
8
|
+
'@typescript-eslint/no-misused-promises': [
|
|
9
|
+
'error',
|
|
10
|
+
{
|
|
11
|
+
checksVoidReturn: {
|
|
12
|
+
attributes: false,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
],
|
|
8
16
|
},
|
|
9
17
|
parserOptions: {
|
|
10
18
|
ecmaFeatures: {
|
package/.husky/commit-msg
CHANGED
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
20
|
package/CHANGELOG.md
CHANGED
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
# [5.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* disable @typescript-eslint/no-unsafe-enum-comparison rule ([9c7bc6b](https://github.com/smartive/eslint-config/commit/9c7bc6b1e66935f8976e7fd91356f795e516fa44))
|
|
7
|
-
* disable rule @typescript-eslint/consistent-type-definitions ([d63e040](https://github.com/smartive/eslint-config/commit/d63e040ca7900fce41564972257043041207c868))
|
|
1
|
+
# [5.2.0](https://github.com/smartive/eslint-config/compare/v5.1.0...v5.2.0) (2024-11-07)
|
|
8
2
|
|
|
9
3
|
|
|
10
4
|
### Features
|
|
11
5
|
|
|
12
|
-
*
|
|
13
|
-
* use type checked recommended rules ([2a993ba](https://github.com/smartive/eslint-config/commit/2a993bae6e178b722a848bcf07eabe34a59e2e18))
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### BREAKING CHANGES
|
|
17
|
-
|
|
18
|
-
* Use @typescript-eslint/recommended-type-checked and
|
|
19
|
-
@typescript-eslint/stylistic-type-checked rules instead of @typescript-eslint/recommended
|
|
20
|
-
* Add new rules for @typescript-eslint/no-explicit-any, prefer-const, no-else-return,
|
|
21
|
-
no-extra-semi, curly, eqeqeq, default-case-last
|
|
6
|
+
* Allow console.debug() ([#33](https://github.com/smartive/eslint-config/issues/33)) ([1c56a19](https://github.com/smartive/eslint-config/commit/1c56a1931571a7edc2ab2cd0e2b094d18d7be772))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartive/eslint-config",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "ESLint configuration by smartive",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"eslint": "^8.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@commitlint/cli": "^
|
|
36
|
-
"@commitlint/config-conventional": "^
|
|
35
|
+
"@commitlint/cli": "^19.0.0",
|
|
36
|
+
"@commitlint/config-conventional": "^19.0.0",
|
|
37
37
|
"@smartive/prettier-config": "^3.0.0",
|
|
38
38
|
"cz-conventional-changelog": "^3.3.0",
|
|
39
|
-
"husky": "^
|
|
39
|
+
"husky": "^9.0.0",
|
|
40
40
|
"prettier": "^3.0.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"commitlint": "commitlint --edit",
|
|
44
|
-
"prepare": "[ ! -f node_modules/.bin/husky ] || husky
|
|
44
|
+
"prepare": "[ ! -f node_modules/.bin/husky ] || husky"
|
|
45
45
|
},
|
|
46
46
|
"config": {
|
|
47
47
|
"commitizen": {
|