|
|
@@ -45,11 +45,12 @@
|
|
|
},
|
|
|
"devDependencies": {
|
|
|
"@ckeditor/ckeditor5-dev-docs": "^7.4.1",
|
|
|
- "@ckeditor/ckeditor5-dev-lint": "^3.1.4",
|
|
|
"@ckeditor/ckeditor5-dev-tests": "^8.2.2",
|
|
|
+ "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",
|
|
|
"lerna": "^2.2.0",
|
|
|
"mgit2": "^0.7.2"
|
|
|
},
|
|
|
@@ -66,9 +67,21 @@
|
|
|
"url": "https://github.com/ckeditor/ckeditor5.git"
|
|
|
},
|
|
|
"scripts": {
|
|
|
+ "lint": "eslint --quiet '**/*.js'",
|
|
|
+ "precommit": "lint-staged",
|
|
|
"test": "node --max_old_space_size=4096 ./node_modules/.bin/ckeditor5-dev-tests --reporter=dots",
|
|
|
"install-optional-dependencies": "./scripts/install-optional-dependencies.sh",
|
|
|
"switch-to-dev-dev": "./scripts/switch-to-dev-dev.sh",
|
|
|
"build-and-publish-docs": "./scripts/docs/build-and-publish.js"
|
|
|
- }
|
|
|
+ },
|
|
|
+ "lint-staged": {
|
|
|
+ "**/*.js": [
|
|
|
+ "eslint --quiet"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "eslintIgnore": [
|
|
|
+ "build/**",
|
|
|
+ "coverage/**",
|
|
|
+ "packages/**"
|
|
|
+ ]
|
|
|
}
|