@guanghechen/eslint-config-ts
v6.0.0-alpha.8
Published
eslint config for ts project
Downloads
161
Maintainers
Readme
Eslint config for ts project.
Install
npm
npm install --save-dev @guanghechen/eslint-config-ts
yarn
yarn add --dev @guanghechen/eslint-config-ts
Usage
Use in .eslintrc.js
{ extends: ['@guanghechen/ts'], }
Example
See .eslintrc
{
"root": true,
"extends": [
"@guanghechen",
"@guanghechen/jsx",
"plugin:jest/recommended",
"prettier"
],
"plugins": ["import", "jest", "prettier"],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"rules": {
"import/no-internal-modules": [
2,
{
"allow": ["util"]
}
]
},
"overrides": [
{
"files": ["**/*.ts", "**/*tsx"],
"extends": [
"@guanghechen/jsx",
"@guanghechen/ts",
"plugin:jest/recommended"
]
}
]
}