Skip to content

Commit fa71469

Browse files
committed
chore: add eslint-plugin-sort-keys plugin
1 parent ec817a2 commit fa71469

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createRequire } from 'node:module'
22
import sortKeys from 'eslint-plugin-sort-keys'
33

4-
import { coderwyd } from './dist/index.js'
4+
import coderwyd from './dist/index.js'
55

66
const require = createRequire(import.meta.url)
77
require('sucrase/register')

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,24 @@
6868
"vue-eslint-parser": "^9.3.1",
6969
"yaml-eslint-parser": "^1.2.2"
7070
},
71-
"nano-staged": {
72-
"*": "eslint --fix"
73-
},
7471
"devDependencies": {
7572
"@types/node": "^20.6.3",
7673
"@types/react": "^18.2.22",
7774
"bumpp": "^9.2.0",
7875
"eslint": "^8.49.0",
76+
"eslint-plugin-sort-keys": "^2.3.5",
7977
"nano-staged": "^0.8.0",
8078
"react": "^18.2.0",
8179
"simple-git-hooks": "^2.9.0",
8280
"sucrase": "^3.34.0",
8381
"tsup": "^7.2.0",
8482
"typescript": "^5.2.2",
8583
"vitest": "^0.34.5"
84+
},
85+
"simple-git-hooks": {
86+
"pre-commit": "pnpx nano-staged"
87+
},
88+
"nano-staged": {
89+
"*": "eslint --fix"
8690
}
8791
}

pnpm-lock.yaml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)