@smartive/eslint-config 3.3.0 → 4.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/.eslintrc.js CHANGED
@@ -1,8 +1,17 @@
1
+ /** @type {import('eslint').Linter.Config} */
1
2
  module.exports = {
2
3
  rules: {
3
4
  '@typescript-eslint/explicit-function-return-type': 'off',
4
5
  '@typescript-eslint/explicit-module-boundary-types': 'off',
5
6
  '@typescript-eslint/no-var-requires': 'warn',
7
+ '@typescript-eslint/no-unused-vars': ['error'],
8
+ '@typescript-eslint/no-floating-promises': ['error'],
9
+ 'no-constant-binary-expression': 'error',
10
+ 'array-callback-return': 'error',
11
+ 'no-debugger': 'error',
12
+ 'no-alert': 'error',
13
+ 'no-console': ['error', { allow: ['info', 'warn', 'error', 'trace', 'time', 'timeEnd'] }],
14
+ 'newline-before-return': 'error',
6
15
  'prettier/prettier': [
7
16
  'error',
8
17
  {
@@ -18,6 +27,7 @@ module.exports = {
18
27
  parserOptions: {
19
28
  ecmaVersion: 2018,
20
29
  sourceType: 'module',
30
+ project: true,
21
31
  },
22
32
  extends: [
23
33
  'eslint:recommended',
@@ -1,8 +1,9 @@
1
+ /** @type {import('eslint').Linter.Config} */
1
2
  module.exports = {
2
3
  rules: {
3
4
  'react/react-in-jsx-scope': 'off',
4
- 'react/prop-types': 0,
5
- 'react/display-name': 0,
5
+ 'react/prop-types': 'off',
6
+ 'react/display-name': 'off',
6
7
  'react/forbid-component-props': ['warn', { forbid: ['style', 'className'] }],
7
8
  },
8
9
  parserOptions: {
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npm run commitlint ${1}
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- # [3.3.0](https://github.com/smartive/eslint-config/compare/v3.2.0...v3.3.0) (2023-10-09)
1
+ ## [4.0.1](https://github.com/smartive/eslint-config/compare/v4.0.0...v4.0.1) (2023-10-17)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * Add support for new major releases of @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier ([89d0c75](https://github.com/smartive/eslint-config/commit/89d0c7512fa611fd82ca6b59b4ee21bfc566d1c7))
6
+ * @typescript-eslint/no-floating-promises rule not working due to missing TS project config ([#19](https://github.com/smartive/eslint-config/issues/19)) ([ce4e600](https://github.com/smartive/eslint-config/commit/ce4e600e48b94b08e0e8613f6afc10d7deee89b1))
@@ -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.3.0",
3
+ "version": "4.0.1",
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": "^5.4.0 || ^6.7.4",
24
- "@typescript-eslint/parser": "^5.4.0 || ^6.7.4",
25
- "eslint-config-prettier": "^8.3.0 || ^9.0.0",
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": "^7.0.0 || ^8.0.0"
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
- "prettier": ">=2.0.0 <4"
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
  }