Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 Alpha #464

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

14 changes: 11 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: Node CI

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [18.x, 20.x]

steps:
- name: Checkout source
Expand All @@ -26,5 +32,7 @@ jobs:
run: npm run build
- name: Test package
run: npm run test
env:
E2E: true
- name: Lint package
run: npm run lint
8 changes: 3 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ on:

jobs:
publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: github.event.pull_request.merged == true
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: -1
- name: Use Node.js "14.x"
- name: Use Node.js "18.x"
uses: actions/setup-node@v4
with:
cache: npm
node-version: "14.x"
node-version: "18.x"
- name: Install dependencies
run: npm install
env:
Expand Down Expand Up @@ -61,7 +61,6 @@ jobs:
We publish new version of this package.
Cheers!
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token-user-login: "github-actions[bot]"
allow-repeats: false
- name: Post comment
uses: mshick/add-pr-comment@v2
Expand All @@ -72,5 +71,4 @@ jobs:
We include your contributions in next release.
Cheers!
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token-user-login: "github-actions[bot]"
allow-repeats: false
2 changes: 1 addition & 1 deletion .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
eslint:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Run reviewdog
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validateRenovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
- uses: actions/setup-node@v4
with:
cache: npm
node-version: "14.x"
node-version: "18.x"
- name: Validate config
run: npx --package renovate -c 'renovate-config-validator'
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,5 @@ dist
# End of https://www.toptal.com/developers/gitignore/api/node

*~
lib/
/lib/
/cjs/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $ npm install textlint-plugin-latex2e
And add to `.textlintrc`

```
plugins: ["latex2e"]
plugins: ["@textlint/textlint-plugin-latex2e"]
```

## Limitations
Expand Down
2 changes: 1 addition & 1 deletion bin/tex2tast
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
* You should have received a copy of the GNU General Public License
* along with textlint-plugin-latex2e. If not, see <http://www.gnu.org/licenses/>.
*/
require("../lib/bin/tex2tast.js")
import "../lib/src/bin/tex2tast.js";
20 changes: 20 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import tseslint from "typescript-eslint";

export default tseslint.config(
{
ignores: ["node_modules/**", "cjs/**", "lib/**"],
},
...tseslint.configs.recommended,
{
files: ["src/**/*.ts", "test/**/*.ts"],
languageOptions: {
parser: tseslint.parser,
parserOptions: {
project: "./tsconfig.eslint.json",
},
},
plugins: {
'@typescript-eslint': tseslint.plugin,
}
},
);
13 changes: 0 additions & 13 deletions jest.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion lint-staged.config.js → lint-staged.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
export default {
"*.{ts,js,json}": ["prettier --write", "eslint --fix"],
};
Loading