Skip to content

Commit bf31800

Browse files
authored
Add CI step for linting on PRs against master and on master (#635)
1 parent 4359f2b commit bf31800

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/lint.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
# Explicitly declare permissions (security best practice)
10+
permissions:
11+
contents: read
12+
pull-requests: read
13+
14+
# Prevent multiple workflow runs from racing
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
lint:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: '18'
29+
cache: 'npm'
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
continue-on-error: false
34+
35+
- name: Run ESLint
36+
run: npm run lint
37+
continue-on-error: false

src/components/ui/Text/Text.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { clsx } from 'clsx';
99

1010
const COMPONENT_NAME = 'Text';
1111

12-
const TAGS = ['div', 'span', 'p', 'label']
12+
const TAGS = ['div', 'span', 'p', 'label'];
1313

1414
export type TextProps = {
1515
children: React.ReactNode;

0 commit comments

Comments
 (0)