We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 026e5f3 commit 660813dCopy full SHA for 660813d
.eslintrc.js
@@ -20,6 +20,8 @@ module.exports = {
20
comments: 120,
21
}],
22
'import/extensions': ['error', 'never'],
23
+ 'semi': ['error', 'always'],
24
+ 'quotes': ['error', 'single'],
25
},
26
overrides: [
27
{
.github/workflows/lint.yml
@@ -0,0 +1,17 @@
1
+name: lint
2
+run-name: Lint Code
3
+on: [push, pull_request]
4
+jobs:
5
+ lint:
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - name: Checkout
9
+ uses: actions/checkout@v3
10
+ - name: Setup Node.js
11
+ uses: actions/setup-node@v3
12
+ with:
13
+ node-version: 18
14
+ - name: Install dependencies
15
+ run: npm ci
16
+ - name: Lint
17
+ run: npm run lint -- --no-fix
.github/workflows/vuedeploy.yml
@@ -10,17 +10,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v2
- name: Setup Node.js
- uses: actions/setup-node@v1
with:
- node-version: 17.x
18
- name: Install dependencies
19
run: npm ci
- name: Build
run: npm run build
- name: Deploy
- uses: JamesIves/github-pages-deploy-action@releases/v3
+ uses: JamesIves/github-pages-deploy-action@releases/v4
folder: dist
git-config-name: GitHub Actions Deploy
src/components/output/PS1Variable.vue
@@ -198,6 +198,7 @@ function generatePS1(elements: PromptElement[]): string {
198
// we cannot escape single quotes inside single-quoted strings
199
// therefore we have to split the string and insert a double-quoted single quote in between:
200
// 'prefix' "'" 'suffix'
201
+ // eslint-disable-next-line quotes
202
return `PS1='${outputElements.join('').replace(/'/g, "'\"'\"'")}${endReset}'`;
203
}
204
src/components/prompteditor/PromptElements.vue
@@ -95,7 +95,6 @@ export default defineComponent({
95
prompt.state().push(element);
96
});
97
} catch (err) {
98
- console.error('ERROR CAUGHT', err);
99
if (err instanceof PromptParserError) {
100
this.ps1inputError = err.message;
101
} else {
src/lib/enum/promptElementType.ts
@@ -170,6 +170,7 @@ export const PROMPT_ELEMENT_TYPES = [
170
new PromptElementType('Exit Status', '$?', [], true, 'Exit status ($?).', '0'),
171
new PromptElementType(
172
'Git branch',
173
174
"$(git branch 2>/dev/null | grep ' ^* ' | colrm 1 2)",
175
[],
176
true,
@@ -221,6 +222,7 @@ export const PROMPT_ELEMENT_TYPES = [
221
222
new PromptElementType(':', ':', [], true, 'Colon.', ':'),
223
new PromptElementType(';', ';', [], true, 'Semicolon.', ';'),
224
new PromptElementType('"', '"', [], true, 'Quotation mark.', '"'),
225
226
new PromptElementType("'", "'", [], true, 'Single quote.', "'"),
227
new PromptElementType('<', '<', [], true, 'Less than.', '<'),
228
new PromptElementType('>', '>', [], true, 'Greater than.', '>'),
0 commit comments