Skip to content

Commit

Permalink
Update dependencies and remove husky (also add format)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnuk committed Jul 25, 2024
1 parent 5179edd commit d8338fc
Show file tree
Hide file tree
Showing 22 changed files with 1,136 additions and 1,770 deletions.
38 changes: 14 additions & 24 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,32 @@
module.exports = {
'env': {
'es6': true,
'node': true,
env: {
es6: true,
node: true,
'jest/globals': true,
},
'extends': [
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
],
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly'
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
'parser': '@typescript-eslint/parser',
'parserOptions': {
'project': './tsconfig.eslint.json',
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.eslint.json',
},
'plugins': [
'@typescript-eslint',
],
'rules': {
'comma-dangle': ['error', 'always-multiline'],
'no-trailing-spaces': 'error',
'indent': ['error', 2],
'max-len': ['error', { 'code': 180 }],
plugins: ['@typescript-eslint'],
rules: {
'no-console': ['error'],
'no-multiple-empty-lines': ['error', { 'max': 1 }],
'no-var': ['error'],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'object-curly-spacing': ['error', 'always'],
'jest/expect-expect': [
'error',
{
'assertFunctionNames': ['expect*'],
assertFunctionNames: ['expect*'],
},
],
}
},
};
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
run: |
npm ci
npm run lint
npm run format
npm test
npm run build
env:
Expand All @@ -55,7 +56,7 @@ jobs:
# This job is used as required status check to pass before merging to the main branch
status-checks:
name: status-checks
needs: [ build-windows, build-linux ]
needs: [build-windows, build-linux]
permissions:
contents: none
if: always()
Expand All @@ -72,7 +73,7 @@ jobs:
exit 1
deploy:
if: startsWith(github.event.ref, 'refs/tags/')
needs: ["status-checks"]
needs: ['status-checks']
runs-on: ubuntu-latest
continue-on-error: true
steps:
Expand Down
4 changes: 1 addition & 3 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint
npm run format
7 changes: 0 additions & 7 deletions .npmignore

This file was deleted.

8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"tabWidth": 2,
"semi": true,
"bracketSpacing": true
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2022 Anthony Rey
Copyright (c) 2024 Anthony Rey

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This command line interface will allow you to generate new Tikui components.

## Prerequisites

* [Node.js](https://nodejs.org)
- [Node.js](https://nodejs.org)

## Install as developer

Expand Down
22 changes: 3 additions & 19 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
module.exports = {
moduleFileExtensions: [
'js',
'json',
'jsx',
'ts',
'tsx',
'node',
],
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
Expand All @@ -16,16 +9,7 @@ module.exports = {
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.ts?$',
collectCoverage: true,
coverageDirectory: 'coverage',
collectCoverageFrom: [
'src/**/*.{js,ts}',
'!src/bin/tikuicli.ts',
],
coverageReporters: [
'html',
'json-summary',
'text-summary',
'lcov',
'clover',
],
collectCoverageFrom: ['src/**/*.{js,ts}', '!src/bin/tikuicli.ts'],
coverageReporters: ['html', 'json-summary', 'text-summary', 'lcov', 'clover'],
testEnvironment: 'node',
};
Loading

0 comments on commit d8338fc

Please sign in to comment.