From e2841630149e4f597e26f02dad046c1dab86f242 Mon Sep 17 00:00:00 2001 From: Stephen Niedzielski Date: Mon, 19 Mar 2018 14:44:14 -0500 Subject: [PATCH] Hygiene: use consistent ESLint severity syntax Bug: T165036 Change-Id: I43a500fceb8179d30240dbec8ed56f8d4c7551e9 --- .eslintrc.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index e75af560e..1f300687c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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: diff --git a/package.json b/package.json index 6c556f222..1afbcc42b 100644 --- a/package.json +++ b/package.json @@ -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",