npm.io
7.1.1 • Published 2 years ago

@vic1707/eslint-config

Licence
MIT
Version
7.1.1
Deps
18
Size
10 kB
Vulns
0
Weekly
0

Eslint config

to use this package install it with

npm install --save-dev @vic1707/eslint-config eslint

and create an eslint.config.js file with the following content

import vic1707TSConfig from '@vic1707/eslint-config/eslint.ts.config.js';

export default vic1707Config;

If you're using typescript you'll want to add some extra rules to your tsconfig.json file

{
	// existing config
	"include": ["estlint.config.js" /* existing source dirs*/]
}

Here are the scripts I use to lint my code:

{
	"lint": "eslint .",
	"lint:fix": "eslint . --fix"
}

Original repo can be found here: https://github.com/vic1707/devconfig