Skip to content

Commit

Permalink
Set up linting, bump
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJaredWilcurt committed Dec 15, 2023
1 parent 5d8cf45 commit 5c1115c
Show file tree
Hide file tree
Showing 4 changed files with 3,154 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* eslint-disable import/no-extraneous-dependencies */

const baseRestrictedSyntax = require('eslint-config-tjw-base/no-restricted-syntax.json');

module.exports = {
root: true,
globals: {
Promise: true
},
extends: [
'eslint:recommended',
'tjw-base',
'tjw-import'
],
rules: {
'import/no-anonymous-default-export': 'off',
'import/no-namespace': 'off',
'import/no-unresolved': 'off',
'import/no-unused-modules': 'off',
'no-restricted-syntax': [
'error',
...baseRestrictedSyntax
]
}
};
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Node.js CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v4
- run: node -v
- run: npm -v
- run: npm ci
- run: npm run lint
Loading

0 comments on commit 5c1115c

Please sign in to comment.