mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-18 14:38:40 -09:00
Adjust eslint configuration (#389)
This commit is contained in:
parent
86416cebdf
commit
4e04d1c4b1
3 changed files with 13 additions and 10 deletions
|
|
@ -1 +1,6 @@
|
||||||
|
app/dist
|
||||||
|
app/node_modules
|
||||||
|
app/static
|
||||||
|
assets
|
||||||
|
build
|
||||||
dist
|
dist
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
dist
|
|
||||||
node_modules
|
|
||||||
16
package.json
16
package.json
|
|
@ -48,22 +48,22 @@
|
||||||
"react"
|
"react"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"yoda": 0,
|
"yoda": "off",
|
||||||
"semi": [
|
"semi": [
|
||||||
2,
|
"error",
|
||||||
"always"
|
"always"
|
||||||
],
|
],
|
||||||
"no-unused-vars": 2,
|
"no-unused-vars": "error",
|
||||||
"no-extra-semi": 2,
|
"no-extra-semi": "error",
|
||||||
"semi-spacing": [
|
"semi-spacing": [
|
||||||
2,
|
"error",
|
||||||
{
|
{
|
||||||
"before": false,
|
"before": false,
|
||||||
"after": true
|
"after": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"react/jsx-uses-react": 1,
|
"react/jsx-uses-react": "warn",
|
||||||
"react/jsx-uses-vars": 1
|
"react/jsx-uses-vars": "warn"
|
||||||
},
|
},
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaFeatures": {
|
"ecmaFeatures": {
|
||||||
|
|
@ -88,7 +88,7 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "webpack --watch",
|
"dev": "webpack --watch",
|
||||||
"lint": "eslint lib/ && eslint app/*.js",
|
"lint": "eslint .",
|
||||||
"build": "NODE_ENV=production webpack",
|
"build": "NODE_ENV=production webpack",
|
||||||
"test": "npm run lint",
|
"test": "npm run lint",
|
||||||
"start": "electron app",
|
"start": "electron app",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue