Skip to content

Commit

Permalink
Refactor eslint config, and add linting workflow on pr (#3)
Browse files Browse the repository at this point in the history
* refactor eslint and add linting on pr

* fix eslint errors

* fixes

* change node version

* eslint fixes
  • Loading branch information
ErnestTeluk authored Oct 29, 2024
1 parent 8cc661f commit b07c019
Show file tree
Hide file tree
Showing 7 changed files with 120 additions and 152 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install Dependencies
run: npm ci --no-audit
- name: Lint
run: npm run lint
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.11.0
14 changes: 7 additions & 7 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { defineBuildConfig } from 'unbuild';

export default defineBuildConfig({
entries: ['src/index'],
clean: true,
rollup: {
inlineDependencies: true,
esbuild: {
minify: true,
},
entries: ['src/index'],
clean: true,
rollup: {
inlineDependencies: true,
esbuild: {
minify: true,
},
},
});
Loading

0 comments on commit b07c019

Please sign in to comment.