jscs-preset-outeredge
v1.0.0
Published
This repository contains the coding standards used by outer/edge with rules for:
Downloads
1
Readme
outer/edge Coding Standards
This repository contains the coding standards used by outer/edge with rules for:
- PHPCS
- JSCS
PHP
First be sure to have PHPCS available
$ composer global require "squizlabs/php_codesniffer=*"
Then add this repository to your composer.json
{
"require-dev": {
"outeredge/coding-standards": "~1.0.0"
}
}
Then you can add the outer/edge coding standard to your phpcs.xml
<?xml version="1.0"?>
...
<config name="installed_paths" value="vendor/outeredge/coding-standards"/>
<rule ref="OuterEdge"/>
...
</xml>
Running PHPCS tests
$ ~/.composer/vendor/bin/phpcs .
Running PHPCS code fixer
$ ~/.composer/vendor/bin/phpcbf .
Javascript
Add this repository to your package.json file
{
"devDependencies": {
"jscs": "~3.0.6",
"jscs-preset-outeredge": "~1.0.0"
}
}
Then use set your prefix to outeredge
in your own .jscsrc file.
{
"preset": "outeredge"
}