|
|
@@ -7,13 +7,13 @@
|
|
|
"ckeditor5-lib"
|
|
|
],
|
|
|
"devDependencies": {
|
|
|
- "@ckeditor/ckeditor5-dev-lint": "^3.1.4",
|
|
|
"@ckeditor/ckeditor5-core": "^1.0.0-alpha.1",
|
|
|
"@ckeditor/ckeditor5-engine": "^1.0.0-alpha.1",
|
|
|
"del": "^2.2.0",
|
|
|
+ "eslint": "^4.8.0",
|
|
|
"eslint-config-ckeditor5": "^1.0.6",
|
|
|
- "gulp": "^3.9.1",
|
|
|
- "guppy-pre-commit": "^0.4.0",
|
|
|
+ "husky": "^0.14.3",
|
|
|
+ "lint-staged": "^4.2.3",
|
|
|
"lodash-cli": "^4"
|
|
|
},
|
|
|
"engines": {
|
|
|
@@ -32,5 +32,15 @@
|
|
|
"lang",
|
|
|
"src",
|
|
|
"theme"
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ "scripts": {
|
|
|
+ "lint": "eslint --quiet '**/*.js'",
|
|
|
+ "precommit": "lint-staged"
|
|
|
+ },
|
|
|
+ "lint-staged": {
|
|
|
+ "**/*.js": [
|
|
|
+ "eslint --quiet"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "eslintIgnore": [ "src/lib/**" ]
|
|
|
}
|