2.0.1 • Published 18 days ago

eslint-config-client-shiwaforce v2.0.1

Weekly downloads
167
License
MIT
Repository
github
Last release
18 days ago

eslint-config-client-shiwaforce

Main concept, the idea behind the things below

code quality transformation

We want to work with beautiful, nicely formatted code, so with the help of eslint we aim to enforce it - as much as we can. In an ideal world everybody would write such high quality code. Until we reach this state to standardise code formatting the eslint plugin can be a great help.

Installation

npm install eslint eslint-config-client-shiwaforce --save-dev

Usage

If you've installed eslint-config-client-shiwaforce locally within your project create the eslint.config.js file at the root of your node project. (see details on the eslint page)

import eslintConfigClientShiwaforce from 'eslint-config-client-shiwaforce';
export default [
	eslintConfigClientShiwaforce,
	...
];

Run the linter by executing the command below:

./node_modules/.bin/eslint client/**/*.js

In case of a global installation the start the linter with...

eslint client/**/*.js

If running eslint gives a message indicating that running eslint --init is necessary then you created the .eslintrc file in the wrong place.

This command does NOT walk the entire dependency tree based on require-s or import-s, it only walks the file or files listed here. Of course, wild card characters can be used. For more information please visit the dedicated page at eslint (cli docs)

Extending/Overriding the config

Add the "rules" key to your config then add your additional/override rules. For example, if you want to change the "indent" and "eol-last" rules from default to your own add this:

import eslintConfigClientShiwaforce from 'eslint-config-client-shiwaforce';
export default [
	eslintConfigClientShiwaforce,
	{
		rules: {
			'indent': [2, 'space'],
			'eol-last': [0]
		}
	}
];

Additional information about rules

Eslint

2.0.1

18 days ago

2.0.0

18 days ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

3 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago