Skip to content

Commit

Permalink
Merge pull request #6 from SimonGolms/dev
Browse files Browse the repository at this point in the history
next release
  • Loading branch information
SimonGolms committed Nov 18, 2023
2 parents 7f8746e + 4b6d7dc commit 5376fcf
Show file tree
Hide file tree
Showing 16 changed files with 6,080 additions and 13,420 deletions.
117 changes: 3 additions & 114 deletions .eslintrc.js
@@ -1,129 +1,18 @@
/** @type {import('eslint').ESLint.ConfigData} */
module.exports = {
env: {
es6: true,
'jest/globals': true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:@typescript-eslint/strict',
'plugin:import/recommended',
'plugin:import/typescript',
'@boehringer-ingelheim/eslint-config/base/strict',
'plugin:jest/all',
'plugin:sonarjs/recommended',
'plugin:typescript-sort-keys/recommended',
// HINT: prettier must be the last extension to work
'prettier',
'plugin:prettier/recommended',
],
ignorePatterns: ['coverage', 'lib', 'node_modules'],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'no-undef': 'off',
'no-unused-vars': 'off',
},
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
project: ['./tsconfig.eslint.json'],
tsconfigRootDir: __dirname,
},
plugins: [
'@typescript-eslint',
'jest',
'sonarjs',
'sort-keys-fix',
'typescript-sort-keys',
// HINT: prettier must be the last plugin to work
'prettier',
],
rules: {
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],
'@typescript-eslint/no-misused-promises': [
'error',
{
checksVoidReturn: false,
},
],
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'@typescript-eslint/sort-type-union-intersection-members': 'error',
camelcase: 'warn',
curly: 'error',
'import/no-cycle': 'error',
'import/no-unused-modules': [
'error',
{
ignoreExports: [
'src/**/**/*.test.ts',
'*.{js,ts}', // mostly configuration files
],
missingExports: true,
src: ['.'],
unusedExports: true,
},
],
'import/order': [
'error',
{
alphabetize: {
caseInsensitive: true,
order: 'asc',
},
},
],
'import/prefer-default-export': 'off',
indent: [
'error',
2,
{
SwitchCase: 1,
},
],
'jest/consistent-test-it': ['error', { fn: 'test' }],
'no-multi-spaces': 'error',
'no-multiple-empty-lines': 'error',
'no-var': 'error',
'prefer-const': 'error',
'prettier/prettier': 'error',
semi: 'error',
'sort-imports': [
'error',
{
ignoreCase: true,
ignoreDeclarationSort: true,
ignoreMemberSort: false,
},
],
// Required to fix sort-keys automatically, since this is not done by default.
'sort-keys-fix/sort-keys-fix': [
'error',
'asc',
{
caseSensitive: false,
natural: true,
},
],
'space-in-parens': 'error',
},
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
},
},
},
};
19 changes: 10 additions & 9 deletions .github/workflows/release.yaml
Expand Up @@ -10,22 +10,23 @@ jobs:
name: Release
runs-on: ubuntu-22.04
env:
HUSKY: 0 # Disable husky and git-hooks
HUSKY: 0 # Disable husky (git hooks) in CI, see: https://typicode.github.io/husky/#/?id=disable-husky-in-cidocker
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
- uses: actions/checkout@v3
with:
node-version: '18'
cache: 'npm'
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org/
cache: npm
- name: Install Dependencies
run: npm ci
run: npm clean-install
- name: Run Tests
run: npm test
- name: Build Package
run: npm run build
- name: Release Package
- name: Release package to npm and GitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
v18
v20
File renamed without changes.

0 comments on commit 5376fcf

Please sign in to comment.