@etchteam/eslint-config 2.2.77 → 2.2.79

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- ## [2.2.77](https://github.com/etchteam/eslint/compare/v2.2.76...v2.2.77) (2025-07-03)
1
+ ## [2.2.79](https://github.com/etchteam/eslint/compare/v2.2.78...v2.2.79) (2025-07-03)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * use correct file format ([b29e39c](https://github.com/etchteam/eslint/commit/b29e39ca5c187c059778cf079870ba3cf021828b))
6
+ * correct package paths ([d41e9d6](https://github.com/etchteam/eslint/commit/d41e9d6dd4b47c974ec663c49e155a16df4483ac))
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@etchteam/eslint-config",
3
- "version": "2.2.77",
3
+ "version": "2.2.79",
4
4
  "description": "Etch's standard eslint config",
5
5
  "type": "module",
6
- "main": "eslint.config.mjs",
6
+ "main": "src/index.mjs",
7
7
  "exports": {
8
- ".": "./eslint.config.mjs"
8
+ ".": "./src/index.mjs"
9
9
  },
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
package/.editorconfig DELETED
@@ -1,9 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- charset = utf-8
5
- end_of_line = lf
6
- indent_size = 2
7
- indent_style = space
8
- insert_final_newline = true
9
- trim_trailing_whitespace = true
@@ -1,10 +0,0 @@
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"
@@ -1,37 +0,0 @@
1
- ---
2
- pull_request_rules:
3
- - name: Automatically approve and merge dependabot PRs
4
- conditions:
5
- - and:
6
- - author=dependabot[bot]
7
- - label!=wontfix
8
- actions:
9
- review:
10
- type: APPROVE
11
- message: Automatically approving dependabot
12
- merge:
13
- method: merge
14
- - name: Automatically merge when the PR has been approved and there are no comments
15
- conditions:
16
- - and:
17
- - "#approved-reviews-by>=1"
18
- - "#changes-requested-reviews-by=0"
19
- actions:
20
- merge:
21
- method: merge
22
- - name: Ask for reviews
23
- conditions:
24
- - -closed
25
- - -draft
26
- actions:
27
- request_reviews:
28
- teams:
29
- - devs
30
- random_count: 2
31
- - name: Automatically assign to author
32
- conditions:
33
- - author!=dependabot[bot]
34
- actions:
35
- assign:
36
- users:
37
- - "{{author}}"
@@ -1,9 +0,0 @@
1
- ---
2
- # Always validate the PR title AND all the commits
3
- titleAndCommits: true
4
- # Allows use of Merge commits (eg on github: "Merge branch 'main' into feature/ride-unicorns")
5
- # this is only relevant when using commitsOnly: true (or titleAndCommits: true)
6
- allowMergeCommits: true
7
- # Allow use of Revert commits (eg on github: "Revert "feat: ride unicorns"")
8
- # this is only relevant when using commitsOnly: true (or titleAndCommits: true)
9
- allowRevertCommits: true
@@ -1,34 +0,0 @@
1
- name: 👮 CI
2
- on: pull_request
3
- env:
4
- HUSKY: 0
5
- permissions:
6
- contents: read
7
- jobs:
8
- lint:
9
- strategy:
10
- matrix:
11
- version: [18, 20, 22]
12
- name: 🧹 Lint
13
- runs-on: ubuntu-latest
14
- steps:
15
- - uses: actions/checkout@v4
16
- - uses: actions/setup-node@v4
17
- with:
18
- node-version: ${{ matrix.version }}
19
- cache: npm
20
- - run: npm ci --no-audit --no-fund --prefer-offline
21
- - run: npx --no-install eslint src
22
- - name: Test ESLint config against test files (expects failures)
23
- run: |
24
- set +e # Don't exit on failure
25
- npx eslint test-files/ --format=compact
26
- exit_code=$?
27
- echo "ESLint exit code: $exit_code"
28
- if [ $exit_code -eq 0 ]; then
29
- echo "❌ Test files should have ESLint violations but none were found"
30
- exit 1
31
- else
32
- echo "✅ Test files correctly show ESLint violations"
33
- exit 0
34
- fi
@@ -1,36 +0,0 @@
1
- ---
2
- name: 🚀 Release
3
- on:
4
- push:
5
- branches:
6
- - main
7
- env:
8
- HUSKY: 0
9
- permissions:
10
- contents: read
11
- jobs:
12
- publish:
13
- name: 🚀 Publish
14
- runs-on: ubuntu-latest
15
- permissions:
16
- contents: write
17
- issues: write
18
- pull-requests: write
19
- id-token: write
20
- steps:
21
- - uses: actions/checkout@v4
22
- with:
23
- fetch-depth: 0
24
- persist-credentials: false
25
- - uses: cycjimmy/semantic-release-action@v3
26
- with:
27
- semantic_version: 19.x
28
- branch: main
29
- extends: |
30
- @semantic-release/git@10.0.1
31
- @semantic-release/changelog@6.0.2
32
- @commitlint/cli@17.3.0
33
- @commitlint/config-conventional@17.3.0
34
- env:
35
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
package/.husky/commit-msg DELETED
@@ -1 +0,0 @@
1
- npx --no -- commitlint --edit ${1}
package/.husky/pre-commit DELETED
@@ -1 +0,0 @@
1
- npx --no -- lint-staged
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- 22
@@ -1,10 +0,0 @@
1
- {
2
- "editor.formatOnSave": false,
3
- "editor.codeActionsOnSave": {
4
- "source.fixAll.eslint": "explicit"
5
- },
6
- "sonarlint.connectedMode.project": {
7
- "connectionId": "etchteam",
8
- "projectKey": "etchteam_eslint"
9
- }
10
- }
@@ -1 +0,0 @@
1
- export default { extends: ['@commitlint/config-conventional'] };
@@ -1,3 +0,0 @@
1
- export default {
2
- '*.{ts,tsx,js,jsx,yml,yaml,json}': 'eslint --fix',
3
- };
@@ -1,3 +0,0 @@
1
- export default {
2
- singleQuote: true,
3
- };
package/release.config.js DELETED
@@ -1,29 +0,0 @@
1
- export default {
2
- branches: ['main'],
3
- plugins: [
4
- [
5
- '@semantic-release/commit-analyzer',
6
- {
7
- preset: 'conventionalcommits',
8
- presetConfig: {},
9
- },
10
- ],
11
- [
12
- '@semantic-release/release-notes-generator',
13
- {
14
- preset: 'conventionalcommits',
15
- },
16
- ],
17
- '@semantic-release/changelog',
18
- [
19
- '@semantic-release/npm',
20
- {
21
- npmPublish: true,
22
- },
23
- ],
24
- '@semantic-release/github',
25
-
26
- // NOTE: this plugin must be last to ensure all updated files are committed
27
- '@semantic-release/git',
28
- ],
29
- };
@@ -1,31 +0,0 @@
1
- // Test file to validate ESLint configuration
2
- import React from 'react';
3
- import { useState } from 'react';
4
-
5
- // Test unused imports (should be caught)
6
-
7
- // Test unused variables
8
- const unusedVar = 'test';
9
-
10
- // Test React component with accessibility and other rules
11
- const TestComponent = () => {
12
- const [count, setCount] = useState(0);
13
-
14
- return (
15
- <div>
16
- {/* Test anchor without proper text */}
17
- <a href="/test">click here</a>
18
-
19
- {/* Test useless fragment */}
20
- <span>text</span>
21
-
22
- {/* Test HTML styling elements */}
23
- <b>Bold text</b>
24
- <i>Italic text</i>
25
-
26
- <button onClick={() => setCount(count + 1)}>Count: {count}</button>
27
- </div>
28
- );
29
- };
30
-
31
- export default TestComponent;
@@ -1,8 +0,0 @@
1
- {
2
- "name": "test",
3
- "version": "1.0.0",
4
- "description": "Test JSON file",
5
- "scripts": {
6
- "test": "echo test"
7
- }
8
- }
@@ -1,7 +0,0 @@
1
- name: test-config
2
- version: 1.0.0
3
- # Fixed indentation
4
- description: Test YAML file
5
- scripts:
6
- test: echo test
7
- build: echo build
File without changes