Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ end_of_line = lf
indent_style = space
indent_size = 2
tab_width = 2
max_line_length = 140
max_line_length = 100
trim_trailing_whitespace = true
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

permissions:
contents: read
packages: write
id-token: write

jobs:
ci:
Expand All @@ -17,6 +17,6 @@ jobs:

publish:
needs: ci
uses: makerxstudio/shared-config/.github/workflows/node-publish-public.yml@main
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
uses: makerxstudio/shared-config/.github/workflows/node-trusted-publish.yml@main
with:
access: public
24 changes: 23 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# Dependency directories
Expand All @@ -21,8 +22,18 @@ node_modules/
# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# Editor/OS directories and files
.DS_Store
*.suo

# Jetbrains
.idea
.idea/shelf/
.idea/workspace.xml
# Editor-based HTTP Client requests
.idea/httpRequests/
# Datasource local storage ignored files
.idea/dataSources/
.idea/dataSources.local.xml

# yarn v2
.yarn/cache
Expand All @@ -33,10 +44,21 @@ node_modules/

# Compiled code
dist/
build/

# Coverage report
coverage

# Test results
test-results.xml

# Website & Code docs generation
code-docs/
out/

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
*
!dist/**

8 changes: 1 addition & 7 deletions .nsprc
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
{
"1092330": {
"active": true,
"notes": "The latest version of word-wrap was published 6 years ago",
"expiry": "2024-06-01"
}
}
{}
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

3 changes: 3 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
...require('@makerx/prettier-config'),
}
11 changes: 11 additions & 0 deletions .tstoolkitrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type { TsToolkitConfig } from '@makerx/ts-toolkit'

const config: TsToolkitConfig = {
packageConfig: {
srcDir: 'src',
outDir: 'dist',
moduleType: 'commonjs',
main: 'index.ts',
},
}
export default config
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
}
}
19 changes: 19 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "check-types",
"problemMatcher": ["$tsc"],
"label": "npm: check-types",
"detail": "tsc -p tsconfig.json"
},
{
"type": "npm",
"script": "lint:fix",
"problemMatcher": ["$eslint-stylish"],
"label": "npm: lint:fix",
"detail": "eslint \"src/**/*.ts\" --fix"
}
]
}
37 changes: 37 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import globals from 'globals'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})

export default [
{
ignores: [
'**/.eslintrc.js',
'**/node_modules',
'**/dist',
'**/build',
'**/coverage',
'**/generated/types.d.ts',
'**/generated/types.ts',
'**/.idea',
'**/.vscode',
],
},
...compat.extends('@makerx/eslint-config'),
{
languageOptions: {
globals: {
...globals.node,
},
},
},
]
Loading