@vic1707/eslint-config v6.0.2
Eslint config
to use this package install it with
npm install --save-dev @vic1707/eslint-config eslint
and create an .eslintrc.js
file with the following content
module.exports = {
root: true,
extends: ['@vic1707'],
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
};
If you're using typescript you'll want to add some extra rules to your tsconfig.json
file
{
// existing config
"include": [".eslintrc.js" /* existing source dirs*/]
}
Here are the scripts I use to lint my code:
{
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "eslint src --ext .ts,.tsx --fix"
}
Original repo can be found here: https://github.com/vic1707/devconfig
2 months ago
3 months ago
3 months ago
4 months ago
6 months ago
6 months ago
6 months ago
6 months ago
8 months ago
10 months ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago