@super-protocol/eslint-config-typescript
v2.0.1
Published
Shared ESLint and Typescript configs
Downloads
706
Readme
Shared ESLint and Typescript configuration
Integrate into new project
- Turn off VS code extention "Prettier" for the project if you use it
- Create file .vscode/settings.json
- add
"prettier.enable": false
to the json
- Install this package as devDependency
# with npm
$ npm i -D @super-protocol/eslint-config-typescript
- Use ESLint config in your project
Add .eslintrc.json
file based on your project type:
For CommonJS projects:
{
"extends": [
"@super-protocol/eslint-config-typescript/eslint/node-cjs"
]
}
For ESM projects:
{
"extends": [
"@super-protocol/eslint-config-typescript/eslint/node-esm"
]
}
- Use Typescript config in your project
Add the following tsconfig.json
file based on your project type:
For CommonJS projects:
{
"extends": "@super-protocol/eslint-config-typescript/tsconfig/node-cjs"
}
For ESM projects:
{
"extends": "@super-protocol/eslint-config-typescript/tsconfig/node-esm"
}