Skip to content

Commit e573548

Browse files
authored
Merge pull request #26 from citation-file-format/improve-configs
Improve configs
2 parents 5dff553 + 2b73d93 commit e573548

36 files changed

Lines changed: 223 additions & 123 deletions

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ root = true
33
[*]
44
charset = utf-8
55
indent_style = space
6-
indent_size = 2
6+
indent_size = 4
77
end_of_line = lf
88
insert_final_newline = true
99
trim_trailing_whitespace = true

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
/node_modules
77
.eslintrc.js
88
babel.config.js
9-
/src-ssr
9+
/src-ssr
10+
/docs

.eslintrc.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ module.exports = {
3838
// Uncomment any of the lines below to choose desired strictness,
3939
// but leave only one uncommented!
4040
// See https://eslint.vuejs.org/rules/#available-rules
41-
'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
42-
// 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
41+
// 'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
42+
'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
4343
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
4444

4545
'standard'
@@ -71,6 +71,9 @@ module.exports = {
7171

7272
// add your custom rules here
7373
rules: {
74+
'vue/v-on-style': ['error', 'longform'],
75+
'indent': ['error', 4],
76+
7477
// allow async-await
7578
'generator-star-spacing': 'off',
7679
// allow paren-less arrow functions

.github/workflows/build.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,23 @@ name: Build
33
on: [push, pull_request]
44

55
jobs:
6-
cd:
7-
runs-on: ${{ matrix.os }}
6+
build:
7+
8+
runs-on: ubuntu-latest
89

910
strategy:
1011
matrix:
11-
os: [ubuntu-latest]
12-
node: [14]
12+
node-version: [12.x, 14.x, 16.x]
13+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1314

1415
steps:
15-
- name: Checkout
16-
uses: actions/checkout@master
17-
18-
- name: Setup Node
19-
uses: actions/setup-node@v2.1.2
20-
with:
21-
node-version: ${{ matrix.node }}
22-
23-
- name: Install the dependencies
24-
run: npm install
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
cache: 'npm'
22+
- run: npm clean-install
23+
- run: npm run build
2524

26-
- name: Build
27-
run: npm run build
2825

.github/workflows/lint.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [12.x, 14.x, 16.x]
13+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
cache: 'npm'
22+
- run: npm clean-install
23+
- run: npm run lint

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ yarn-error.log*
3131
*.ntvs*
3232
*.njsproj
3333
*.sln
34+
node_modules

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run lint

README.dev.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@ try to automatically fix linting issues with
5151
```shell
5252
npm run lint -- --fix
5353
```
54+
55+
To run linting on commit, you can install a git commit hook with
56+
57+
```shell
58+
npx husky install
59+
```

docs/css/313.3055dc34.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.col-2[data-v-338ae43a],.col-6[data-v-338ae43a],.q-stepper[data-v-0f959576]{background-color:#b9b4b4}

docs/css/490.43186bff.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)