From 370a874a0a1e9697b2fc1b369642a89bc0a78f6a Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Wed, 23 Jan 2019 23:34:13 -0800 Subject: [PATCH] fix: turn off react/no-array-index-key lint rule --- v1/.eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/v1/.eslintrc.js b/v1/.eslintrc.js index b2901d3b1423..a7464f1fda12 100644 --- a/v1/.eslintrc.js +++ b/v1/.eslintrc.js @@ -24,6 +24,7 @@ module.exports = { 'react/jsx-closing-bracket-location': OFF, // Formatting is left to Prettier. 'react/jsx-filename-extension': OFF, // Enable in future when migrating. 'react/jsx-one-expression-per-line': OFF, // Formatting is left to Prettier. + 'react/no-array-index-key': OFF, // It's ok if you use it for static content. 'react/no-danger': OFF, // Need this to inject scripts. 'react/no-multi-comp': OFF, // One component per file creates too many files. 'react/no-unescaped-entities': [ERROR, {forbid: ['>', '}']}],