mirror of
https://github.com/wassname/talk.git
synced 2026-08-07 11:29:44 +08:00
lint js files, cleanup scripts (#1713)
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
["@babel/env", { targets: "last 2 versions, ie 11", modules: false }],
|
||||
"@babel/react"
|
||||
],
|
||||
plugins: [
|
||||
"@babel/syntax-dynamic-import",
|
||||
"@babel/react",
|
||||
],
|
||||
plugins: ["@babel/syntax-dynamic-import"],
|
||||
env: {
|
||||
"production": {
|
||||
"plugins": [],
|
||||
production: {
|
||||
plugins: [],
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
@@ -6,7 +6,13 @@
|
||||
"jsx": "preserve",
|
||||
"noEmit": true,
|
||||
"strictNullChecks": true,
|
||||
"lib": ["dom", "es7", "scripthost", "es2015", "esnext.asynciterable"],
|
||||
"lib": [
|
||||
"dom",
|
||||
"es7",
|
||||
"scripthost",
|
||||
"es2015",
|
||||
"esnext.asynciterable"
|
||||
],
|
||||
"baseUrl": "./",
|
||||
"paths": {
|
||||
"talk-admin/*": [
|
||||
@@ -38,4 +44,4 @@
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -5,10 +5,16 @@
|
||||
],
|
||||
"rules": {
|
||||
"jsx-no-multiline-js": false,
|
||||
"jsx-boolean-value": [true, "never"]
|
||||
"jsx-boolean-value": [
|
||||
true,
|
||||
"never"
|
||||
]
|
||||
},
|
||||
"jsRules": {
|
||||
"jsx-no-multiline-js": false,
|
||||
"jsx-boolean-value": [true, "never"]
|
||||
"jsx-boolean-value": [
|
||||
true,
|
||||
"never"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user