eslint-config-mavenlint-react v2.0.0
Mavenlint
Mavenlink Ruby and Javascript linting rules.
Usage
How to use the Mavenlint lint rules for Javascript or Ruby projects.
Javascript
Install one of the Mavenlint ESLint configurations as a dev dependency.
yarn add eslint-config-mavenlint --devThen, extend mavenlint in your .eslintrc file.
{
"extends": "mavenlint"
}For React linting use eslint-config-mavenlint-react and mavenlint-react instead.
Ruby
Add Mavenlint to your Gemfile. For a Rails project, it may make sense to add it to the development group.
gem "mavenlint", git: "https://github.com/mavenlink/mavenlint"Then, inherit from this gem in your .rubocop.yml.
inherit_gem:
mavenlint: rubocop.ymlIf you also want the custom lint rules, require the gem again from your .rubocop.yml:
require:
- mavenlintDeveloping
ESLint Packages
For our NPM packages, we use yarn workspaces to publish multiple packages.
Install dependencies for all packages by running the following from the root of the project:
yarn installRun the tests with:
yarn testTo publish changed packages, first login:
npm loginTo publish alpha versions for testing in other applications, run:
yarn publish-canaryTo publish release versions, run:
yarn publish-packagesYou will be prompted to select new versions for each changed package. Commits and tags will be generated for each and their version numbers will be updated.
Ruby Gem
Install dependencies by running the following from the root of the project:
bundle installRun the tests with:
rspecTo publish a new version, first update the mavenlint.gemspec file with the new version. And then build and publish the gem with:
gem build mavenlint.gemspec
gem publish mavenlint-<VERSION NUMBER>.gemNote that <VERSION NUMBER> above has to be replaced with the actual version number that you're releasing.
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago