Skip to content

Commit 713d87a

Browse files
committed
Updated
1 parent 337f469 commit 713d87a

File tree

8 files changed

+1757
-120
lines changed

8 files changed

+1757
-120
lines changed

.github/workflows/docs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
node-version: 'latest'
2020
registry-url: 'https://npm.pkg.github.com'
21-
scope: '@djthorpe'
21+
scope: '@mutablelogic'
2222

2323
- name: Generate Documentatin
2424
run: |

.github/workflows/lint.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish Docs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
docs:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Setup Node
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 'latest'
18+
registry-url: 'https://npm.pkg.github.com'
19+
scope: '@mutablelogic'
20+
- name: Lint
21+
run: |
22+
npm ci
23+
npm run lint

.github/workflows/publish.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ jobs:
99
- uses: actions/checkout@v2
1010
- uses: actions/setup-node@v2
1111
with:
12-
node-version: '12.x'
1312
registry-url: 'https://npm.pkg.github.com'
14-
scope: '@djthorpe'
13+
scope: '@mutablelogic'
1514
- run: npm install
16-
- run: npm run all
15+
- run: npm run build
1716
- run: npm publish
1817
env:
1918
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@djthorpe:registry=https://npm.pkg.github.com
1+
@mutablelogic:registry=https://npm.pkg.github.com

config/eslint.config.mjs

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { FlatCompat } from '@eslint/eslintrc';
2+
import globals from 'globals';
3+
import path from 'path';
4+
import { fileURLToPath } from 'url';
5+
import js from '@eslint/js';
6+
7+
// mimic CommonJS variables -- not needed if using CommonJS
8+
const filename = fileURLToPath(import.meta.url);
9+
const dirname = path.dirname(filename);
10+
const compat = new FlatCompat({
11+
baseDirectory: dirname,
12+
});
13+
14+
export default [
15+
js.configs.recommended,
16+
{
17+
languageOptions: {
18+
globals: globals.browser,
19+
},
20+
},
21+
...compat.extends('airbnb-base'),
22+
];

0 commit comments

Comments
 (0)