@marsbased/marstyle-typescript

MarsBased code linter rules for Ruby and Typescript

Showing:

Popularity

Downloads/wk

136

GitHub Stars

5

Maintenance

Last Commit

1mo ago

Contributors

9

Package

Dependencies

4

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial