blob: a9146e7d1a08a4f486503e3def3bc7f6df810861 [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,
Christopher Lama5f2ad02018-12-05 10:05:589 'es6': true,
10 },
11 'parserOptions': {
12 'ecmaVersion': 2017,
dpapadff82d512017-05-25 18:40:1513 },
14 'rules': {
15 // Enabled checks.
16 'no-extra-semi': 'error',
dpapad728cff0c2017-06-01 01:06:4217 'no-new-wrappers': 'error',
Christopher Lama5f2ad02018-12-05 10:05:5818 'no-restricted-properties': [
19 'error',
20 {
21 'object': 'document',
22 'property': 'getElementById',
23 'message': 'Use $(\'id\') or getSVGElement(\'id\') ' +
24 'from chrome://resources/js/util.js instead of ' +
25 'document.getElementById(\'id\')',
dpapad2674f9282017-05-31 19:40:3926 },
27 ],
dpapad1e511b12017-05-31 03:31:2628 'semi': ['error', 'always'],
dpapad2674f9282017-05-31 19:40:3929
dpapadff82d512017-05-25 18:40:1530 // TODO(dpapad): Add more checks according to our styleguide.
31 },
32};