[ticket/13713] Add eslint config to package.json

PHPBB3-13713
This commit is contained in:
Marc Alexander 2021-05-17 22:14:37 +02:00
parent a86d9699a5
commit 5c2ada19c8
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -56,6 +56,44 @@
"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",
"capitalized-comments": "off",
"object-curly-spacing": [
"error",
"always"
],
"no-lonely-if": "off",
"unicorn/prefer-module": "off",
"space-before-function-paren": [
"error",
"never"
]
},
"env": {
"es6": true,
"browser": true,
"node": true,
"jquery": true
}
},
"browserslist": [
"> 1%",
"not ie 11",