Skip to content

Commit 9758b34

Browse files
committed
chore: add remark-lint support
1 parent d96e20e commit 9758b34

File tree

6 files changed

+10
-3
lines changed

6 files changed

+10
-3
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
coverage
22
node_modules
33
lib
4+
packages/*/CHANGELOG.md
45
packages/*/test
56
!/packages/*/test/*.ts

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
4444

4545
- name: Code Checks
46-
if: matrix.os == 'macOS-latest'
46+
if: matrix.os == 'macOS-latest' && github.event_name == 'push'
4747
run: |
4848
yarn global add @codechecks/client @codechecks/build-size-watcher @codechecks/type-coverage-watcher typescript
4949
codechecks

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.*cache
2+
.type-coverage
23
*.log
34
coverage
45
lib

.remarkrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"plugins": [
3+
"@1stg/remark-config"
4+
]
5+
}

lerna.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"ignoreChanges": [
2525
"**/test/**",
2626
"**/tsconfig.json",
27+
"**/.**",
2728
"**/*.md",
2829
"**/*.tsbuildinfo"
2930
]

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
"build:r": "r -e named -p",
1515
"build:ts": "tsc -b",
1616
"clean": "rimraf packages/*/lib",
17-
"lint": "eslint . --cache --ext .js,.ts --max-warnings 10 -f friendly",
18-
"prepublishOnly": "yarn test && yarn build",
17+
"lint": "eslint . --cache --ext md,js,ts --max-warnings 10 -f friendly",
1918
"pretest": "yarn clean",
2019
"test": "jest",
2120
"type-coverage": "type-coverage --cache --detail --ignore-catch --ignore-files '**/*.d.ts' --strict"

0 commit comments

Comments
 (0)