Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade eslint codely config #5

Merged
merged 7 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
11 changes: 0 additions & 11 deletions .eslintrc.js

This file was deleted.

12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ jobs:
name: 🚀 Lint and test
timeout-minutes: 5
steps:

- name: 👍 Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: ❇️ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: 📦 Cache node modules
uses: actions/cache@v2
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand All @@ -30,4 +36,4 @@ jobs:
run: npm run lint

- name: ✅ Run tests
run: npm run test
run: npm run test
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ The purpose of this repository is to leave it with the bare minimum dependencies
## Features

- [TypeScript](https://www.typescriptlang.org/) (v5)
- [Prettier](https://prettier.io/)
- [ESLint](https://eslint.org/) with:
- [Codely's config](https://github.com/lydell/eslint-plugin-simple-import-sort/) (includes ESLint's recommended rules, Prettier, Import plugin and more)
- [Jest plugin](https://www.npmjs.com/package/eslint-plugin-jest)
- [ESLint](https://eslint.org/) with [Codely's config](https://github.com/CodelyTV/eslint-config-codely) (includes ESLint's recommended rules, Prettier, Import plugin and more)
- [Jest](https://jestjs.io)
- [GitHub Action workflows](https://github.com/features/actions) set up to run tests and linting on push
- [SWC](https://swc.rs/): Execute your tests in less than 200ms
Expand Down
3 changes: 3 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import eslintConfigCodely from "eslint-config-codely";

export default [...eslintConfigCodely.full];
Loading