Skip to content

Commit

Permalink
Merge pull request #17 from jens-ox/master
Browse files Browse the repository at this point in the history
TypeScript rewrite
  • Loading branch information
rii-mango authored Jan 22, 2024
2 parents 5ffff20 + 4249cf6 commit f158b1e
Show file tree
Hide file tree
Showing 49 changed files with 6,969 additions and 4,040 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
30 changes: 30 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
root: true,
ignorePatterns: ['dist/**/*'],
extends: [
'standard',
'plugin:@typescript-eslint/recommended',
'plugin:mocha/recommended',
'plugin:prettier/recommended'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'mocha', 'prettier'],
rules: {
camelcase: 'off',
'import/order': 'error',
'no-use-before-define': 'off',
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
'@typescript-eslint/no-use-before-define': 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'prettier/prettier': [
'error',
{
tabWidth: 2,
printWidth: 120,
singleQuote: true,
trailingComma: 'none',
semi: false
}
]
}
}
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: testing
on: push

jobs:
test:
strategy:
matrix:
node-version: [20.x, 18.x, 16.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm install
- run: npm run build
- name: Lint
run: npm run lint
- run: npm run test
Loading

0 comments on commit f158b1e

Please sign in to comment.