Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf29c010

Browse files
adjust eslint and intro css for markdown
1 parent6b384a4 commitf29c010

File tree

11 files changed

+343
-46
lines changed

11 files changed

+343
-46
lines changed

‎.eslintrc.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// https://eslint.org/docs/user-guide/configuring
2+
3+
module.exports={
4+
root:true,
5+
parserOptions:{
6+
parser:'babel-eslint',
7+
sourceType:'module'
8+
},
9+
env:{
10+
browser:true,
11+
jest:true
12+
},
13+
extends:['standard','plugin:vue/essential'],
14+
// required to lint *.vue files
15+
plugins:['vue'],
16+
// add your custom rules here
17+
rules:{
18+
// don't require .vue extension when importing
19+
'import/extensions':['error','always',{
20+
js:'never'
21+
}],
22+
'max-len':['error',
23+
{'code':200}
24+
],
25+
// allow optionalDependencies
26+
'import/no-extraneous-dependencies':['error',{
27+
optionalDependencies:['test/unit/index.js']
28+
}],
29+
'no-unused-expressions':['error',{allowTernary:true}],
30+
// allow debugger during development
31+
'no-debugger':process.env.NODE_ENV==='production' ?'error' :'off',
32+
'vue/order-in-components':['error',{
33+
'order':[
34+
'el',
35+
'name',
36+
'parent',
37+
'functional',
38+
['delimiters','comments'],
39+
['components','directives','filters'],
40+
'extends',
41+
'mixins',
42+
'inheritAttrs',
43+
'model',
44+
['props','propsData'],
45+
'data',
46+
'computed',
47+
'watch',
48+
'LIFECYCLE_HOOKS',
49+
'methods',
50+
['template','render'],
51+
'renderError'
52+
]
53+
}]
54+
}
55+
}

‎babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports={
2-
presets:["@vue/app"]
3-
};
2+
presets:['@vue/app']
3+
}

‎package-lock.json

Lines changed: 203 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"dependencies": {
1111
"babel-runtime":"^6.26.0",
1212
"carvue":"^0.1.4",
13+
"github-markdown-css":"^2.10.0",
14+
"highlight.js":"^9.12.0",
15+
"install":"^0.12.1",
1316
"vue":"^2.5.16",
1417
"vue-markdown":"^2.2.4",
1518
"vue-router":"^3.0.1"
@@ -21,6 +24,11 @@
2124
"@vue/cli-service":"^3.0.0-beta.15",
2225
"@vue/eslint-config-prettier":"^3.0.0-rc.3",
2326
"babel-plugin-transform-runtime":"^6.23.0",
27+
"eslint-config-standard":"^11.0.0",
28+
"eslint-plugin-import":"^2.13.0",
29+
"eslint-plugin-node":"^6.0.1",
30+
"eslint-plugin-promise":"^3.8.0",
31+
"eslint-plugin-standard":"^3.1.0",
2432
"vue-markdown-loader":"^2.4.1"
2533
},
2634
"browserslist": [

‎src/components/CodeSnippet.vue

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,31 @@
11
<template>
2-
<iframeheight='265'scrolling='no':title='codePenId':src='`//codepen.io/nicholaslee119/embed/${codePenId}/?height=265&theme-id=dark&default-tab=result&embed-version=2`'frameborder='no'allowtransparency='true'allowfullscreen='true'style='width:100%;'>
3-
See the Pen <a:href='`https://codepen.io/nicholaslee119/pen/${codePenId}/`'>{{codePenId}}</a> by Nicholas Lee (<ahref='https://codepen.io/nicholaslee119'>@nicholaslee119</a>) on <ahref='https://codepen.io'>CodePen</a>.
2+
<iframeheight="265"
3+
scrolling="no"
4+
:title="codePenId"
5+
:src='`//codepen.io/nicholaslee119/embed/${codePenId}/?height=265&theme-id=dark&default-tab=result&embed-version=2`'
6+
frameborder="no"
7+
allowtransparency="true"
8+
allowfullscreen="true"
9+
style="width:100%;">
10+
See the Pen
11+
<a:href='`https://codepen.io/nicholaslee119/pen/${codePenId}/`'>
12+
{{codePenId}}
13+
</a>
14+
by Nicholas Lee(<ahref='https://codepen.io/nicholaslee119'>@nicholaslee119</a>) on
15+
<ahref="https://codepen.io">
16+
CodePen
17+
</a>.
418
</iframe>
519
</template>
620

721
<script>
822
exportdefault {
9-
name:"codeSnippet",
23+
name:'codeSnippet',
1024
props: {
1125
codePenId: {
1226
type:String,
13-
default:"xJKRjY"
27+
default:'xJKRjY'
1428
}
1529
}
16-
};
30+
}
1731
</script>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp