Skip to content

Commit

Permalink
Add EOL and enforce it in eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenguh committed Aug 4, 2021
1 parent b577e9d commit d8986c4
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Expand Up @@ -17,10 +17,11 @@ module.exports = {
],
rules: {
'semi': [2, "always"],
'eol-last': 'error',
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-non-null-assertion': 0,
}
};
};
2 changes: 1 addition & 1 deletion .github/workflows/keybindings.yml
Expand Up @@ -46,4 +46,4 @@ jobs:
git push
else
echo "nothing to commit";
fi
fi
2 changes: 1 addition & 1 deletion .vscode/settings.json
Expand Up @@ -16,4 +16,4 @@
"latex",
"plaintext"
]
}
}
2 changes: 1 addition & 1 deletion .vscodeignore
Expand Up @@ -18,4 +18,4 @@ resources/*
.eslintrc.js
tsconfig.json
tslint.json
webpack.config.js
webpack.config.js
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -28,4 +28,4 @@ This extension aims to provide the best out-of-the-box experience like spacemacs
Feel free to open an issue if the issue you are experiencing is not in already in the [Github issues](https://github.com/VSpaceCode/VSpaceCode/issues).

## Submitting Pull Requests
If you are submitting an pull request (PR) without a tracking issue, consider create an issue first. This is so that we can discuss different implementations if necessary.
If you are submitting an pull request (PR) without a tracking issue, consider create an issue first. This is so that we can discuss different implementations if necessary.
2 changes: 1 addition & 1 deletion loaders/jsonc-loader.js
Expand Up @@ -4,4 +4,4 @@ module.exports = function loader(input) {
const rawSource = input.toString();
const json = JSON.stringify(JSON.parse(stripComments(rawSource))).replace('`', '\\`');
return `module.exports = JSON.parse(\`${json}\`);`;
};
};
2 changes: 1 addition & 1 deletion scripts/keybindings.js
Expand Up @@ -89,4 +89,4 @@ while (queue.length > 0) {
strBuilder.push(table(tableContent), "\n\n");
}

fs.writeFileSync('./KEYBINDINGS.md', strBuilder.join(""));
fs.writeFileSync('./KEYBINDINGS.md', strBuilder.join(""));
2 changes: 1 addition & 1 deletion src/bufferCommands.ts
Expand Up @@ -8,4 +8,4 @@ export async function copyWholeBuffer() {
await env.clipboard.writeText(activeEditor.document.getText());
window.setStatusBarMessage(`${lineNumber} lines copied`, defaultStatusBarTimeout);
}
}
}
2 changes: 1 addition & 1 deletion src/charCode.ts
Expand Up @@ -22,4 +22,4 @@ export const enum CharCode {
* The `\` character.
*/
Backslash = 92,
}
}
2 changes: 1 addition & 1 deletion src/configuration/keyBinding.ts
Expand Up @@ -2,4 +2,4 @@ export interface KeyBinding {
key: string;
command: string;
when?: string;
}
}
2 changes: 1 addition & 1 deletion src/configuration/keybindings.jsonc
Expand Up @@ -130,4 +130,4 @@
"command": "file-browser.stepIn",
"when": "inFileBrowser"
}
]
]
2 changes: 1 addition & 1 deletion src/configuration/legacyKeybindings.jsonc
Expand Up @@ -4,4 +4,4 @@
"command": "vspacecode.space",
"when": "activeEditorGroupEmpty && focusedView == '' && !whichkeyActive"
}
]
]
2 changes: 1 addition & 1 deletion src/configuration/legacySettings.jsonc
Expand Up @@ -14,4 +14,4 @@
"commands": ["vspacecode.space"]
}
]
}
}
2 changes: 1 addition & 1 deletion src/configuration/settings.jsonc
Expand Up @@ -39,4 +39,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion src/constants.ts
Expand Up @@ -45,4 +45,4 @@ export const BindingsId = {

export const manualInstallUrl = "https://github.com/VSpaceCode/VSpaceCode#installation";

export const defaultStatusBarTimeout = 5000;
export const defaultStatusBarTimeout = 5000;
2 changes: 1 addition & 1 deletion src/extension.ts
Expand Up @@ -69,4 +69,4 @@ function configure() {

function openDocumentationUrl() {
return env.openExternal(Uri.parse("https://vspacecode.github.io/docs/"));
}
}
2 changes: 1 addition & 1 deletion src/messages.ts
Expand Up @@ -35,4 +35,4 @@ export async function showUpdateMessage(cur: string, prev: string) {
await env.openExternal(Uri.parse("https://github.com/VSpaceCode/VSpaceCode/blob/master/CHANGELOG.md"));
}
}
}
}
2 changes: 1 addition & 1 deletion src/pathCommands.ts
Expand Up @@ -212,4 +212,4 @@ function relativePath(from: Uri, to: Uri, ignorePathCasing = false): string | un
fromPath = toPath.substr(0, i) + fromPath.substr(i);
}
return path.posix.relative(fromPath, toPath);
}
}
2 changes: 1 addition & 1 deletion src/uriScheme.ts
Expand Up @@ -4,4 +4,4 @@
export const enum UriScheme {
File = "file",
VscodeRemote = 'vscode-remote'
}
}
2 changes: 1 addition & 1 deletion src/version.ts
Expand Up @@ -50,4 +50,4 @@ export enum ComparisonResult {
Older = -1,
Same = 0,
Newer = 1
}
}
2 changes: 1 addition & 1 deletion webpack.config.js
Expand Up @@ -47,4 +47,4 @@ const config = {
]
}
};
module.exports = config;
module.exports = config;

0 comments on commit d8986c4

Please sign in to comment.