mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-04-12 14:40:47 +08:00
fix: lint config
This commit is contained in:
parent
7151ef90c6
commit
89faa89f91
@ -1,4 +1,4 @@
|
||||
const mdLoader = require('./NaiveUIMdLoader')
|
||||
// const mdLoader = require('./NaiveUIMdLoader')
|
||||
const marked = require('marked')
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
|
@ -50,7 +50,7 @@
|
||||
>
|
||||
<slot name="demo" />
|
||||
</div>
|
||||
<template v-slot:footer v-if="showCode">
|
||||
<template v-if="showCode" v-slot:footer>
|
||||
<n-scrollbar>
|
||||
<slot name="code" />
|
||||
</n-scrollbar>
|
||||
|
@ -9,7 +9,7 @@
|
||||
"demo": "cross-env NODE_ENV=development && gulp --gulpfile build/gulpfile.js build && webpack-dev-server --config build/webpack.demo.js",
|
||||
"dev": "cross-env NODE_ENV=development && webpack-dev-server --config build/webpack.dev.js",
|
||||
"serve": "npm run dev",
|
||||
"lint": "eslint packages/**/*.{js,vue} test/**/*.{js,vue} build/**/*.{js,vue} demo/**/*.{js,vue} --quiet --no-error-on-unmatched-pattern && stylelint \"styles/**/*.scss\"",
|
||||
"lint": "eslint --quiet --no-error-on-unmatched-pattern \"packages/**/*.{js,vue}\" \"test/**/*.{js,vue}\" \"build/**/*.{js,vue}\" \"demo/**/*.{js,vue}\"",
|
||||
"lint-style": "stylelint \"styles/**/*.scss\" --fix",
|
||||
"test": "cross-env NODE_ENV=development BABEL_ENV=test karma start test/unit/karma.conf.js",
|
||||
"test-cov": "cross-env NODE_ENV=development BABEL_ENV=test karma start test/unit/karma.conf.js && http-server test/unit/coverage",
|
||||
|
10
think.md
10
think.md
@ -96,6 +96,16 @@ Dropdown Submenu 定位问题
|
||||
## 2019.12.20
|
||||
Anchor Bug 复现 at typography
|
||||
|
||||
## 2019.12.23
|
||||
Damn eslint
|
||||
```
|
||||
What fixed it for me was using double quotes and an escaping slash like so:
|
||||
"lint": "eslint \"**/*.{js,jsx}\" --quiet",
|
||||
|
||||
Previously, it would not work with single quotes:
|
||||
"lint": "eslint '**/*.{js,jsx}' --quiet",
|
||||
```
|
||||
|
||||
## TODO
|
||||
|
||||
issue fix, add delay prop
|
||||
|
Loading…
x
Reference in New Issue
Block a user