0ad4801e by McLemore

Merge branch 'release/eslintrule'

2 parents f1590fc9 2a59d89e
......@@ -2,6 +2,8 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [1.3.1](https://gitlab.zb100.com/templates/mui-template/compare/v1.3.0...v1.3.1) (2019-12-20)
## [1.3.0](https://gitlab.zb100.com/templates/mui-template/compare/v1.2.2...v1.3.0) (2019-12-17)
......
### 组件简介
### 使用方法
### 开始开发
1. 本地执行`npm run dev`
......
......@@ -2,6 +2,25 @@
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["airbnb-base", "plugin:@typescript-eslint/recommended"],
"rules": {
"no-restricted-globals": "off",
"no-restricted-properties": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"ts": "never"
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts"]
}
}
},
"globals": {
"window": true,
"document": true,
......
......@@ -6,7 +6,7 @@ const ts = require('gulp-typescript')
const dist = 'miniprogram_dist'
const demoDir = 'demo'
const lessFiles = ['./src/index.less']
const tsFiles = ['./src/index.ts']
const tsFiles = ['./src/*.ts']
const tsProject = ts.createProject('tsconfig.json')
......
......@@ -4,6 +4,7 @@
"./node_modules/miniprogram-api-typings"
],
"lib": ["ES6", "ES7"],
"target": "es2017"
"target": "es2017",
"module": "CommonJS"
}
}
\ No newline at end of file
......
{
"name": "@zb100/mui-template",
"version": "1.3.0",
"version": "1.3.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"name": "@zb100/mui-template",
"version": "1.3.0",
"version": "1.3.1",
"description": "小程序组件模版",
"main": "index.js",
"scripts": {
......