Miss any of our Open RFC calls?Watch the recordings here! »

@krusemedien/codestyle

1.0.9 • Public • Published

KruseMedien code style

Install

First create a package.json if not exists:

{
    "private": true
}

Now run the following command:

npm install @krusemedien/codestyle --dev

Initialisation

To initialize the project simple run the following command:

./node_modules/.bin/codestyle init

After initialising the project run:

composer install

Code style check

To check the codestyle run the desired npm script:

npm run lint

To run codesniffer and to display the codesniffer rule names add the -s argument:

npm run lint:php . -- -s

Help

If you want to set custom codesniffer or eslint rules, you may find more helpful examples:

Code style fix

To fix the codestyle run the desired npm script:

npm run fix

Keywords

Install

npm i @krusemedien/codestyle

DownloadsWeekly Downloads

5

Version

1.0.9

License

MIT

Unpacked Size

34.2 kB

Total Files

20

Last publish

Collaborators

  • avatar