mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-25 07:56:40 +00:00
007cc5ab7c
Update the ESLint config to favor ES6 strings where variables or string concatenation is used and fix *all* offenders automatically via: eslint \ --cache \ --max-warnings 0 \ --report-unused-disable-directives \ --fix \ src tests Change-Id: I1a9345162348e5ded21d541e7a2ce251ea72ab5a
53 lines
1,007 B
JSON
53 lines
1,007 B
JSON
{
|
|
"parserOptions": {
|
|
"sourceType": "script",
|
|
"ecmaVersion": "5"
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"jquery": true,
|
|
"commonjs": false,
|
|
"qunit": true
|
|
},
|
|
"rules": {
|
|
"camelcase": 0,
|
|
"spaced-comment": 0,
|
|
"space-in-parens": 0,
|
|
"block-spacing": 0,
|
|
"object-curly-spacing": 0,
|
|
"eol-last": 0,
|
|
"semi": 0,
|
|
"comma-spacing": 0,
|
|
"space-before-function-paren": 0,
|
|
"space-before-blocks": 0,
|
|
"space-infix-ops": 0,
|
|
"vars-on-top": 0,
|
|
"semi-spacing": 0,
|
|
"key-spacing": 0,
|
|
"quotes": 0,
|
|
"no-return-assign": 0,
|
|
"keyword-spacing": 0,
|
|
"eqeqeq": 0,
|
|
"yoda": 0,
|
|
"computed-property-spacing": 0,
|
|
"no-unused-expressions": 0,
|
|
"no-sequences": 0,
|
|
"array-bracket-spacing": 0,
|
|
"no-void": 0,
|
|
"no-unused-vars": 0,
|
|
"no-undef": 0,
|
|
"no-var": 0,
|
|
"prefer-template": 0,
|
|
"quote-props": 0,
|
|
"curly": 0,
|
|
"one-var": 0,
|
|
"no-console": 0,
|
|
"no-underscore-dangle": 0,
|
|
"wrap-iife": 0,
|
|
"new-parens": 0,
|
|
"no-fallthrough": 0,
|
|
"no-implicit-coercion": 0,
|
|
"no-catch-shadow": 0
|
|
}
|
|
}
|