From 8dc4a387a838d662a33f7c5d7693cb4c74cde2c7 Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Thu, 9 Apr 2020 15:09:34 +0100 Subject: [PATCH] Set razzle to use eslint, drop tslint.json --- app/razzle.config.js | 16 +++++++++++++++- app/tslint.json | 19 ------------------- 2 files changed, 15 insertions(+), 20 deletions(-) delete mode 100644 app/tslint.json diff --git a/app/razzle.config.js b/app/razzle.config.js index aa6348cd..721dcdae 100644 --- a/app/razzle.config.js +++ b/app/razzle.config.js @@ -1,5 +1,19 @@ module.exports = { - plugins: ['typescript'], + plugins: [ + { + name: "typescript", + options: { + useBabel: true, + useEslint: true, + forkTsChecker: { + tsconfig: "./tsconfig.json", + tslint: undefined, + watch: "./src", + typeCheck: true, + }, + }, + }, + ], modify: (config, { target, dev }, webpack) => { // load webfonts rules = config.module.rules || []; diff --git a/app/tslint.json b/app/tslint.json deleted file mode 100644 index 14a0111d..00000000 --- a/app/tslint.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "defaultSeverity": "warning", - "rules": { - "eofline": true, - "ordered-imports": [ - true, - { - "grouped-imports": true, - "groups": [ - { "name": "css", "match": "\\.css$", "order": 15 }, - { "name": "parent directories", "match": "^\\.\\.", "order": 20 }, - { "name": "current directory", "match": "^\\.", "order": 30 }, - { "name": "libraries", "match": ".*", "order": 10 } - ] - } - ], - "semicolon": true - } -} \ No newline at end of file