Skip to content

Commit d6eea15

Browse files
committed
chore: update config for prettier
1 parent a8b7bdf commit d6eea15

File tree

4 files changed

+6
-18
lines changed

4 files changed

+6
-18
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
@@ -35,7 +34,8 @@ If applicable, add a minimal reproducible project structure generated by the `tr
3534
```
3635

3736
**Desktop (please complete the following information):**
38-
- OS: [e.g. macOS]
37+
38+
- OS: [e.g. macOS]
3939

4040
**Additional context**
4141
Add any other context about the problem here.

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx --no -- commitlint --edit $1 && npm run lint
1+
npx --no -- commitlint --edit $1 && npm run lint:fix

eslint.config.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import js from '@eslint/js';
22
import eslintPlugin from 'eslint-plugin-eslint-plugin';
33
import jsdoc from 'eslint-plugin-jsdoc';
44
import node from 'eslint-plugin-n';
5-
import prettier from 'eslint-plugin-prettier';
5+
import prettier from 'eslint-plugin-prettier/recommended';
66

77
export default [
88
{
@@ -12,17 +12,5 @@ export default [
1212
eslintPlugin.configs['flat/recommended'],
1313
jsdoc.configs['flat/recommended'],
1414
node.configs['flat/recommended'],
15-
{
16-
plugins: {
17-
prettier: prettier,
18-
},
19-
rules: {
20-
'prettier/prettier': [
21-
'error',
22-
{
23-
endOfLine: 'auto',
24-
},
25-
],
26-
},
27-
},
15+
prettier,
2816
];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"prepare": "husky",
5050
"build": "rollup -c",
5151
"lint": "eslint .",
52-
"lint:fix": "eslint . --fix",
52+
"lint:fix": "eslint . --fix && prettier --write **/*.md",
5353
"test": "c8 mocha --loader=esmock tests --recursive",
5454
"test:report": "c8 report -r=lcov",
5555
"test:cli": "mocha --loader=esmock"

0 commit comments

Comments
 (0)