Set razzle to use eslint, drop tslint.json
This commit is contained in:
parent
ab3f0c4ce2
commit
8dc4a387a8
@ -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 || [];
|
||||
|
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user