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
@ -56,8 +56,11 @@ module.exports = {
|
|||||||
// No async function without await
|
// No async function without await
|
||||||
'require-await': 2,
|
'require-await': 2,
|
||||||
|
|
||||||
|
// Force dot notation when possible
|
||||||
'dot-notation': 2,
|
'dot-notation': 2,
|
||||||
|
|
||||||
|
'no-var': 2,
|
||||||
|
|
||||||
// Do not allow console.logs etc...
|
// Do not allow console.logs etc...
|
||||||
'no-console': 2,
|
'no-console': 2,
|
||||||
'space-before-function-paren': [2, {
|
'space-before-function-paren': [2, {
|
||||||
|
@ -5,7 +5,7 @@ const router = express.Router()
|
|||||||
|
|
||||||
// Transform req & res to have the same API as express
|
// Transform req & res to have the same API as express
|
||||||
// So we can use res.status() & res.json()
|
// So we can use res.status() & res.json()
|
||||||
var app = express()
|
const app = express()
|
||||||
router.use((req, res, next) => {
|
router.use((req, res, next) => {
|
||||||
Object.setPrototypeOf(req, app.request)
|
Object.setPrototypeOf(req, app.request)
|
||||||
Object.setPrototypeOf(res, app.response)
|
Object.setPrototypeOf(res, app.response)
|
||||||
|
@ -41,7 +41,7 @@ View the full documentation at https://tailwindcss.com.
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var colors = {
|
const colors = {
|
||||||
'transparent': 'transparent',
|
'transparent': 'transparent',
|
||||||
|
|
||||||
'black': '#222b2f',
|
'black': '#222b2f',
|
||||||
|
@ -21,7 +21,7 @@ export default {
|
|||||||
}),
|
}),
|
||||||
methods: {
|
methods: {
|
||||||
addTodo(e) {
|
addTodo(e) {
|
||||||
var text = e.target.value
|
const text = e.target.value
|
||||||
if (text.trim()) {
|
if (text.trim()) {
|
||||||
this.$store.commit('todos/add', { text })
|
this.$store.commit('todos/add', { text })
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ View the full documentation at https://tailwindcss.com.
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var colors = {
|
const colors = {
|
||||||
'transparent': 'transparent',
|
'transparent': 'transparent',
|
||||||
|
|
||||||
'black': '#222b2f',
|
'black': '#222b2f',
|
||||||
|
Loading…
Reference in New Issue
Block a user