mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
Hygiene: use consistent ESLint severity syntax
Bug: T165036 Change-Id: I43a500fceb8179d30240dbec8ed56f8d4c7551e9
This commit is contained in:
parent
2221055bc1
commit
e284163014
|
@ -18,13 +18,13 @@
|
|||
"ReduxThunk": false
|
||||
},
|
||||
"rules": {
|
||||
"dot-notation": [ "error", { "allowKeywords": true } ],
|
||||
"dot-notation": [ 2, { "allowKeywords": true } ],
|
||||
"no-use-before-define": 0,
|
||||
"no-var": 2,
|
||||
"prefer-const": 1,
|
||||
"one-var": 0, // Interferes with prefer-const.
|
||||
"max-len": [
|
||||
"warn",
|
||||
1,
|
||||
{
|
||||
"tabWidth": 2,
|
||||
// Exclude by default:
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"build": "NODE_ENV=production webpack -p",
|
||||
"test:node": "node tests/node-qunit/run.js 'tests/node-qunit/**/*.test.js' | tap-dot",
|
||||
"test:dev": "grunt lint && npm run test:node",
|
||||
"test": " npm run check-built-assets && npm run test:dev && npm run doc",
|
||||
"test": "npm run check-built-assets && npm run test:dev && npm run doc",
|
||||
"doc": "jsdoc -c jsdoc.json",
|
||||
"doc:start": "nodemon --watch src --exec 'npm run doc'",
|
||||
"check-built-assets": "echo 'CHECKING BUILD SOURCES ARE COMMITED' && rm -rf test-build && mv resources/dist test-build && npm run build && diff -x '*.map' -qr test-build resources/dist && rm -rf test-build",
|
||||
|
|
Loading…
Reference in a new issue