Skip to content
Snippets Groups Projects
Commit c4988c73 authored by Scott Zhu Reeves's avatar Scott Zhu Reeves
Browse files

chore: switch to eslint-plugin-drupal-contrib

eslint-config-drupal has some pain points (mostly due to React support
which we don't need) and no updates since Fall 2020.

Other notable changes:
- Bring over the .prettierrc.json from core
- Use ignores rather than only linting js/ckeditor5_plugins

References: #3458367
parent 75048a9c
No related branches found
No related tags found
1 merge request!9chore: switch to eslint-plugin-drupal-contrib
js/build
{
"extends": [
"drupal"
],
"extends": ["plugin:drupal-contrib/passing"],
"root": true
}
**/config/**/*.yml
{
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"overrides": [
{
"files": ["*.css"],
"options": {
"parser": "css",
"printWidth": 10000,
"singleQuote": false
}
}
]
}
......@@ -7,8 +7,8 @@
"scripts": {
"watch": "webpack --mode development --watch",
"build": "webpack",
"lint": "eslint js/ckeditor5_plugins/**/*.js",
"fix": "prettier --write js/ckeditor5_plugins/**/*.js",
"lint": "eslint .",
"fix": "eslint . --fix",
"changelog": "yarn conventional-changelog --preset conventionalcommits --release-count 2 | tail -n +2 | sed 's#https://git.drupal.org/project/ckeditor5_paste_filter/issues/#https://www.drupal.org/project/ckeditor5_paste_filter/issues/#g' | markdown-it",
"bump": "yarn version --new-version $(conventional-recommended-bump --preset conventionalcommits)",
"bump-unstable": "yarn version --new-version"
......@@ -17,8 +17,10 @@
"@ckeditor/ckeditor5-dev-utils": "^30.0.0",
"conventional-changelog-cli": "^4.1.0",
"conventional-recommended-bump": "^9.0.0",
"eslint-config-drupal": "^5.0.2",
"eslint": "8",
"eslint-plugin-drupal-contrib": "^2.0.3",
"markdown-it": "^14.1.0",
"prettier": "3",
"raw-loader": "^4.0.2",
"terser-webpack-plugin": "^5.2.0",
"webpack": "^5.51.1",
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment