Skip to content

Commit d1b8003

Browse files
committed
build: update xo to v1
1 parent 2e60223 commit d1b8003

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ npm install typescript-node-module-boilerplate
1414
## Usage
1515

1616
```ts
17-
import {myFunction} from 'typescript-node-module-boilerplate';
17+
import { myFunction } from "typescript-node-module-boilerplate";
1818

19-
myFunction('unicorns');
19+
myFunction("unicorns");
2020
//=> 'unicorns & rainbows'
2121
```

package.json

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"c8": "^10.1.2",
3131
"del-cli": "^6.0.0",
3232
"typescript": "^5.9.2",
33-
"xo": "^0.60.0"
33+
"xo": "^1.2.2"
3434
},
3535
"files": [
3636
"dist",
@@ -39,23 +39,20 @@
3939
],
4040
"main": "./dist/index.js",
4141
"types": "./dist/index.d.ts",
42-
"xo": {
43-
"rules": {
44-
"@typescript-eslint/prefer-readonly-parameter-types": "warn",
45-
"n/file-extension-in-import": "off"
42+
"xo": [
43+
{
44+
"rules": {
45+
"@typescript-eslint/prefer-readonly-parameter-types": "warn"
46+
}
4647
},
47-
"overrides": [
48-
{
49-
"files": [
50-
"**/*.test.*",
51-
"**/test.*"
52-
],
53-
"rules": {
54-
"@typescript-eslint/prefer-readonly-parameter-types": "off",
55-
"n/no-unsupported-features/es-syntax": "off",
56-
"n/no-unsupported-features/node-builtins": "off"
57-
}
48+
{
49+
"files": [
50+
"**/*.test.*",
51+
"**/test.*"
52+
],
53+
"rules": {
54+
"@typescript-eslint/prefer-readonly-parameter-types": "off"
5855
}
59-
]
60-
}
56+
}
57+
]
6158
}

0 commit comments

Comments
 (0)