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

Commit f31518c

Browse files
committed
fix: add eslint config
1 parent 8e08129 commit f31518c

File tree

4 files changed

+31
-12
lines changed

4 files changed

+31
-12
lines changed

‎.github/demo.gif

1.25 MB
Loading[フレーム]

‎README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ This project is not only a vue-cli plugin but also a vue-cli preset. Have fun!
1010

1111
:us: English | [:cn: 简体中文](README.zh-CN.md)
1212

13+
## Example
14+
15+
A complete example project: [:zap: @codetrial/element-admin](https://github.com/codetrial/element-admin)
16+
17+
Live Preview: [:telescope: element-admin.now.sh](https://element-admin.now.sh)
18+
19+
![Screen Capture](.github/demo.gif)
20+
1321
## Getting Started
1422

1523
### Prerequisites
@@ -53,12 +61,6 @@ vue add @codetrial/element
5361

5462
The full documentation: [:book: codetrial.github.io/element-admin](https://codetrial.github.io/element-admin)
5563

56-
## Example
57-
58-
A complete example project: [:zap: @codetrial/element-admin](https://github.com/codetrial/element-admin)
59-
60-
Live Preview: [:telescope: element-admin.now.sh](https://element-admin.now.sh)
61-
6264
## Core Features
6365

6466
- :camera: Minimal dependencies

‎README.zh-CN.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010

1111
:cn: 简体中文 | [:us: English](README.md)
1212

13+
## 示例
14+
15+
一个使用该插件的完整示例:[:zap: @codetrial/element-admin](https://github.com/codetrial/element-admin)
16+
17+
在线预览:[:telescope: element-admin.now.sh](https://element-admin.now.sh)
18+
19+
![Screen Capture](.github/demo.gif)
20+
1321
## 入门指南
1422

1523
### 前置依赖
@@ -53,12 +61,6 @@ vue add @codetrial/element
5361

5462
完整的参考文档:[:book: codetrial.github.io/element-admin](https://codetrial.github.io/element-admin)
5563

56-
## 示例
57-
58-
一个使用该插件的完整示例:[:zap: @codetrial/element-admin](https://github.com/codetrial/element-admin)
59-
60-
在线预览:[:telescope: element-admin.now.sh](https://element-admin.now.sh)
61-
6264
## 核心功能
6365

6466
:camera: **最小依赖**:仅依赖 Vue 官方库及 ElementUI 组件库,未额外引入其它第三方库,为你提供自由发挥的空间。

‎template/structure/.eslintrc.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
extends: ['plugin:vue/essential', '@vue/standard'],
7+
rules: {
8+
'space-before-function-paren': 'off',
9+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
10+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
11+
},
12+
parserOptions: {
13+
parser: 'babel-eslint'
14+
}
15+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /