Skip to content

Commit 535b659

Browse files
committed
fix: turn CRLF into LF for the errors in macOS
1 parent f6aad60 commit 535b659

File tree

4 files changed

+269
-269
lines changed

4 files changed

+269
-269
lines changed

.github/workflows/textlint_lint.yml

+47-47
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
name: Textlint Lint
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
paths:
8-
- 'src/**/*.md'
9-
- 'textlint/**/*.js'
10-
- '.github/workflows/textlint_lint.yml'
11-
12-
pull_request:
13-
types:
14-
- opened
15-
- synchronize
16-
- reopened
17-
paths:
18-
- 'src/**/*.md'
19-
- 'textlint/**/*.js'
20-
- '.github/workflows/textlint_lint.yml'
21-
22-
jobs:
23-
Lint:
24-
runs-on: ubuntu-latest
25-
26-
steps:
27-
- name: Set up checkout
28-
uses: actions/checkout@v4
29-
30-
- name: Set up node
31-
uses: actions/setup-node@v4
32-
with:
33-
node-version: 20.x
34-
cache: yarn
35-
36-
- name: Set up cache
37-
uses: actions/cache@v4
38-
with:
39-
path: ~/.yarn-cache
40-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
41-
42-
- name: Install dependencies
43-
run: yarn install --frozen-lockfile
44-
# The `--frozen-lockfile` flag in Yarn ensures that dependencies are installed without modifying the `yarn.lock` file. It is useful for maintaining consistency in CI/CD environments by preventing unexpected changes to the lock file and ensuring that the same versions of dependencies are installed.
45-
46-
- name: Lint
47-
run: yarn textlint-lint
1+
name: Textlint Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'src/**/*.md'
9+
- 'textlint/**/*.js'
10+
- '.github/workflows/textlint_lint.yml'
11+
12+
pull_request:
13+
types:
14+
- opened
15+
- synchronize
16+
- reopened
17+
paths:
18+
- 'src/**/*.md'
19+
- 'textlint/**/*.js'
20+
- '.github/workflows/textlint_lint.yml'
21+
22+
jobs:
23+
Lint:
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Set up checkout
28+
uses: actions/checkout@v4
29+
30+
- name: Set up node
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 20.x
34+
cache: yarn
35+
36+
- name: Set up cache
37+
uses: actions/cache@v4
38+
with:
39+
path: ~/.yarn-cache
40+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
41+
42+
- name: Install dependencies
43+
run: yarn install --frozen-lockfile
44+
# The `--frozen-lockfile` flag in Yarn ensures that dependencies are installed without modifying the `yarn.lock` file. It is useful for maintaining consistency in CI/CD environments by preventing unexpected changes to the lock file and ensuring that the same versions of dependencies are installed.
45+
46+
- name: Lint
47+
run: yarn textlint-lint

.github/workflows/textlint_test.yml

+45-45
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
name: Textlint Test
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
paths:
8-
- 'textlint/**/*.js'
9-
- '.github/workflows/textlint_test.yml'
10-
11-
pull_request:
12-
types:
13-
- opened
14-
- synchronize
15-
- reopened
16-
paths:
17-
- 'textlint/**/*.js'
18-
- '.github/workflows/textlint_test.yml'
19-
20-
jobs:
21-
Test:
22-
runs-on: ubuntu-latest
23-
24-
steps:
25-
- name: Set up checkout
26-
uses: actions/checkout@v4
27-
28-
- name: Set up node
29-
uses: actions/setup-node@v4
30-
with:
31-
node-version: 20.x
32-
cache: yarn
33-
34-
- name: Set up cache
35-
uses: actions/cache@v4
36-
with:
37-
path: ~/.yarn-cache
38-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
39-
40-
- name: Install dependencies
41-
run: yarn install --frozen-lockfile
42-
# The `--frozen-lockfile` flag in Yarn ensures that dependencies are installed without modifying the `yarn.lock` file. It is useful for maintaining consistency in CI/CD environments by preventing unexpected changes to the lock file and ensuring that the same versions of dependencies are installed.
43-
44-
- name: Test
45-
run: yarn textlint-test
1+
name: Textlint Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'textlint/**/*.js'
9+
- '.github/workflows/textlint_test.yml'
10+
11+
pull_request:
12+
types:
13+
- opened
14+
- synchronize
15+
- reopened
16+
paths:
17+
- 'textlint/**/*.js'
18+
- '.github/workflows/textlint_test.yml'
19+
20+
jobs:
21+
Test:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- name: Set up checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Set up node
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: 20.x
32+
cache: yarn
33+
34+
- name: Set up cache
35+
uses: actions/cache@v4
36+
with:
37+
path: ~/.yarn-cache
38+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
39+
40+
- name: Install dependencies
41+
run: yarn install --frozen-lockfile
42+
# The `--frozen-lockfile` flag in Yarn ensures that dependencies are installed without modifying the `yarn.lock` file. It is useful for maintaining consistency in CI/CD environments by preventing unexpected changes to the lock file and ensuring that the same versions of dependencies are installed.
43+
44+
- name: Test
45+
run: yarn textlint-test

.husky/common.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#!/bin/sh
2-
command_exists () {
3-
command -v "$1" >/dev/null 2>&1
4-
}
5-
6-
# Windows 10, Git Bash and Yarn workaround
7-
if command_exists winpty && test -t 1; then
8-
exec < /dev/tty
9-
fi
1+
#!/bin/sh
2+
command_exists () {
3+
command -v "$1" >/dev/null 2>&1
4+
}
5+
6+
# Windows 10, Git Bash and Yarn workaround
7+
if command_exists winpty && test -t 1; then
8+
exec < /dev/tty
9+
fi

0 commit comments

Comments
 (0)