Skip to content

Commit

Permalink
feat(deps): Support ESLint 9 (#50)
Browse files Browse the repository at this point in the history
* feat(deps): Support ESLint 9

* update README

* update README

* update README

* chore: add prettier

* Update src/textlint-rule-eslint.ts+2

* Update src/textlint-rule-eslint.ts
  • Loading branch information
azu authored Dec 30, 2024
1 parent 201d1a0 commit 4d846d1
Show file tree
Hide file tree
Showing 8 changed files with 1,933 additions and 1,582 deletions.
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

0 comments on commit 4d846d1

Please sign in to comment.