@etchteam/eslint-config 1.8.0 → 1.11.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.
@@ -0,0 +1,10 @@
1
+ ---
2
+ version: 2
3
+ updates:
4
+ - package-ecosystem: "npm"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "daily"
8
+ commit-message:
9
+ prefix: "fix"
10
+ prefix-development: "chore"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npx --no -- lint-staged
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "editor.formatOnSave": false,
3
3
  "editor.codeActionsOnSave": {
4
- "source.fixAll.eslint": true,
4
+ "source.fixAll.eslint": "explicit"
5
5
  },
6
6
  "sonarlint.connectedMode.project": {
7
7
  "connectionId": "etchteam",
package/CHANGELOG.md CHANGED
@@ -1,7 +1,14 @@
1
- ## [1.8.0](https://github.com/etchteam/eslint/compare/v1.7.1...v1.8.0) (2023-12-06)
1
+ ## [1.11.0](https://github.com/etchteam/eslint/compare/v1.10.0...v1.11.0) (2024-05-21)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * add json and yaml linting ([c1354f8](https://github.com/etchteam/eslint/commit/c1354f8c1006bfe347c5048298caccb58923d2e9))
7
- * use a symlink so we use our own linter to lint our linter ([afea6ba](https://github.com/etchteam/eslint/commit/afea6ba0cf6efd70aeca378d192684e9107a4968))
6
+ * add precommit hook ([7c9f260](https://github.com/etchteam/eslint/commit/7c9f2601e2763ccc3950b5d83709f7c1db64a79f))
7
+ * add you-dont-need-lodash-underscore ([bedda3c](https://github.com/etchteam/eslint/commit/bedda3ca3af4694bafab6327f4ef5b8ec5193cb0))
8
+ * capture all supported file types ([495971e](https://github.com/etchteam/eslint/commit/495971e07d50f77728fb28cba7ed46af374e0209))
9
+ * install husky hooks on postinstall ([0257184](https://github.com/etchteam/eslint/commit/025718424667d521aa7eb93471802fc98226d4c4))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * add schedule and directory to dependabot config ([5a88e95](https://github.com/etchteam/eslint/commit/5a88e95cb57a91f03ccd4c9146b2c5c8a13c702e))
package/README.md CHANGED
@@ -46,7 +46,7 @@ Run the following:
46
46
  ```bash
47
47
  mkdir .vscode
48
48
 
49
- echo "{ \"editor.formatOnSave\": false, \"editor.codeActionsOnSave\": { \"source.fixAll.eslint\": true } }" > .vscode/settings.json
49
+ echo "{ \"editor.formatOnSave\": false, \"editor.codeActionsOnSave\": { \"source.fixAll.eslint\": \"explicit\" } }" > .vscode/settings.json
50
50
 
51
51
  # The VSCode prettier extension doesn't read the eslint config, so specific
52
52
  # prettier overrides need to go in a prettier config for format on save
@@ -61,7 +61,7 @@ Add the following to `.vscode/settings.json`:
61
61
  ```json
62
62
  "editor.formatOnSave": false,
63
63
  "editor.codeActionsOnSave": {
64
- "source.fixAll.eslint": true
64
+ "source.fixAll.eslint": "explicit"
65
65
  }
66
66
  ```
67
67
 
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- '*.js': 'eslint --fix',
2
+ '*.{ts,tsx,js,jsx,yml,yaml,json}': 'eslint --fix',
3
3
  };
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@etchteam/eslint-config",
3
- "version": "1.8.0",
3
+ "version": "1.11.0",
4
4
  "description": "Etch's standard eslint config",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
7
+ "postinstall": "husky install",
7
8
  "test": "echo \"Error: no test specified\" && exit 1",
8
9
  "release": "semantic-release"
9
10
  },
@@ -30,8 +31,8 @@
30
31
  "lint-staged": "^13.1.0"
31
32
  },
32
33
  "dependencies": {
33
- "@typescript-eslint/eslint-plugin": "^6.9.1",
34
- "@typescript-eslint/parser": "^6.9.1",
34
+ "@typescript-eslint/eslint-plugin": "^6.18.1",
35
+ "@typescript-eslint/parser": "^6.18.1",
35
36
  "eslint": ">=8.29.0",
36
37
  "eslint-config-next": "^14.0.1",
37
38
  "eslint-config-prettier": "^9.0.0",
@@ -44,6 +45,7 @@
44
45
  "eslint-plugin-storybook": "^0.6.15",
45
46
  "eslint-plugin-unused-imports": "^3.0.0",
46
47
  "eslint-plugin-yml": "^1.10.0",
48
+ "eslint-plugin-you-dont-need-lodash-underscore": "^6.14.0",
47
49
  "prettier": ">=3.0.0"
48
50
  },
49
51
  "peerDependencies": {
package/src/index.js CHANGED
@@ -9,6 +9,7 @@ module.exports = {
9
9
  'plugin:prettier/recommended',
10
10
  'plugin:jsx-a11y/strict',
11
11
  'plugin:json/recommended',
12
+ 'plugin:you-dont-need-lodash-underscore/compatible',
12
13
  'plugin:yml/standard',
13
14
  'plugin:yml/prettier',
14
15
  ],