Skip to content

Commit 025fb16

Browse files
mysticateamichalsnik
authored andcommitted
Docs: add vuepress documentation (#534)
* Docs: add vuepress documentation * small update for rule index * add links to source code * small tweaks * upgrade vuepress * update eslint-code-block component * update attribute-hyphenation * update attributes-order * update component-name-in-template-casing * update html-closing-bracket-newline * update html-closing-bracket-spacing * update html-end-tags * update html-indent * update html-quotes * update html-self-closing * update max-attributes-per-line * add uncategorized rules to sidebar * update mustache-interpolation-spacing * update name-property-casing * update no-async-in-computed-properties * update no-confusing-v-for-v-if * update no-dupe-keys * update no-duplicate-attributes * update no-multi-spaces * update no-parsing-error * update no-reserved-keys * update no-shared-component-data * update no-side-effects-in-computed-properties * update no-template-key * update no-template-shadow * update no-textarea-mustache * update no-unused-vars * update no-use-v-if-with-v-for * update no-v-html * update order-in-components * update prop-name-casing * Add `valid-*` eslint-code-block (#622) * Update documentation - no-spaces-around-equal-signs-in-attribute - script-indent - singleline-html-element-content-newline - use-v-on-exact * Change some of blockquotes to warnings * require-prop-type-constructor * add missing Implementation blocks * comment-directive * require-render-return * jsx-uses-vars code type * require-prop-type-constructor * update - require-v-for-key - require-valid-default-prop - return-in-computed-property * add missing options * Update - v-on-style - v-bind-style * fix remaining missing options update: valid-v-on * Update require-component-is & no-use-v-if-with-v-for * Update formating from html to vue * require-default-prop * Related links -> 📚 Further reading * standarize heading icons * Add processors * no-multi-spaces after merge * improve consistency across docs * this-in-template * require-prop-types * multiline-html-element-content-newline * fix json structure in return in computed property * Add Further reading for few rules * no-unused-components * Enable fixing eslint-code-block only one fixable rules * Add deprecated category This category will be present only if we have deprecated rules * Do not include cateogry in deprecated rules * Add example to return-in-computed-property * Add links and fix style * fix rebase issue no-multi-spaces * Update description of require-v-for-key * Update docs/rules/require-render-return.md * add moe notes * Improve readibility and add Further reading links * mustache-interpolation-spacing & name-property-casing move default example to rule details * Add IntelliJ IDEA / JetBrains WebStorm configuration help move editor configuration to correct section * Fix links * replace emoji with shortcodes * Add yarn install guide * Fix issue with not supported `vue/comment-directive` * unify options json (2 -> "error") 2 is used only if few examples but "error" is used in alot of them * Add bad example of no-use-v-vi-with-v-for * editor: update default formating to preset in documentation * Update vue-eslint-editor to fix tooltip issue * Add comment about auto-generated content * Fix indentations in Vue file * Add short description for vue/attribute-hyphenation rule * Add short description for vue/this-in-template rule * Update valid-template-root docs * Update user guide structure * Update rules heading in docs * Flatten sidebar navigation for rules * Update valid-template-root.md * Update README.md * Setup docs deployment * Uncomment deploy.sh * Add description metadata to rule pages & fix updating metadata when header is present * Indicate `no-parsing-error` warning as Note * Ignore gh-pages in CircleCI * Fix CircleCI config
1 parent f00e872 commit 025fb16

File tree

81 files changed

+3675
-2316
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+3675
-2316
lines changed

.circleci/config.yml

+36-11
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,28 @@ workflows:
22
version: 2
33
node-multi-build:
44
jobs:
5-
- node-v6
6-
- node-v8
7-
- node-v10
8-
- node-v10-minimal
5+
- node-v6:
6+
filters:
7+
branches:
8+
ignore: gh-pages
9+
- node-v8:
10+
filters:
11+
branches:
12+
ignore: gh-pages
13+
- node-v10:
14+
filters:
15+
branches:
16+
ignore: gh-pages
17+
- node-v10-minimal:
18+
filters:
19+
branches:
20+
ignore: gh-pages
21+
- deploy_docs:
22+
requires:
23+
- node-v10
24+
filters:
25+
branches:
26+
only: master
927

1028
version: 2
1129
jobs:
@@ -20,19 +38,16 @@ jobs:
2038
- restore_cache:
2139
keys:
2240
- v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
23-
- v2-npm-lock-master-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
24-
- v2-npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}
25-
- v2-npm-cache-master-{{ .Environment.CIRCLE_JOB }}
2641
- run:
2742
name: Install dependencies
2843
command: npm install
29-
- run:
30-
name: Test
31-
command: npm test
3244
- save_cache:
3345
key: v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
3446
paths:
3547
- node_modules
48+
- run:
49+
name: Test
50+
command: npm test
3651

3752
node-v6:
3853
<<: *node-base
@@ -46,6 +61,7 @@ jobs:
4661
<<: *node-base
4762
docker:
4863
- image: node:10
64+
working_directory: ~/node_10
4965
node-v10-minimal:
5066
steps:
5167
- run:
@@ -73,4 +89,13 @@ jobs:
7389
- node_modules
7490
docker:
7591
- image: node:10
76-
92+
93+
deploy_docs:
94+
docker:
95+
- image: node:10
96+
steps:
97+
- attach_workspace:
98+
at: ~/node_10
99+
- run:
100+
name: Deploy to Github Pages
101+
command: npm run docs:deploy

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
/node_modules
44
/tests/fixtures
55
/tests/integrations/*/node_modules
6+
7+
!.vuepress
8+
/docs/.vuepress/dist

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
/test.*
88
yarn.lock
99
yarn-error.log
10+
docs/.vuepress/dist

.vscode/settings.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22
"editor.tabSize": 2,
33
"eslint.options": {
44
"rulePaths": ["eslint-internal-rules"]
5-
}
5+
},
6+
"eslint.validate": [
7+
"javascript",
8+
"javascriptreact",
9+
{ "language": "vue", "autoFix": true }
10+
]
611
}

0 commit comments

Comments
 (0)