eslint-plugin-roblox-ts
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -85,2 +85,9 @@ "use strict"; | ||
eqeqeq: "error", | ||
// @typescript-eslint | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-namespace": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-empty-function": "warn", | ||
}, | ||
@@ -87,0 +94,0 @@ }, |
{ | ||
"name": "eslint-plugin-roblox-ts", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"main": "out/index.js", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
@@ -18,26 +18,24 @@ # lint-rules | ||
## Step 2: Change your VSCode settings | ||
Make sure these settings are in your settings file (`Ctrl + ,` to open the settings UI, then press the `Open Settings (JSON)` button in the top right): | ||
```js | ||
Make sure the following settings are in your settings file (`Ctrl + ,` to open the settings UI, then press the `Open Settings (JSON)` button in the top right). | ||
These are according to my preferences, so feel free to change this according to your own desires: | ||
```json | ||
"files.trimTrailingWhitespace": true, | ||
"files.insertFinalNewline": true, | ||
"files.trimFinalNewlines": true, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": false, // we turn this off because eslint.autoFixOnSave runs | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint", | ||
"editor.formatOnSave": true, | ||
"editor.formatOnPaste": true, | ||
"editor.formatOnType": true | ||
"editor.formatOnType": true, | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": false, | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint", | ||
"editor.formatOnSave": true, | ||
"editor.formatOnPaste": true, | ||
"editor.formatOnType": true | ||
"editor.formatOnType": true, | ||
}, | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
{ "language": "typescript", "autoFix": true }, | ||
{ "language": "typescriptreact", "autoFix": true } | ||
], | ||
"eslint.packageManager": "npm", | ||
"eslint.run": "onType", | ||
"eslint.autoFixOnSave": true, | ||
"prettier.eslintIntegration": true | ||
"eslint.format.enable": true, | ||
``` | ||
@@ -94,3 +92,8 @@ | ||
"@typescript-eslint/no-empty-function": "warn", | ||
"prefer-const": "warn", | ||
"prefer-const": [ | ||
"warn", | ||
{ | ||
"destructuring": "all" | ||
} | ||
], | ||
"no-undef-init": "error" | ||
@@ -97,0 +100,0 @@ } |
43873
1024
112