blob: 766d2114dacd272f87c3d35dd6ce4faa7fb6624a [file] [log] [blame]
dpapadff82d512017-05-25 18:40:151// 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
5module.exports = {
6 'root': true,
7 'env': {
8 'browser': true,
9 'es6': true
10 },
11 'rules': {
12 // Enabled checks.
13 'no-extra-semi': 'error',
dpapad728cff0c2017-06-01 01:06:4214 'no-new-wrappers': 'error',
dpapad2674f9282017-05-31 19:40:3915 '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 ],
dpapad1e511b12017-05-31 03:31:2623 'semi': ['error', 'always'],
dpapad2674f9282017-05-31 19:40:3924
dpapadff82d512017-05-25 18:40:1525 // TODO(dpapad): Add more checks according to our styleguide.
26 },
27};