@etchteam/eslint-config 2.2.77 → 2.2.78
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 +2 -2
- package/package.json +3 -3
- package/.editorconfig +0 -9
- package/.github/dependabot.yml +0 -10
- package/.github/mergify.yml +0 -37
- package/.github/semantic.yml +0 -9
- package/.github/workflows/ci.yml +0 -34
- package/.github/workflows/publish.yml +0 -36
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -1
- package/.nvmrc +0 -1
- package/.vscode/settings.json +0 -10
- package/commitlint.config.js +0 -1
- package/lint-staged.config.js +0 -3
- package/prettier.config.js +0 -3
- package/release.config.js +0 -29
- package/test-files/test.js +0 -31
- package/test-files/test.json +0 -8
- package/test-files/test.yml +0 -7
- /package/src/{index.js → index.mjs} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [2.2.
|
|
1
|
+
## [2.2.78](https://github.com/etchteam/eslint/compare/v2.2.77...v2.2.78) (2025-07-03)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* reference correct entrypoint ([b3ccfe1](https://github.com/etchteam/eslint/commit/b3ccfe1930402fdeef19cea063f5d47d17fe7d20))
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etchteam/eslint-config",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.78",
|
|
4
4
|
"description": "Etch's standard eslint config",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "
|
|
6
|
+
"main": "index.mjs",
|
|
7
7
|
"exports": {
|
|
8
|
-
".": "./
|
|
8
|
+
".": "./index.mjs"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
package/.editorconfig
DELETED
package/.github/dependabot.yml
DELETED
package/.github/mergify.yml
DELETED
|
@@ -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}}"
|
package/.github/semantic.yml
DELETED
|
@@ -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
|
package/.github/workflows/ci.yml
DELETED
|
@@ -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
|
package/.vscode/settings.json
DELETED
package/commitlint.config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default { extends: ['@commitlint/config-conventional'] };
|
package/lint-staged.config.js
DELETED
package/prettier.config.js
DELETED
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
|
-
};
|
package/test-files/test.js
DELETED
|
@@ -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;
|
package/test-files/test.json
DELETED
package/test-files/test.yml
DELETED
|
File without changes
|