Skip to content

Commit

Permalink
chore: simplify template-oss config (#38)
Browse files Browse the repository at this point in the history
Turn off typescript option since most of what it sets is not helpful for
types only libraries
  • Loading branch information
lukekarrys authored May 8, 2024
1 parent 1a08144 commit 3687a18
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 46 deletions.
7 changes: 0 additions & 7 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@ module.exports = {
root: true,
ignorePatterns: [
'tap-testdir*/',
'dist/',
],
parser: '@typescript-eslint/parser',
settings: {
'import/resolver': {
typescript: {},
},
},
extends: [
'@npmcli',
...localConfigs,
Expand Down
6 changes: 6 additions & 0 deletions .eslintrc.local.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
module.exports = {
parser: '@typescript-eslint/parser',
settings: {
'import/resolver': {
typescript: {},
},
},
overrides: [{
files: ['test/fixtures/*.ts'],
rules: {
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@ tap-testdir*/
!/.gitignore
!/.npmrc
!/.release-please-manifest.json
!/bin/
!/CHANGELOG*
!/CODE_OF_CONDUCT.md
!/CONTRIBUTING.md
!/docs/
!/lib/
!/LICENSE*
!/map.js
!/package.json
!/README*
!/release-please-config.json
!/scripts/
!/SECURITY.md
!/src/
!/tap-snapshots/
!/test/
!/tsconfig.json
Expand Down
19 changes: 14 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
"scripts": {
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
"lintfix": "npm run lint -- --fix",
"postlint": "template-oss-check",
"posttest": "npm run lint",
"template-oss-apply": "template-oss-apply --force",
"lintfix": "npm run lint -- --fix",
"snap": "tap",
"test": "tap",
"snap": "tap"
"posttest": "npm run lint"
},
"keywords": [
"npm registry",
Expand All @@ -34,10 +34,11 @@
"@typescript-eslint/parser": "^7.8.0",
"eslint-import-resolver-typescript": "^3.6.1",
"tap": "^18.7.3",
"tshy": "^1.14.0",
"typescript": "^5.4.5"
},
"files": [
"bin/",
"lib/",
"types/"
],
"repository": {
Expand All @@ -47,7 +48,15 @@
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.22.0",
"content": "./scripts/template-oss",
"allowPaths": [
"/types/"
],
"distPaths": [
"types/"
],
"latestCiVersion": 18,
"windowsCI": false,
"macCI": false,
"publish": true
},
"type": "module",
Expand Down
23 changes: 0 additions & 23 deletions scripts/template-oss/index.js

This file was deleted.

10 changes: 0 additions & 10 deletions scripts/template-oss/package-json.hbs

This file was deleted.

0 comments on commit 3687a18

Please sign in to comment.