1.0.5 • Published 3 years ago

es6-killer v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

es6-killer

use es-check to check ecmascript2015 for project, don't allow es6 to destory your project

全局扫描

在package.json里修改文件

    "scripts": {
		"es-check": "node node_modules/es6-killer/index.js"
	},

然后npm run es-check

commit扫描

在package.json里修改文件,当然你需要安装husky与lint-staged

	"husky": {
		"hooks": {
			"pre-commit": "lint-staged"
		}
	},
	"lint-staged": {
		"*.js": "node node_modules/es6-killer/index.js"
	},

use 'git commit' ,husky will tell you the files with problems

文件黑名单配置,需要被es-check忽略的文件

根目录添加.escheckignore,不可使用'./'写法,允许'/'或者'文件夹名开头',eg:/www/js/gallery,不添加该文件默认忽略node_modules

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago