mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
lint: no-var (#3681)
This commit is contained in:
parent
c4792d247b
commit
b2d608746d
@ -52,12 +52,15 @@ module.exports = {
|
||||
'destructuring': 'any',
|
||||
'ignoreReadBeforeAssign': false
|
||||
}],
|
||||
|
||||
|
||||
// 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, {
|
||||
|
@ -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)
|
||||
|
@ -41,7 +41,7 @@ View the full documentation at https://tailwindcss.com.
|
||||
|
|
||||
*/
|
||||
|
||||
var colors = {
|
||||
const colors = {
|
||||
'transparent': 'transparent',
|
||||
|
||||
'black': '#222b2f',
|
||||
|
@ -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 })
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ View the full documentation at https://tailwindcss.com.
|
||||
|
|
||||
*/
|
||||
|
||||
var colors = {
|
||||
const colors = {
|
||||
'transparent': 'transparent',
|
||||
|
||||
'black': '#222b2f',
|
||||
|
Loading…
Reference in New Issue
Block a user