@react-pakistan/eslint-config-shared
Version:
Central configs for all lint configs
43 lines (42 loc) • 1.06 kB
Plain Text
{
"extends": [
"../common-js/.eslintrc",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"settings": {
"import/extensions": [".js",".jsx",".ts",".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts",".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".js",".jsx",".ts",".tsx"]
}
}
},
"rules": {
"indent": "off",
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/explicit-function-return-type": ["error", {
"allowExpressions": true,
"allowTypedFunctionExpressions": true,
"allowHigherOrderFunctions": true
}],
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/array-type": [
"error",
{
"default": "generic"
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/type-annotation-spacing": ["error", {
"before": false
}]
}
}