Skip to content

Commit

Permalink
Merge pull request #21 from nlxai/standard-linting-and-prettifying
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelglass authored Mar 27, 2024
2 parents a5c3f8f + 2672a0b commit 28399d2
Show file tree
Hide file tree
Showing 78 changed files with 802 additions and 129 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,25 @@ jobs:
run: npm install
- name: Test the app
run: npm run test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Installing node_modules
run: npm install
- name: Run lint
run: npm run lint:check
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Installing node_modules
run: npm install
- name: Run tsc
run: npm run tsc
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
],
"scripts": {
"build": "lerna run build",
"lint:check": "lerna run lint:check",
"lint": "lerna run lint",
"postinstall": "npm run build",
"publish": "rm -f package-lock.json && rm -f packages/*/package-lock.json && lerna publish --no-private",
"publish-docs": "lerna run publish-docs",
"test": "lerna run test",
"tsc": "lerna run tsc",
"watch": "lerna watch -- lerna run build --since"
},
"author": "Peter Szerzo <[email protected]>",
Expand Down
5 changes: 5 additions & 0 deletions packages/chat-core/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('eslint').Linter.Config } */
module.exports = {
root: true,
extends: ["nlx"],
};
6 changes: 5 additions & 1 deletion packages/chat-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"types": "lib/index.d.ts",
"scripts": {
"build": "rm -rf lib && rollup -c",
"prepublish": "npm run build"
"lint:check": "npx eslint src/ --ext .ts,.tsx,.js,.jsx",
"lint": "npx eslint src/ --ext .ts,.tsx,.js,.jsx --fix",
"prepublish": "npm run build",
"tsc": "tsc"
},
"author": "Peter Szerzo <[email protected]>",
"license": "MIT",
Expand All @@ -25,6 +28,7 @@
"@types/node": "^11.15.11",
"@types/ramda": "0.29.1",
"@types/uuid": "^9.0.7",
"eslint-config-nlx": "*",
"prettier": "^3.1.0",
"rollup": "^4.9.3",
"rollup-plugin-node-polyfills": "^0.2.1",
Expand Down
Loading

0 comments on commit 28399d2

Please sign in to comment.