@etchteam/eslint-config 1.7.1 → 1.10.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,7 @@
1
+ ---
2
+ version: 2
3
+ updates:
4
+ - package-ecosystem: "npm"
5
+ commit-message:
6
+ prefix: "fix"
7
+ prefix-development: "chore"
@@ -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,6 +1,6 @@
1
- ## [1.7.1](https://github.com/etchteam/eslint/compare/v1.7.0...v1.7.1) (2023-11-06)
1
+ ## [1.10.0](https://github.com/etchteam/eslint/compare/v1.9.0...v1.10.0) (2024-01-11)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * only warn on explicit any ([e1a6d39](https://github.com/etchteam/eslint/commit/e1a6d397d0621024d500e39edabb48adfe42e948))
6
+ * configure dependabot so that it uses the correct commit message prefix ([cfbce50](https://github.com/etchteam/eslint/commit/cfbce504ef3017fc3074d4f4ca6a764fd8cf13cc))
package/README.md CHANGED
@@ -23,7 +23,7 @@ Run the following:
23
23
  ```bash
24
24
  npm i -D husky lint-staged
25
25
 
26
- echo "module.exports = { '*.{ts,tsx,js,jsx}': 'eslint --fix' };" > lint-staged.config.js
26
+ echo "module.exports = { '*.{ts,tsx,js,jsx,yml,yaml,json}': 'eslint --fix' };" > lint-staged.config.js
27
27
 
28
28
  npx husky install
29
29
 
@@ -35,7 +35,7 @@ npx husky set .husky/pre-commit "npx --no-install -- lint-staged"
35
35
 
36
36
  Add the following to your lint-staged config:
37
37
 
38
- `'*.{ts,tsx,js,jsx}': 'eslint --fix'`
38
+ `'*.{ts,tsx,js,jsx,yml,yaml,json}': 'eslint --fix'`
39
39
 
40
40
  ## Usage with VSCode
41
41
 
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etchteam/eslint-config",
3
- "version": "1.7.1",
3
+ "version": "1.10.0",
4
4
  "description": "Etch's standard eslint config",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -30,19 +30,21 @@
30
30
  "lint-staged": "^13.1.0"
31
31
  },
32
32
  "dependencies": {
33
- "@typescript-eslint/eslint-plugin": "^6.9.1",
34
- "@typescript-eslint/parser": "^6.9.1",
35
- "eslint": "^8.53.0",
33
+ "@typescript-eslint/eslint-plugin": "^6.18.1",
34
+ "@typescript-eslint/parser": "^6.18.1",
35
+ "eslint": ">=8.29.0",
36
36
  "eslint-config-next": "^14.0.1",
37
37
  "eslint-config-prettier": "^9.0.0",
38
38
  "eslint-plugin-import": "^2.29.0",
39
+ "eslint-plugin-json": "^3.1.0",
39
40
  "eslint-plugin-jsx-a11y": "^6.8.0",
40
41
  "eslint-plugin-prettier": "^5.0.1",
41
42
  "eslint-plugin-react": "^7.33.2",
42
43
  "eslint-plugin-security": "^1.7.1",
43
44
  "eslint-plugin-storybook": "^0.6.15",
44
45
  "eslint-plugin-unused-imports": "^3.0.0",
45
- "prettier": "^3.0.3"
46
+ "eslint-plugin-yml": "^1.10.0",
47
+ "prettier": ">=3.0.0"
46
48
  },
47
49
  "peerDependencies": {
48
50
  "eslint": ">=8.29.0",
package/src/index.js CHANGED
@@ -8,6 +8,9 @@ module.exports = {
8
8
  'plugin:import/typescript',
9
9
  'plugin:prettier/recommended',
10
10
  'plugin:jsx-a11y/strict',
11
+ 'plugin:json/recommended',
12
+ 'plugin:yml/standard',
13
+ 'plugin:yml/prettier',
11
14
  ],
12
15
  plugins: ['unused-imports'],
13
16
  parser: '@typescript-eslint/parser',
package/.eslintrc.js DELETED
@@ -1,34 +0,0 @@
1
- module.exports = {
2
- extends: [
3
- 'next/core-web-vitals',
4
- 'plugin:@typescript-eslint/recommended',
5
- 'plugin:storybook/recommended',
6
- 'plugin:security/recommended',
7
- 'plugin:import/recommended',
8
- 'plugin:import/typescript',
9
- 'plugin:prettier/recommended',
10
- ],
11
- plugins: ['unused-imports'],
12
- parser: '@typescript-eslint/parser',
13
- rules: {
14
- 'no-unused-vars': 'off',
15
- '@typescript-eslint/no-unused-vars': 'error',
16
- 'unused-imports/no-unused-imports': 'error',
17
- 'unused-imports/no-unused-vars': 'off',
18
- 'import/order': ['error', {
19
- 'newlines-between': 'always',
20
- alphabetize: {
21
- order: 'asc'
22
- },
23
- }],
24
- },
25
- settings: {
26
- 'import/resolver': {
27
- typescript: true,
28
- node: true
29
- },
30
- 'prettier/prettier': {
31
- singleQuote: true,
32
- },
33
- }
34
- };