Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Linting #127

Merged
merged 9 commits into from
Nov 27, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@guardian/eslint-config-typescript"
}
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: lint 🔎
on: [push]

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'

# Cache npm dependencies using https://github.com/bahmutov/npm-install
- uses: bahmutov/npm-install@v1

- name: Install
run: npm install

- name: Lint
run: npm run lint
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@babel/preset-env": "^7.12.1",
"@babel/preset-react": "^7.12.5",
"@emotion/babel-preset-css-prop": "^10.2.0",
"@guardian/eslint-config-typescript": "^0.4.1",
"@storybook/react": "^6.1.0",
"@types/jest": "^26.0.15",
"@types/node": "^14.14.7",
Expand All @@ -35,6 +36,7 @@
"build:tsc": "tsc --outDir tmp",
"build:babel": "babel tmp --config-file ./config/babel.config.json --out-dir dist --copy-files",
"build:cleanup": "rm -rf tmp",
"lint": "eslint . --ext .ts,.tsx",
"test": "jest",
"test:watch": "jest --watch",
"storybook": "start-storybook -p 8181 --ci",
Expand Down