Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Marstyle

Write code the Martian way (with style)!

MarsBased code linter rules for Ruby and Typescript.

Rubocop install instructions

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

ESLint install instructions

Install the dependency

npm i @marsbased/eslint-config-marsbased --save-dev

Import the rules in your .eslintrc file

TypeScript

{
  "extends": ["@marsbased/eslint-config-marsbased"]
}

Angular

{
  "extends": ["@marsbased/eslint-config-marsbased/angular"]
}

React

{
  "extends": ["@marsbased/eslint-config-marsbased/react"]
}

Prettier install instructions

Option 1

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');

Option 2

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

About

MarsBased code linter rules for Ruby and Typescript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published