Skip to content

Commit e7debf6

Browse files
committed
Install eslint
1 parent 731ecef commit e7debf6

File tree

3 files changed

+2222
-22
lines changed

3 files changed

+2222
-22
lines changed

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default await antfu()

package.json

Lines changed: 39 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,50 @@
11
{
22
"name": "fluent-vue",
33
"displayName": "fluent-vue",
4-
"description": "Syntax highlighting for Fluent and fluent-vue",
4+
"type": "module",
55
"version": "0.0.1",
6-
"engines": {
7-
"vscode": "^1.84.0"
8-
},
6+
"description": "Syntax highlighting for Fluent and fluent-vue",
97
"categories": [
108
"Programming Languages"
119
],
10+
"engines": {
11+
"vscode": "^1.84.0"
12+
},
1213
"contributes": {
13-
"languages": [{
14-
"id": "ftl",
15-
"aliases": ["Fluent", "ftl"],
16-
"extensions": [".ftl"],
17-
"configuration": "./language-configuration.json"
18-
}],
19-
"grammars": [{
20-
"language": "ftl",
21-
"scopeName": "source.ftl",
22-
"path": "./syntaxes/ftl.tmLanguage.json"
23-
}, {
24-
"path": "./syntaxes/vue.injection.json",
25-
"scopeName": "meta.embedded.ftl",
26-
"injectTo": ["source.vue"],
27-
"embeddedLanguages": {
28-
"source.ftl": "ftl",
29-
"meta.embedded.block.ftl": "ftl"
14+
"languages": [
15+
{
16+
"id": "ftl",
17+
"aliases": [
18+
"Fluent",
19+
"ftl"
20+
],
21+
"extensions": [
22+
".ftl"
23+
],
24+
"configuration": "./language-configuration.json"
3025
}
31-
}]
26+
],
27+
"grammars": [
28+
{
29+
"language": "ftl",
30+
"scopeName": "source.ftl",
31+
"path": "./syntaxes/ftl.tmLanguage.json"
32+
},
33+
{
34+
"path": "./syntaxes/vue.injection.json",
35+
"scopeName": "meta.embedded.ftl",
36+
"injectTo": [
37+
"source.vue"
38+
],
39+
"embeddedLanguages": {
40+
"source.ftl": "ftl",
41+
"meta.embedded.block.ftl": "ftl"
42+
}
43+
}
44+
]
45+
},
46+
"devDependencies": {
47+
"@antfu/eslint-config": "^2.1.0",
48+
"eslint": "^8.54.0"
3249
}
3350
}

0 commit comments

Comments
 (0)