Skip to content

Commit

Permalink
update a few settings, add json linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Feb 23, 2024
1 parent 3253c33 commit 64a8a0d
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 58 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['simple-import-sort'],
extends: [
'plugin:json/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
Expand Down
28 changes: 21 additions & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,40 @@
},
"[typescript]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "always"
}
},
"[javascript]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "always"
}
},
"[scss]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "always"
}
},
"[html]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": false
}
"source.fixAll.eslint": "always"
}
},
"[json]": {
"editor.formatOnSave": true,
},
"json.format.enable": true,
"json.schemas": [
{
"fileMatch": [
"*.apl.json"
],
"url": "./jsonschema/APLRotation.json"
"url": "./schemas/apl_rotation.schema.json"
},
{
"fileMatch": [
"*.gear.json"
],
"url": "./schemas/gear.schema.json"
}
],
"Lua.diagnostics.globals": [
Expand Down Expand Up @@ -111,5 +120,10 @@
"strbyte",
"tinsert",
"UIParent"
]
],
"[javascript][scss][typescript]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
}
}
Loading

0 comments on commit 64a8a0d

Please sign in to comment.