mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/16775] Switch from xo to eslint for JavaScript linting
PHPBB3-16775
This commit is contained in:
parent
66499cfd64
commit
47ada71b3a
2 changed files with 64 additions and 7617 deletions
7612
package-lock.json
generated
7612
package-lock.json
generated
File diff suppressed because it is too large
Load diff
69
package.json
69
package.json
|
@ -6,21 +6,22 @@
|
||||||
"directories": {
|
"directories": {
|
||||||
"doc": "docs"
|
"doc": "docs"
|
||||||
},
|
},
|
||||||
"xo": {
|
"eslintConfig": {
|
||||||
"ignores": [
|
"ignorePatterns": [
|
||||||
"./**/adm/style/admin.js",
|
"phpBB/adm/style/admin.js",
|
||||||
"./**/adm/style/ajax.js",
|
"phpBB/adm/style/ajax.js",
|
||||||
"./**/adm/style/permissions.js",
|
"phpBB/adm/style/permissions.js",
|
||||||
"./**/adm/style/timezone.js",
|
"phpBB/adm/style/timezone.js",
|
||||||
"./**/adm/style/tooltip.js",
|
"phpBB/adm/style/tooltip.js",
|
||||||
"./**/assets/javascript/core.js",
|
"phpBB/assets/javascript/core.js",
|
||||||
"./**/assets/javascript/editor.js",
|
"phpBB/assets/javascript/editor.js",
|
||||||
"./**/assets/javascript/installer.js",
|
"phpBB/assets/javascript/installer.js",
|
||||||
"./**/assets/javascript/plupload.js",
|
"phpBB/assets/javascript/plupload.js",
|
||||||
"./**/styles/prosilver/template/ajax.js",
|
"phpBB/assets/javascript/*.min.js",
|
||||||
"./**/styles/prosilver/template/forum_fn.js",
|
"phpBB/styles/prosilver/template/ajax.js",
|
||||||
"./**/phpbb/**/*.js",
|
"phpBB/styles/prosilver/template/forum_fn.js",
|
||||||
"./**/tests/**/*.js"
|
"phpBB/phpbb/**/*.js",
|
||||||
|
"phpBB/tests/**/*.js"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"quotes": [
|
"quotes": [
|
||||||
|
@ -40,40 +41,6 @@
|
||||||
"error",
|
"error",
|
||||||
"always"
|
"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",
|
"multiline-comment-style": "off",
|
||||||
"computed-property-spacing": "off",
|
"computed-property-spacing": "off",
|
||||||
"space-in-parens": "off",
|
"space-in-parens": "off",
|
||||||
|
@ -132,6 +99,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^10.2.5",
|
"autoprefixer": "^10.2.5",
|
||||||
"cssnano": "^5.0.2",
|
"cssnano": "^5.0.2",
|
||||||
|
"eslint": "^7.27.0",
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"gulp-concat-css": "^3.1.0",
|
"gulp-concat-css": "^3.1.0",
|
||||||
"gulp-postcss": "^9.0.0",
|
"gulp-postcss": "^9.0.0",
|
||||||
|
@ -139,7 +107,6 @@
|
||||||
"postcss": "^8.2.15",
|
"postcss": "^8.2.15",
|
||||||
"postcss-sorting": "^6.0.0",
|
"postcss-sorting": "^6.0.0",
|
||||||
"stylelint": "^13.13.1",
|
"stylelint": "^13.13.1",
|
||||||
"stylelint-order": "^4.1.0",
|
"stylelint-order": "^4.1.0"
|
||||||
"xo": "^0.40.1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue