Skip to content

Commit 97407d4

Browse files
committed
docs: add linting
1 parent 887df80 commit 97407d4

File tree

6 files changed

+2688
-69
lines changed

6 files changed

+2688
-69
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ jobs:
2323

2424
- run: pnpm install
2525

26+
- run: pnpm lint
27+
2628
- run: pnpm test

eslint.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const neostandard = require('neostandard')
2+
3+
module.exports = [
4+
...neostandard(),
5+
{
6+
rules: {
7+
'comma-dangle': ['error', 'always-multiline'],
8+
},
9+
},
10+
]

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"pnpmfile.cjs"
1010
],
1111
"scripts": {
12+
"lint": "eslint .",
1213
"test": "node test.js",
1314
"update-list": "ts-node updateList.ts"
1415
},
@@ -18,6 +19,8 @@
1819
"license": "MIT",
1920
"packageManager": "[email protected]",
2021
"devDependencies": {
22+
"eslint": "^9.39.2",
23+
"neostandard": "^0.12.2",
2124
"ts-node": "^10.9.2"
2225
},
2326
"funding": "https://opencollective.com/pnpm",

0 commit comments

Comments
 (0)