Skip to content

Commit

Permalink
Merge branch 'main' into refactor/tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkeyl authored Mar 15, 2024
2 parents 757ef00 + dc61efe commit ca9c25c
Show file tree
Hide file tree
Showing 12 changed files with 655 additions and 49 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.nyc_report
node_modules
11 changes: 6 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import globals from 'globals';

import { defineFlatConfig } from 'eslint-define-config';
import { FlatCompat } from '@eslint/eslintrc';
import { resolve } from 'node:path';

import typescriptParser from '@typescript-eslint/parser';
import unicorn from 'eslint-plugin-unicorn';

import { resolve } from 'node:path';
import { FlatCompat } from '@eslint/eslintrc';

const compat = new FlatCompat({
baseDirectory: resolve(),
resolvePluginsRelativeTo: resolve(),
});

export default [
export default defineFlatConfig([
...compat.extends(
'airbnb-typescript/base',
'plugin:import/recommended',
Expand Down Expand Up @@ -47,4 +48,4 @@ export default [
'unicorn/string-content': 'error',
},
},
];
]);
7 changes: 7 additions & 0 deletions nyc.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
'check-coverage': true,
'skip-full': true,
all: true,
extends: '@istanbuljs/nyc-config-typescript',
include: 'src/**/*.ts',
};
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"init": "pnpm i && husky && git submodule update",
"build": "rollup -c",
"test": "mocha",
"test:coverage": "nyc pnpm test && pnpm clear",
"release": "semantic-release",
"lint:formatting": "prettier . --check",
"lint:editorconfig": "editorconfig-checker",
Expand Down Expand Up @@ -84,6 +85,7 @@
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.2",
"@commitlint/types": "^18.6.1",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@rollup/plugin-typescript": "^11.1.6",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
Expand All @@ -105,6 +107,7 @@
"lint-staged": "^15.2.2",
"mocha": "^10.3.0",
"mocha-spec-reporter-with-file-names": "^0.0.3",
"nyc": "^15.1.0",
"prettier": "^3.2.5",
"remark": "15.0.1",
"remark-cli": "^12.0.0",
Expand Down
Loading

0 comments on commit ca9c25c

Please sign in to comment.