Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Commit 230fed7

Browse files
committed
Revert "Remove ESLint (#410)"
This reverts commit 1827a08.
1 parent aa8103a commit 230fed7

File tree

8 files changed

+5816
-393
lines changed

8 files changed

+5816
-393
lines changed

.eslintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
extends: [
3+
'standard-with-typescript'
4+
],
5+
parserOptions: {
6+
project: './tsconfig.json'
7+
}
8+
}

.github/workflows/lint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: lint
2+
on: [pull_request]
3+
jobs:
4+
lint:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- uses: actions/setup-node@v3
9+
with:
10+
node-version-file: '.nvmrc'
11+
- run: npm ci
12+
- run: npm run lint

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
12
[![build](https://github.com/npm-update-package/example-pat/actions/workflows/build.yml/badge.svg)](https://github.com/npm-update-package/example-pat/actions/workflows/build.yml)
3+
[![lint](https://github.com/npm-update-package/example-pat/actions/workflows/lint.yml/badge.svg)](https://github.com/npm-update-package/example-pat/actions/workflows/lint.yml)
24
[![npm-update-package](https://github.com/npm-update-package/example-pat/actions/workflows/npm-update-package.yml/badge.svg)](https://github.com/npm-update-package/example-pat/actions/workflows/npm-update-package.yml)
35

46
# example-pat

lint-staged.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
'*.js': 'eslint',
3+
'*.ts': 'eslint'
4+
}

0 commit comments

Comments
 (0)