1.0.4 • Published 7 years ago

g48_eslint v1.0.4

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

g48_eslint

About this repo

Eslint is a tool to help improve the readability and quality of your code. Eslint provides "rules" that pertain to a variety of preferences. "g48_eslint" utitlizes many of these rules to hone in on indentation, white space, function length, and semi-colon use.

Lint your code!

Install eslint and g48_eslint.

npm install --save-dev eslint g48_eslint

Create an .eslintrc.js file, which will allow you select the "linter" you want to use.

touch .eslintrc.js

Configure your .eslintrc.js file and select which "linter you want to use.

module.exports = {
  extends: [
    './node_modules/g48_eslint/<LINTER CONFIG>/index.js'
  ]
}

Linter Configs:

  • Basics: '/basics'
  • Basics + semi-colons: '/basicsWithSemi'

Add a new script to package.json.

"scripts": {
  "lint": "eslint"
}

Lint your code by running this command.

npm run lint .

You will see error messages in your editor and in your terminal. You can resolve the errors by fixing the issues.

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago