Skip to content

Instantly share code, notes, and snippets.

@nucab
Last active January 10, 2019 13:38
Show Gist options
  • Save nucab/4334de0666ae972762e3720fee8e8975 to your computer and use it in GitHub Desktop.
Save nucab/4334de0666ae972762e3720fee8e8975 to your computer and use it in GitHub Desktop.
no conflict with prettier config
{
"extends": [
"tslint:recommended",
"tslint-react",
"tslint-eslint-rules",
"tslint-config-airbnb",
"tslint-config-prettier"
],
"defaultSeverity": "error",
"jsRules": {},
"rules": {
// "quotemark": [true, "double", "jsx-double"],
"ordered-imports": false,
"object-literal-sort-keys": false,
"import-name": false,
// "arrow-parens": [true, "ban-single-arg-parens"],
"no-empty-interface": false,
"no-unused-expression": true,
"comment-format": false,
// "semicolon": [true, "always", "ignore-interfaces"],
// "trailing-comma": [
// true,
// {
// "multiline": {
// "objects": "always",
// "arrays": "always",
// "functions": "ignore",
// "typeLiterals": "ignore"
// }
// }
// ],
"no-shadowed-variable": false,
"align": false,
"ban": false,
"class-name": true,
"curly": true,
// "eofline": true,
"forin": true,
// "indent": [true, "spaces", 2],
"interface-name": [true, "never-prefix"],
"jsdoc-format": true,
"jsx-no-lambda": false,
"jsx-no-multiline-js": false,
"no-boolean-literal-compare": true,
"label-position": true,
// "max-line-length": [true, 120],
"member-ordering": false,
"no-any": false,
"no-arg": true,
"no-switch-case-fall-through": true,
"switch-default": true,
"triple-equals": [true, "allow-null-check"],
// "typedef": [true, "parameter", "property-declaration"],
// "typedef-whitespace": [
// true,
// {
// "call-signature": "nospace",
// "index-signature": "nospace",
// "parameter": "nospace",
// "property-declaration": "nospace",
// "variable-declaration": "nospace"
// }
// ],
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-pascal-case"
]
// "whitespace": [
// true,
// "check-branch",
// "check-decl",
// "check-module",
// "check-operator",
// "check-separator",
// "check-type",
// "check-typecast"
// ]
},
"rulesDirectory": [],
"linterOptions": {
"exclude": ["i18n", "src/serviceWorker.ts"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment