Set razzle to use eslint, drop tslint.json

This commit is contained in:
Tom Russell 2020-04-09 15:09:34 +01:00
parent ab3f0c4ce2
commit 8dc4a387a8
2 changed files with 15 additions and 20 deletions

View File

@ -1,5 +1,19 @@
module.exports = { 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) => { modify: (config, { target, dev }, webpack) => {
// load webfonts // load webfonts
rules = config.module.rules || []; rules = config.module.rules || [];

View File

@ -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
}
}