Socket
Socket
Sign inDemoInstall

eslint-plugin-travel-planet

Package Overview
Dependencies
123
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-plugin-travel-planet

A plugin for the ESLint linter that adds more naming conventions for variables and functions.


Version published
Weekly downloads
43
decreased by-12.24%
Maintainers
1
Install size
14.1 MB
Created
Weekly downloads
 

Readme

Source

tp-lint

tp-lint is a plugin for the ESLint JavaScript linting utility. It introduces rules that add more naming conventions for variables, functions, classes, and methods.

Setup

  1. Open up a terminal or command prompt in the project to lint.
  2. Follow the instructions to install ESLint here.
  3. Install @developpement/tp-lint with the NPM package manager:
npm install @developpement/tp-lint
  1. Follow the instructions to add the plugin to your configuration file here.
  2. Follow the instructions to add the plugin rules to your configuration file here.

Then configure the rules you want to use under the rules section.

Rules

All rules support fixing errors automatically.

snake-case-variables

snake-case-variables ensures that all variables defined are in snake case, consisting of all lower case letters, with words separated by underscores (_s).

Good:

  • variable_name
  • variable
  • CONSTANT_NAME
  • ClassName (For when the old class syntax is used for defining a class.)

Bad:

  • variableName

camel-case-functions

camel-case-functions ensures that all functions, classes, and methods defined are in camel case, consisting of lower and upper case letters, with words separated by the letter changing to upper case.

Good:

  • variableName
  • variable

Bad:

  • variable_name

Keywords

FAQs

Last updated on 04 Jan 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc