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
53
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.jsonfile
You can also look at my @vighnesh153/tsconfig package
Installation
npm install -D eslint-config-vighnesh153Usage
- Add the following to your
.eslintrc.jsfile
module.exports = {
extends: ['vighnesh153/ts-base.eslintrc'],
parserOptions: {
project: './tsconfig.json',
},
};- Create a
.eslintignorefile and add the following to it
*.jsVariants
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',
},
};