Skip to content

Commit

Permalink
feat: eslint config (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreDemailly authored Aug 12, 2024
1 parent c6b5274 commit 8ace8ae
Show file tree
Hide file tree
Showing 26 changed files with 4,651 additions and 11 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Eslint Config CI

on:
push:
branches: [main]
paths:
- src/eslint/**
pull_request:
paths:
- src/eslint/**

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
fail-fast: false
steps:
- name: Harden Runner
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit

- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build -w src/eslint
- name: Run tests
run: npm run test -w src/eslint
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ Click on one of the links to access the documentation of the package:

| name | package and link |
| --- | --- |
| config.typescript | [@openally/config.typescript](./workspaces/typescript) |
| config.typescript | [@openally/config.typescript](./src/typescript) |
| config.eslint | [@openally/config.eslint](./src/eslint) |

These packages are available in the Node Package Repository and can be easily installed with [npm](https://docs.npmjs.com/getting-started/what-is-npm) or [yarn](https://yarnpkg.com).
```bash
Expand Down
5 changes: 5 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { typescriptConfig } from "@openally/config.eslint";

export default typescriptConfig({
ignores: ["**/fixtures"]
});
Loading

0 comments on commit 8ace8ae

Please sign in to comment.