0.2.0 • Published 4 years ago

msds-styleguide v0.2.0

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

Why

Try to standardize styleguide & waste of time (prettier)

and dumb errors (eslint:recommende with maybe tweaks)

Install

npm i -D msds-styleguide

Prettier

npm i -D prettier

In .prettierrc.js at root

module.exports = {
	...require('msds-styleguide').prettier,
};

In .prettierignore at root

package.json
# other stuff if you want

Eslint

npm i -D eslint

In .eslintrc.js at root

const defaultConf = require('msds-styleguide').eslint;
module.exports = {
	...defaultConf,
	env: {
		...defaultConf.env, // es6 is the default, RTFM if more is needed
		node: true, // for example if you use node
		browser: true, // or the browser
	},
};

Don't hesitate to look at the eslint doc https://eslint.org/docs/user-guide/configuring#specifying-environments if more is needed