eslint-config-vighnesh153
v0.4.7
Published
ESLint's configuration based on my preferences. No need to install any additional deps like `eslint` as this package comes bundled with it.
Downloads
58
Maintainers
Readme
eslint-config-vighnesh153
ESLint's configuration based on my preferences. No need to install any additional deps like eslint
as this package
comes bundled with it.
This only works within a Typescript project
Prerequisites
- Install and configure typescript
npm install -D typescript
- Create
tsconfig.json
file
You can also look at my @vighnesh153/tsconfig package
Installation
npm install -D eslint-config-vighnesh153
Usage
- Add the following to your
.eslintrc.js
file
module.exports = {
extends: ['vighnesh153/ts-base.eslintrc'],
parserOptions: {
project: './tsconfig.json',
},
};
- Create a
.eslintignore
file and add the following to it
*.js
Variants
You can use different variants of the configurations in different types of projects
- Pure typescript project
module.exports = {
extends: ['vighnesh153/ts-base.eslintrc'],
parserOptions: {
project: './tsconfig.json',
},
};
- ReactJS typescript library
module.exports = {
extends: ['vighnesh153/react-ts-library.eslintrc'],
parserOptions: {
project: './tsconfig.json',
},
};
- NextJS typescript app
module.exports = {
extends: ['vighnesh153/next-ts.eslintrc'],
parserOptions: {
project: './tsconfig.json',
},
};