Skip to content

Commit

Permalink
chore: apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Jul 9, 2024
1 parent 30b2f5c commit 545d35b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 24 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ jobs:
#-----------------------------------------------------------------------------

#-----------------------------------------------------------------------------
# @eslint/espree
# espree
#-----------------------------------------------------------------------------

- name: Publish espree package to npm
run: npm publish -w packages/espree
run: npm publish -w packages/espree --provenance
if: ${{ steps.release.outputs['packages/espree--release_created'] }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Tweet Release Announcement
run: npx @humanwhocodes/tweet "eslint/compat v${{ steps.release.outputs['packages/espree--major'] }}.${{ steps.release.outputs['packages/espree--minor'] }}.${{ steps.release.outputs['packages/espree--patch'] }} has been released!\n\n${{ github.event.repository.html_url }}/releases/tag/${{ steps.release.outputs['packages/espree--tag_name'] }}"
run: npx @humanwhocodes/tweet "espree v${{ steps.release.outputs['packages/espree--major'] }}.${{ steps.release.outputs['packages/espree--minor'] }}.${{ steps.release.outputs['packages/espree--patch'] }} has been released!\n\n${{ github.event.repository.html_url }}/releases/tag/${{ steps.release.outputs['packages/espree--tag_name'] }}"
if: ${{ steps.release.outputs['packages/espree--release_created'] }}
env:
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
Expand All @@ -67,7 +67,7 @@ jobs:
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}

- name: Toot Release Announcement
run: npx @humanwhocodes/toot "eslint/compat v${{ steps.release.outputs['packages/espree--major'] }}.${{ steps.release.outputs['packages/espree--minor'] }}.${{ steps.release.outputs['packages/espree--patch'] }} has been released!\n\n${{ github.event.repository.html_url }}/releases/tag/${{ steps.release.outputs['packages/espree--tag_name'] }}"
run: npx @humanwhocodes/toot "espree v${{ steps.release.outputs['packages/espree--major'] }}.${{ steps.release.outputs['packages/espree--minor'] }}.${{ steps.release.outputs['packages/espree--patch'] }} has been released!\n\n${{ github.event.repository.html_url }}/releases/tag/${{ steps.release.outputs['packages/espree--tag_name'] }}"
if: ${{ steps.release.outputs['packages/espree--release_created'] }}
env:
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
Expand Down
3 changes: 0 additions & 3 deletions .lintstagedrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ESLint Rewrite
# ESLint JS

Monorepo for the JS language tools.

Expand Down
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default [
files: ["**/tools/**"],
rules: {
"no-console": "off",
"no-tabs": "off",
"n/no-process-exit": "off"
}
}
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@eslint/js",
"name": "eslint-js",
"version": "1.0.0",
"private": true,
"type": "module",
Expand All @@ -17,7 +17,7 @@
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.js": [
"*.{js,cjs}": [
"eslint --fix"
]
},
Expand All @@ -28,7 +28,6 @@
"globals": "^15.1.0",
"got": "^14.4.1",
"lint-staged": "^15.2.0",
"prettier": "^3.1.1",
"yorkie": "^2.0.0"
}
}
5 changes: 1 addition & 4 deletions packages/espree/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,12 @@
"@rollup/plugin-node-resolve": "^11.2.0",
"c8": "^7.11.0",
"chai": "^4.3.6",
"eslint": "^9.4.0",
"eslint-config-eslint": "^11.0.0",
"eslint-release": "^3.2.0",
"esprima-fb": "^8001.2001.0-dev-harmony-fb",
"mocha": "^9.2.2",
"npm-run-all": "^4.1.5",
"rollup": "^2.41.2",
"shelljs": "^0.8.5",
"yorkie": "^2.0.0"
"shelljs": "^0.8.5"
},
"keywords": [
"ast",
Expand Down
12 changes: 4 additions & 8 deletions tools/update-readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ import got from "got";
// Data
//-----------------------------------------------------------------------------

const SPONSORS_URL =
"https://raw.githubusercontent.com/eslint/eslint.org/main/src/_data/sponsors.json";
const SPONSORS_URL = "https://raw.githubusercontent.com/eslint/eslint.org/main/src/_data/sponsors.json";

const TECH_SPONSORS_URL =
"https://raw.githubusercontent.com/eslint/eslint.org/main/src/_data/techsponsors.json";
const TECH_SPONSORS_URL = "https://raw.githubusercontent.com/eslint/eslint.org/main/src/_data/techsponsors.json";

const TECH_SPONSORS_IMAGE_PATH =
"https://raw.githubusercontent.com/eslint/eslint.org/main/src";
const TECH_SPONSORS_IMAGE_PATH = "https://raw.githubusercontent.com/eslint/eslint.org/main/src";

const README_FILE_PATHS = [
"./README.md",
Expand Down Expand Up @@ -104,8 +101,7 @@ function formatTechSponsors(sponsors) {
sponsor =>
`<a href="${sponsor.url || "#"}"><img src="${TECH_SPONSORS_IMAGE_PATH + sponsor.image}" alt="${sponsor.name}" height="${heights.bronze}"></a>`
)
.join(" ")}
</p>
.join(" ")}</p>
<!--techsponsorsend-->`;
}

Expand Down

0 comments on commit 545d35b

Please sign in to comment.