Merge branch 'release/eslintrule'
Showing
7 changed files
with
29 additions
and
4 deletions
... | @@ -2,6 +2,8 @@ | ... | @@ -2,6 +2,8 @@ |
2 | 2 | ||
3 | 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. | 3 | 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. |
4 | 4 | ||
5 | ### [1.3.1](https://gitlab.zb100.com/templates/mui-template/compare/v1.3.0...v1.3.1) (2019-12-20) | ||
6 | |||
5 | ## [1.3.0](https://gitlab.zb100.com/templates/mui-template/compare/v1.2.2...v1.3.0) (2019-12-17) | 7 | ## [1.3.0](https://gitlab.zb100.com/templates/mui-template/compare/v1.2.2...v1.3.0) (2019-12-17) |
6 | 8 | ||
7 | 9 | ... | ... |
... | @@ -2,6 +2,25 @@ | ... | @@ -2,6 +2,25 @@ |
2 | "parser": "@typescript-eslint/parser", | 2 | "parser": "@typescript-eslint/parser", |
3 | "plugins": ["@typescript-eslint"], | 3 | "plugins": ["@typescript-eslint"], |
4 | "extends": ["airbnb-base", "plugin:@typescript-eslint/recommended"], | 4 | "extends": ["airbnb-base", "plugin:@typescript-eslint/recommended"], |
5 | "rules": { | ||
6 | "no-restricted-globals": "off", | ||
7 | "no-restricted-properties": "off", | ||
8 | "import/extensions": [ | ||
9 | "error", | ||
10 | "ignorePackages", | ||
11 | { | ||
12 | "js": "never", | ||
13 | "ts": "never" | ||
14 | } | ||
15 | ] | ||
16 | }, | ||
17 | "settings": { | ||
18 | "import/resolver": { | ||
19 | "node": { | ||
20 | "extensions": [".js", ".ts"] | ||
21 | } | ||
22 | } | ||
23 | }, | ||
5 | "globals": { | 24 | "globals": { |
6 | "window": true, | 25 | "window": true, |
7 | "document": true, | 26 | "document": true, | ... | ... |
... | @@ -6,7 +6,7 @@ const ts = require('gulp-typescript') | ... | @@ -6,7 +6,7 @@ const ts = require('gulp-typescript') |
6 | const dist = 'miniprogram_dist' | 6 | const dist = 'miniprogram_dist' |
7 | const demoDir = 'demo' | 7 | const demoDir = 'demo' |
8 | const lessFiles = ['./src/index.less'] | 8 | const lessFiles = ['./src/index.less'] |
9 | const tsFiles = ['./src/index.ts'] | 9 | const tsFiles = ['./src/*.ts'] |
10 | 10 | ||
11 | const tsProject = ts.createProject('tsconfig.json') | 11 | const tsProject = ts.createProject('tsconfig.json') |
12 | 12 | ... | ... |
... | @@ -4,6 +4,7 @@ | ... | @@ -4,6 +4,7 @@ |
4 | "./node_modules/miniprogram-api-typings" | 4 | "./node_modules/miniprogram-api-typings" |
5 | ], | 5 | ], |
6 | "lib": ["ES6", "ES7"], | 6 | "lib": ["ES6", "ES7"], |
7 | "target": "es2017" | 7 | "target": "es2017", |
8 | "module": "CommonJS" | ||
8 | } | 9 | } |
9 | } | 10 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment