Browse Source

enable eslint for the entire project

pull/4309/head
Singwai Chan 4 years ago
parent
commit
a57d1d8682
  1. 9
      .eslintrc
  2. 2
      package.json

9
.eslintrc

@ -9,13 +9,16 @@
},
"rules": {
"strict": 0,
"quotes": ["error", "single"],
"eol-last": ["error", "always"],
"quotes": ["warn", "single"],
"eol-last": ["warn", "always"],
"no-mixed-requires": [0],
"no-underscore-dangle": [0]
},
"overrides": [{
"files": ["*.ts"],
"parser": "@typescript-eslint/parser"
}]
}],
"ignorePatterns": [
"dist/*"
]
}

2
package.json

@ -98,7 +98,7 @@
"docs:build-vp": "vuepress build docs",
"docs:build": "npm run docs:api && npm run docs:build-vp",
"docs:deploy": "docs/deploy.sh",
"lint": "eslint src",
"lint": "eslint . --ext .ts,.js",
"check": "npm run lint && npm run test",
"build": "npm run check && run-s build:*",
"build:js": "grapesjs-cli build --targets=\"> 1%, ie 11, safari 8, not dead\" --statsOutput=\"stats.json\" --localePath=\"src/i18n/locale\"",

Loading…
Cancel
Save