From 3df07f3e9dc3f5c8e2972aaf3151c884a613fca8 Mon Sep 17 00:00:00 2001 From: Vajahath Ahmed Date: Mon, 29 Jan 2018 17:36:10 +0530 Subject: [PATCH] adds lint confs --- .prettierignore | 13 +++++++++++++ .prettierrc | 7 +++++++ .vscode/settings.json | 11 +++++++---- tslint.json | 7 ++++++- 4 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 .prettierignore create mode 100644 .prettierrc diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..68fdc6b --- /dev/null +++ b/.prettierignore @@ -0,0 +1,13 @@ +package.json +dist +src/views +src/public +node_modules +*.yaml +*.yml +*.sh +*.html +*.lock +*.ejs +*.*- +*.sql \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..ed0f756 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "trailingComma": "all", + "useTabs": true, + "singleQuote": true, + "tabWidth": 4, + "semi": true +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 832270b..3d072e3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,8 @@ { - "cSpell.words": [ - "sqlify" - ] -} \ No newline at end of file + "tslint.exclude": ["**/node_modules/**", "**/.roughs/**"], + "prettier.eslintIntegration": false, + "cSpell.words": [ + "sqlify", + ], + "cSpell.language": "en" +} diff --git a/tslint.json b/tslint.json index b686b47..8069950 100644 --- a/tslint.json +++ b/tslint.json @@ -2,7 +2,11 @@ "defaultSeverity": "error", "extends": ["tslint:recommended"], "jsRules": {}, + "linterOptions": { + "exclude": [] + }, "rules": { + "arrow-parens": false, "class-name": true, "comment-format": [true, "check-space"], "eofline": true, @@ -36,7 +40,8 @@ "ban-keywords", "allow-snake-case" ], - "prefer-const": true + "prefer-const": true, + "object-literal-sort-keys": false }, "rulesDirectory": [] }