AnyLint Configuration

Whilst the AnyLint doesn't need a configuration to work, you can optionally configure it, so it works the way you want it to.

Table of Contents

How configuration files are found

Configuring AnyLint

You configure AnyLint by creating a .anylint file, the contents of which have to be a valid JSON object.
In the JSON object, you can define the following properties:

Name Type Default Description
aliases object {} A list of file extensions which should be treated like other file extensions, e.g. {"php5": "php"} will enable PHP linting on .php5 files as well.
disable string array [] A list of file extensions which should not be linted, e.g. ["css", "py"] will disable CSS and Python linting. You can use this in combination with aliases in order to only lint PHP on .php5 but not on .php files, for example.
ignore string array [] A list of files and/or folders which should not be linted, e.g. ["ignored_folder/", "ignored_file.json"] will make AnyLint ignore the folder ignored_folder/ and the file ignored_file.json in the root folder. Wildcards are not supported.
python3 boolean false If true, python3 will be used for Python linting. Otherwise, python2 will be used.
php_has_html boolean true If true, PHP files will also undergo HTML linting.
html_has_js boolean true If true, HTML files will also undergo Javascript linting.
perl_severity string failure This will define the severity of Perl errors. Can be failure, warning or notice.
json_severity string warning This will define the severity of JSON errors. Can be failure, warning or notice.
xml_severity string warning This will define the severity of XML errors. Can be failure, warning or notice.
md_severity string notice This will define the severity of Markdown errors. Can be failure, warning or notice.

Configuring the linters

Language Configuration File Inline Configuration
JavaScript .jshintrc — JSON object — Properties Documentation
TypeScript tslint.json or tslint.yamlDocumentation Documentation
Lua .luacheckrcDocumentation Documentation
CSS .csslintrcDocumentation Documentation
YAML .yamllintDocumentation Documentation
Markdown .markdownlintrcDocumentation Documentation

Copyright (c) 2018, Hellsh · Privacy Policy