dpapad | ff82d51 | 2017-05-25 18:40:15 | [diff] [blame] | 1 | // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | module.exports = { |
| 6 | 'root': true, |
| 7 | 'env': { |
| 8 | 'browser': true, |
| 9 | 'es6': true |
| 10 | }, |
| 11 | 'rules': { |
| 12 | // Enabled checks. |
| 13 | 'no-extra-semi': 'error', |
dpapad | 728cff0c | 2017-06-01 01:06:42 | [diff] [blame] | 14 | 'no-new-wrappers': 'error', |
dpapad | 2674f928 | 2017-05-31 19:40:39 | [diff] [blame] | 15 | 'no-restricted-properties': ['error', { |
| 16 | 'object': 'document', |
| 17 | 'property': 'getElementById', |
| 18 | 'message': 'Use $(\'id\') or getSVGElement(\'id\') ' + |
| 19 | 'from chrome://resources/js/util.js instead of ' + |
| 20 | 'document.getElementById(\'id\')', |
| 21 | }, |
| 22 | ], |
dpapad | 1e511b1 | 2017-05-31 03:31:26 | [diff] [blame] | 23 | 'semi': ['error', 'always'], |
dpapad | 2674f928 | 2017-05-31 19:40:39 | [diff] [blame] | 24 | |
dpapad | ff82d51 | 2017-05-25 18:40:15 | [diff] [blame] | 25 | // TODO(dpapad): Add more checks according to our styleguide. |
| 26 | }, |
| 27 | }; |