1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-29 04:28:09 +01:00

[ticket/16775] Switch from xo to eslint for JavaScript linting

PHPBB3-16775
This commit is contained in:
Marc Alexander 2021-05-23 21:38:12 +02:00
parent 66499cfd64
commit 47ada71b3a
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
2 changed files with 64 additions and 7617 deletions

7612
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,21 +6,22 @@
"directories": {
"doc": "docs"
},
"xo": {
"ignores": [
"./**/adm/style/admin.js",
"./**/adm/style/ajax.js",
"./**/adm/style/permissions.js",
"./**/adm/style/timezone.js",
"./**/adm/style/tooltip.js",
"./**/assets/javascript/core.js",
"./**/assets/javascript/editor.js",
"./**/assets/javascript/installer.js",
"./**/assets/javascript/plupload.js",
"./**/styles/prosilver/template/ajax.js",
"./**/styles/prosilver/template/forum_fn.js",
"./**/phpbb/**/*.js",
"./**/tests/**/*.js"
"eslintConfig": {
"ignorePatterns": [
"phpBB/adm/style/admin.js",
"phpBB/adm/style/ajax.js",
"phpBB/adm/style/permissions.js",
"phpBB/adm/style/timezone.js",
"phpBB/adm/style/tooltip.js",
"phpBB/assets/javascript/core.js",
"phpBB/assets/javascript/editor.js",
"phpBB/assets/javascript/installer.js",
"phpBB/assets/javascript/plupload.js",
"phpBB/assets/javascript/*.min.js",
"phpBB/styles/prosilver/template/ajax.js",
"phpBB/styles/prosilver/template/forum_fn.js",
"phpBB/phpbb/**/*.js",
"phpBB/tests/**/*.js"
],
"rules": {
"quotes": [
@ -40,40 +41,6 @@
"error",
"always"
],
"object-curly-spacing": [
"error",
"always"
],
"multiline-comment-style": "off",
"computed-property-spacing": "off",
"space-in-parens": "off",
"capitalized-comments": "off",
"no-lonely-if": "off",
"unicorn/prefer-module": "off"
},
"env": [
"es6",
"browser",
"node",
"jquery"
]
},
"eslintConfig": {
"extends": "xo",
"rules": {
"quotes": [
"error",
"single"
],
"comma-dangle": [
"error",
"always-multiline"
],
"block-spacing": "error",
"array-bracket-spacing": [
"error",
"always"
],
"multiline-comment-style": "off",
"computed-property-spacing": "off",
"space-in-parens": "off",
@ -132,6 +99,7 @@
"devDependencies": {
"autoprefixer": "^10.2.5",
"cssnano": "^5.0.2",
"eslint": "^7.27.0",
"gulp": "^4.0.2",
"gulp-concat-css": "^3.1.0",
"gulp-postcss": "^9.0.0",
@ -139,7 +107,6 @@
"postcss": "^8.2.15",
"postcss-sorting": "^6.0.0",
"stylelint": "^13.13.1",
"stylelint-order": "^4.1.0",
"xo": "^0.40.1"
"stylelint-order": "^4.1.0"
}
}