Write code the Martian way (with style)!
MarsBased code linter rules for Ruby and Typescript.
To add a martian .rubocop.yml into your project, download the file directly from Github executing this script in your Ruby project root folder:
curl https://raw.githubusercontent.com/MarsBased/marstyle/master/ruby/.rubocop.yml > .rubocop.yml
Install the dependency
npm i @marsbased/eslint-config-marsbased --save-dev
Import the rules in your .eslintrc file
{
"extends": ["@marsbased/eslint-config-marsbased"]
}
{
"extends": ["@marsbased/eslint-config-marsbased/angular"]
}
{
"extends": ["@marsbased/eslint-config-marsbased/react"]
}
You can install it as a dependency
npm i @marsbased/marstyle-prettier --save-dev
Use it from your prettier.config.js file
module.exports = require('@marsbased/marstyle-prettier');
To add the prettier configuration file to your project, download the file directly from Github executing this script in your project root folder:
curl https://raw.githubusercontent.com/MarsBased/marstyle/master/prettier/prettier.config.js > prettier.config.js