Skip to content

Commit

Permalink
add lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vdeturckheim committed Nov 25, 2021
1 parent 14270f5 commit 6a05048
Show file tree
Hide file tree
Showing 6 changed files with 1,358 additions and 28 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

// TODO: also check .d.ts files
module.exports = {
ignorePatterns: ['applications/*'],
env: {
commonjs: true,
es2021: true,
node: true,
browser: true
},
parserOptions: {
ecmaVersion: 12,
sourceType: 'module'
},
rules: {
'max-len': [2, 120]
}
};
13 changes: 11 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@ on:
branches: [ main ]

jobs:
build:

lint:
runs-on: ubuntu-latest
- uses: actions/checkout@v2
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'npm'
- run: npm ci
- run: npm run lint

test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
Expand Down
Loading

0 comments on commit 6a05048

Please sign in to comment.