Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 0222f02

Browse files
authored
Merge pull request #76 from medfreeman/standard-js
Standardized module, i.e. added linter, and fixed nuxtent-body component
2 parents 823a408 + 55c406b commit 0222f02

Some content is hidden

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

41 files changed

+617
-526
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
lib/plugins/nuxtentBodyComponent.template.js
3+
dist/
4+
nuxt/

.eslintrc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"root": true,
3+
"parser": "babel-eslint",
4+
"parserOptions": {
5+
"ecmaVersion": 8,
6+
"sourceType": "module"
7+
},
8+
"env": {
9+
"node": true,
10+
"es6": true
11+
},
12+
"plugins": [
13+
"babel",
14+
"ava"
15+
],
16+
"extends": [
17+
"eslint-config-standard",
18+
"eslint-config-i-am-meticulous",
19+
"plugin:ava/recommended",
20+
"eslint-config-prettier"
21+
],
22+
"rules": {
23+
"curly": [
24+
"error",
25+
"all"
26+
]
27+
}
28+
}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Nuxtent
22

3+
[![js-standard-style](https://cdn.rawgit.com/standard/standard/master/badge.svg)](http://standardjs.com)
4+
35
The goal of Nuxtent is to make using Nuxt for content heavy sites as easy as using Jekyll, Hugo, or any other static site generator.
46

57
It does in two main ways:

bin/nuxtent

Lines changed: 0 additions & 26 deletions
This file was deleted.

bin/nuxtent-generate

Lines changed: 0 additions & 74 deletions
This file was deleted.

docs/nuxt.config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ module.exports = {
44
meta: [
55
{ charset: 'utf-8' },
66
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
7-
{ hid: 'description', name: 'description', content: 'Nuxtent Documentation' }
7+
{
8+
hid: 'description',
9+
name: 'description',
10+
content: 'Nuxtent Documentation'
11+
}
812
],
9-
link: [
10-
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
11-
]
13+
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
1214
},
13-
modules: [
14-
'nuxtent'
15-
],
15+
modules: ['nuxtent'],
1616
css: [
1717
'prismjs/themes/prism-coy.css',
1818
{ src: '~/assets/sass/base.sass', lang: 'sass' }

docs/nuxtent.config.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,33 @@ module.exports = {
66
page: 'guide/_slug',
77
permalink: ':slug',
88
isPost: false,
9-
generate: [
10-
'get',
11-
'getAll'
12-
]
9+
generate: ['get', 'getAll']
1310
},
1411

1512
parsers: {
1613
md: {
1714
highlight: (code, lang) => {
18-
return Prism.highlight(code, Prism.languages[lang] || Prism.languages.markup)
15+
return Prism.highlight(
16+
code,
17+
Prism.languages[lang] || Prism.languages.markup
18+
)
1919
},
2020
use: [
21-
[externalLinks, {
22-
target: '_blank',
23-
rel: 'noopener'
24-
}]
21+
[
22+
externalLinks,
23+
{
24+
target: '_blank',
25+
rel: 'noopener'
26+
}
27+
]
2528
]
2629
}
2730
},
2831

2932
api: {
30-
baseURL: process.env.NODE_ENV === 'production'
31-
? 'https://nuxtent.now.sh'
32-
: 'http://localhost:3000'
33+
baseURL:
34+
process.env.NODE_ENV === 'production'
35+
? 'https://nuxtent.now.sh'
36+
: 'http://localhost:3000'
3337
}
3438
}

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"markdown-it-link-attributes": "^1.0.0",
1010
"nuxt": "1.0.0-alpha.3",
1111
"nuxtent": "0.2.59",
12-
"prismjs": "^1.6.0"
12+
"prismjs": "^1.8.1"
1313
},
1414
"scripts": {
1515
"dev": "nuxt",

examples/.eslintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
rules: {
3+
"import/no-unresolved": 0
4+
}
5+
}

0 commit comments

Comments
 (0)