@smartive/eslint-config 3.2.0 → 4.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/.eslintrc.js +8 -0
- package/.eslintrc.react.js +2 -2
- package/.husky/commit-msg +4 -0
- package/CHANGELOG.md +18 -3
- package/commitlint.config.js +1 -0
- package/package.json +19 -6
package/.eslintrc.js
CHANGED
|
@@ -3,6 +3,14 @@ module.exports = {
|
|
|
3
3
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
4
4
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
5
5
|
'@typescript-eslint/no-var-requires': 'warn',
|
|
6
|
+
'@typescript-eslint/no-unused-vars': ['error'],
|
|
7
|
+
'@typescript-eslint/no-floating-promises': ['error'],
|
|
8
|
+
'no-constant-binary-expression': 'error',
|
|
9
|
+
'array-callback-return': 'error',
|
|
10
|
+
'no-debugger': 'error',
|
|
11
|
+
'no-alert': 'error',
|
|
12
|
+
'no-console': ['error', { allow: ['info', 'warn', 'error', 'trace', 'time', 'timeEnd'] }],
|
|
13
|
+
'newline-before-return': 'error',
|
|
6
14
|
'prettier/prettier': [
|
|
7
15
|
'error',
|
|
8
16
|
{
|
package/.eslintrc.react.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
rules: {
|
|
3
3
|
'react/react-in-jsx-scope': 'off',
|
|
4
|
-
'react/prop-types':
|
|
5
|
-
'react/display-name':
|
|
4
|
+
'react/prop-types': 'off',
|
|
5
|
+
'react/display-name': 'off',
|
|
6
6
|
'react/forbid-component-props': ['warn', { forbid: ['style', 'className'] }],
|
|
7
7
|
},
|
|
8
8
|
parserOptions: {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
1
|
-
# [
|
|
1
|
+
# [4.0.0](https://github.com/smartive/eslint-config/compare/v3.3.0...v4.0.0) (2023-10-16)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* check if husky is installed ([#18](https://github.com/smartive/eslint-config/issues/18)) ([8889b95](https://github.com/smartive/eslint-config/commit/8889b95d3c299d3ea0df6341cfdd2d5592aa5983))
|
|
7
|
+
* fix the check that checks if Husky is installed ([5f5c469](https://github.com/smartive/eslint-config/commit/5f5c469a47087f938c8a6f0e2a2710f9e77e475e))
|
|
8
|
+
* only run husky in development environment ([#17](https://github.com/smartive/eslint-config/issues/17)) ([702fb42](https://github.com/smartive/eslint-config/commit/702fb421c8e4dfd633f43c7dc1b3e4346dc96544))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### chore
|
|
12
|
+
|
|
13
|
+
* drop support for old versions of ESLint ([#15](https://github.com/smartive/eslint-config/issues/15)) ([dadd751](https://github.com/smartive/eslint-config/commit/dadd751466d84c97ff5a6f75b83dfc2f6b16eea6))
|
|
7
14
|
|
|
8
15
|
|
|
9
16
|
### Features
|
|
10
17
|
|
|
11
|
-
*
|
|
18
|
+
* add new more restrictive rules ([#16](https://github.com/smartive/eslint-config/issues/16)) ([52fa585](https://github.com/smartive/eslint-config/commit/52fa5857b72365d99f4d090bdf603363eb0d46de))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### BREAKING CHANGES
|
|
22
|
+
|
|
23
|
+
* Drop support for ESLint v7 and @typescript-eslint/* v5
|
|
24
|
+
* Add new rules for array-callback-return, no-debugger, no-alert,
|
|
25
|
+
newline-before-return, @typescript-eslint/no-unused-vars,
|
|
26
|
+
@typescript-eslint/no-floating-promises, no-constant-binary-expression and no-console
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = { extends: ['@commitlint/config-conventional'] };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartive/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "ESLint configuration by smartive",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -20,19 +20,32 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://github.com/smartive/eslint-config#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
24
|
-
"@typescript-eslint/parser": "^
|
|
25
|
-
"eslint-config-prettier": "^
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^6.7.4",
|
|
24
|
+
"@typescript-eslint/parser": "^6.7.4",
|
|
25
|
+
"eslint-config-prettier": "^9.0.0",
|
|
26
26
|
"eslint-plugin-import": "^2.25.3",
|
|
27
27
|
"eslint-plugin-prettier": ">=4.0.0 <6",
|
|
28
28
|
"eslint-plugin-react": "^7.27.0",
|
|
29
29
|
"eslint-plugin-react-hooks": "^4.3.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"eslint": "^
|
|
32
|
+
"eslint": "^8.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
+
"@commitlint/cli": "^17.8.0",
|
|
36
|
+
"@commitlint/config-conventional": "^17.8.0",
|
|
35
37
|
"@smartive/prettier-config": "^3.0.0",
|
|
36
|
-
"
|
|
38
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
39
|
+
"husky": "^8.0.3",
|
|
40
|
+
"prettier": "^3.0.0"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"commitlint": "commitlint --edit",
|
|
44
|
+
"prepare": "[ ! -f node_modules/.bin/husky ] || husky install"
|
|
45
|
+
},
|
|
46
|
+
"config": {
|
|
47
|
+
"commitizen": {
|
|
48
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
49
|
+
}
|
|
37
50
|
}
|
|
38
51
|
}
|