[go: nahoru, domu]

blob: f973206d16831996ab66dc7396b5ddead29c2daf [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.
Dan Beam1a0d9dcb2019-01-08 09:05:3516 'brace-style': ['error', '1tbs'],
17 'curly': ['error', 'multi-line', 'consistent'],
dpapadff82d512017-05-25 18:40:1518 'no-extra-semi': 'error',
dpapad728cff02017-06-01 01:06:4219 'no-new-wrappers': 'error',
Christopher Lama5f2ad02018-12-05 10:05:5820 'no-restricted-properties': [
21 'error',
22 {
23 'object': 'document',
24 'property': 'getElementById',
25 'message': 'Use $(\'id\') or getSVGElement(\'id\') ' +
26 'from chrome://resources/js/util.js instead of ' +
27 'document.getElementById(\'id\')',
dpapad2674f9282017-05-31 19:40:3928 },
29 ],
dpapad1e511b12017-05-31 03:31:2630 'semi': ['error', 'always'],
dpapad2674f9282017-05-31 19:40:3931
dpapadff82d512017-05-25 18:40:1532 // TODO(dpapad): Add more checks according to our styleguide.
33 },
34};