Skip to content

Commit 4ac649a

Browse files
committed
chore: Setup ESLint
1 parent 71525f2 commit 4ac649a

File tree

6 files changed

+29
-18
lines changed

6 files changed

+29
-18
lines changed

Diff for: .github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: "Release version"
7+
description: Release version
88
required: true
99
type: string
1010

Diff for: .prettierignore

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
*.code-snippets
2-
CHANGELOG.md
2+
bun.lockb
3+
bunfig.toml
4+
CHANGELOG.md
5+
LICENSE
6+
7+
# From .gitignore
8+
.env
9+
*.log*
10+
.eslintcache
11+
*.DS_Store
12+
node_modules

Diff for: .vscode/launch.json

+10-16
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
// A launch configuration that launches the extension inside a new window
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
51
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
{
9-
"name": "Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
]
15-
}
16-
]
17-
}
2+
"configurations": [
3+
{
4+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
5+
"name": "Extension",
6+
"request": "launch",
7+
"type": "extensionHost"
8+
}
9+
],
10+
"version": "0.2.0"
11+
}

Diff for: bun.lockb

378 KB
Binary file not shown.

Diff for: eslint.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import exer7umConfig from "@exer7um/eslint-config"
2+
3+
export default exer7umConfig

Diff for: package.json

+4
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@
4646
}
4747
],
4848
"publisher": "exer7um",
49+
"type": "module",
4950
"scripts": {
51+
"eslint": "eslint . --max-warnings=0",
52+
"eslint:fix": "eslint . --max-warnings=0 --fix",
5053
"prettier": "prettier --check --ignore-unknown --no-error-on-unmatched-pattern *",
5154
"prettier:write": "prettier --write --ignore-unknown --no-error-on-unmatched-pattern *"
5255
},
@@ -152,6 +155,7 @@
152155
},
153156
"prettier": "@exer7um/prettier-config",
154157
"devDependencies": {
158+
"@exer7um/eslint-config": "1.1.1",
155159
"@exer7um/prettier-config": "0.4.2"
156160
},
157161
"engines": {

0 commit comments

Comments
 (0)