Skip to content

feat(deps): Support ESLint 9 #50

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

Merged
merged 7 commits into from
Dec 30, 2024
Merged
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
2 changes: 2 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
npx --no-install lint-staged
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14, 16 ]
node-version: [ 20, 22 ]
steps:
- name: checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
Expand All @@ -15,6 +15,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: yarn install
run: npm ci
- name: Test
run: yarn test
run: npm test
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ To ignore ESLint parsing errors that cannot be ignored from the config file, you
{
"rules": {
"eslint": {
"configFile": "path/to/.eslintrc"
"configFile": "path/to/.eslintrc",
"ignoreParsingErrors": true
}
}
Expand Down Expand Up @@ -92,8 +92,8 @@ textlint --rule eslint README.md
"eslint": {
// Required: path to .eslintrc file
"configFile": "path/to/.eslintrc",
// recognize lang of CodeBlock
"langs": ["js", "javascript", "node", "jsx"]
// recognize lang of CodeBlock as JavaScript
"langs": ["js", "javascript", "node", "jsx"],
// Ignore ESLint parsing errors
"ignoreParsingErrors": true
}
Expand All @@ -113,11 +113,14 @@ See [https://github.com/textlint/textlint/#fixable](https://github.com/textlint/

See [Releases page](https://github.com/textlint-rule/textlint-rule-eslint/releases).

- `textlint-rule-eslint@5`: Support ESLint 9
- `textlint-rule-eslint@4`: Support ESLint 8

## Running tests

Install devDependencies and Run `npm test`:

npm i -d && npm test
npm ci && npm test

## Contributing

Expand Down
Loading
Loading