Blog of 铭铭GE's


  • 首页

  • 归档

  • 标签

ESLint: Parsing Error: 'Import' and 'Export' May Appear Only With 'sourceType: Module'

发表于 2017-08-03

ESLint: Parsing error: ‘import’ and ‘export’ may appear only with ‘sourceType: module’

1. .eslintrc 中添加:

1
2
3
"parserOptions": {
"sourceType": "module"
}

2. 重启编辑器

ESLint 相关

发表于 2017-08-03

自定义配置

1
2
3
4
5
6
7
rules: {
"indent": [ 'error', 4 ], // 缩进
"strict": 0, // 禁用严格模式
"comma-dangle": ["error", "never"],
"curly": ["error", "multi-line"], // if、else if、else、for、while强制使用大括号,但允许在单行中省略大括号
"brace-style": [2, "stroustrup"] // 大括号位置
}

NexT 主题配置

发表于 2017-08-02

安装 NexT

将主题文件拷贝至站点目录的 themes 目录下, 然后修改下配置文件即可。安装步骤如下。

下载主题

在终端窗口下,定位到 Hexo 站点目录下。使用 Git clone 代码:

$ cd your-hexo-site
$ git clone https://github.com/iissnan/hexo-theme-next themes/next


启用主题

打开配置文件 _config.yml , 找到 theme 字段,并将其值更改为 next。

theme: next

阅读全文 »

Hexo 快速建站

发表于 2017-08-02

Hexo 建站

安装前准备

安装 Hexo 之前,首先要检查电脑中是否已安装下列应用程序:
🍭Node.js
🍭Git

安装 Hexo

NPM 安装 Hexo

$ npm install -g hexo-cli

阅读全文 »
123
铭铭GE

铭铭GE

24 日志
27 标签
RSS
GitHub Weibo
© 2018 铭铭GE
由 Hexo 强力驱动
主题 - NexT.Pisces
本文总阅读量 次