1f61f21250
- add prettier to do formatting - add eslint-config-prettier to disable rules conflicting with prettier - remove eslint from grunt workflow - use lint-stage to lint and format on precommit - use eslint and prettier in travis directly - remove rules that are already part of the "recommended" ruleset That rational is that eslint and prettier should be run in Travis-CI, on commit and as IDE integration (highlighting errors directlry). They don't need to be run along with test-cases. Getting linting errors when running the tests because of missing semicolons is just annoying, but doesn't help the overall code-quality.
48 lines
878 B
Plaintext
48 lines
878 B
Plaintext
{
|
|
"extends": [
|
|
"../.eslintrc.js",
|
|
"plugin:es5/no-es2015",
|
|
"prettier"
|
|
],
|
|
"plugins": [
|
|
"es5"
|
|
],
|
|
"globals": {
|
|
"CompilerContext": true,
|
|
"Handlebars": true,
|
|
"handlebarsEnv": true,
|
|
"shouldCompileTo": true,
|
|
"shouldCompileToWithPartials": true,
|
|
"shouldThrow": true,
|
|
"expectTemplate": true,
|
|
"compileWithPartials": true,
|
|
"console": true,
|
|
"require": true,
|
|
"suite": true,
|
|
"equal": true,
|
|
"equals": true,
|
|
"test": true,
|
|
"testBoth": true,
|
|
"raises": true,
|
|
"deepEqual": true,
|
|
"start": true,
|
|
"stop": true,
|
|
"ok": true,
|
|
"sinon": true,
|
|
"strictEqual": true,
|
|
"define": true,
|
|
"expect": true,
|
|
"chai": true
|
|
},
|
|
"env": {
|
|
"mocha": true
|
|
},
|
|
"rules": {
|
|
// Disabling for tests, for now.
|
|
"no-path-concat": "off",
|
|
|
|
"no-var": "off",
|
|
"dot-notation": "off"
|
|
}
|
|
}
|