linter icon indicating copy to clipboard operation
linter copied to clipboard

Allow lints to accept configurations

Open a14n opened this issue 7 years ago • 13 comments

It would be useful and nice to be able to customize some lints with parameter/configuration.

For instance:

linter:
  rules:
    - file_headers:
        pattern: '// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source code isgoverned by a BSD-style license that can be\n// found in the LICENSE file.'
    - prefer_const_declarations:
        local_variables: false

a14n avatar Feb 09 '18 10:02 a14n