lint: no-var (#3681)

This commit is contained in:
Alexander Lichter 2018-08-10 21:46:53 +02:00 committed by Clark Du
parent c4792d247b
commit b2d608746d
5 changed files with 9 additions and 6 deletions

View File

@ -56,8 +56,11 @@ module.exports = {
// No async function without await
'require-await': 2,
// Force dot notation when possible
'dot-notation': 2,
'no-var': 2,
// Do not allow console.logs etc...
'no-console': 2,
'space-before-function-paren': [2, {

View File

@ -5,7 +5,7 @@ const router = express.Router()
// Transform req & res to have the same API as express
// So we can use res.status() & res.json()
var app = express()
const app = express()
router.use((req, res, next) => {
Object.setPrototypeOf(req, app.request)
Object.setPrototypeOf(res, app.response)

View File

@ -41,7 +41,7 @@ View the full documentation at https://tailwindcss.com.
|
*/
var colors = {
const colors = {
'transparent': 'transparent',
'black': '#222b2f',

View File

@ -21,7 +21,7 @@ export default {
}),
methods: {
addTodo(e) {
var text = e.target.value
const text = e.target.value
if (text.trim()) {
this.$store.commit('todos/add', { text })
}

View File

@ -41,7 +41,7 @@ View the full documentation at https://tailwindcss.com.
|
*/
var colors = {
const colors = {
'transparent': 'transparent',
'black': '#222b2f',