-
-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: Add webpack lint settings and style code with eslint --fix We now use the webpack eslint settings that make sense in the cli. Also use the new --fix of eslint to automatically beautify the code * Add additional .eslintrc to /bin to remove unrelated eslint errors * build: Add jest-cli as dev dependency * style: fix lintin errors and coding style according to webpack settings * build: update dependencies and add package-lock to repo * feat: Require quotes only in property names that require it * chore: Add again removed settings by merge conflict solving * tests: Fix failing test * chore: Use husky instead of pre-commit pre-commit package stopped working. See observing/pre-commit#113 husky also requires less boilerplate in the package.json
- Loading branch information
1 parent
eab9337
commit b3186a9
Showing
94 changed files
with
11,357 additions
and
2,361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
module.exports = { | ||
"root": true, | ||
"plugins": ["node"], | ||
"extends": ["eslint:recommended", "plugin:node/recommended"], | ||
"env": { | ||
"node": true, | ||
"es6": true, | ||
"jest": true | ||
}, | ||
"parserOptions": { "ecmaVersion": 2017 }, | ||
"rules": { | ||
"quote-props": ["error", "as-needed"], | ||
"no-dupe-keys": "error", | ||
"quotes": ["error", "double"], | ||
"no-undef": "error", | ||
"no-extra-semi": "error", | ||
"semi": "error", | ||
"no-template-curly-in-string": "error", | ||
"no-caller": "error", | ||
"yoda": "error", | ||
"eqeqeq": "error", | ||
"global-require": "off", | ||
"brace-style": "error", | ||
"key-spacing": "error", | ||
"space-in-parens": ["error", "never"], | ||
"space-infix-ops": "error", | ||
"indent": ["error", "tab", { "SwitchCase": 1 }], | ||
"no-extra-bind": "warn", | ||
"no-empty": "off", | ||
"no-multiple-empty-lines": "error", | ||
"no-multi-spaces": "error", | ||
"no-process-exit": "off", | ||
"no-trailing-spaces": "error", | ||
"no-use-before-define": "off", | ||
"no-unused-vars": ["error", { "args": "none" }], | ||
"no-unsafe-negation": "error", | ||
"no-loop-func": "warn", | ||
"space-before-function-paren": ["error", "never"], | ||
"space-before-blocks": "error", | ||
"object-curly-spacing": ["error", "always"], | ||
"object-curly-newline": ["error", { "consistent": true }], | ||
"keyword-spacing": ["error", { | ||
"after": true, | ||
"overrides": { | ||
"const": { "after": true }, | ||
"try": { "after": true }, | ||
"throw": { "after": true }, | ||
"case": { "after": true }, | ||
"return": { "after": true }, | ||
"finally": { "after": true }, | ||
"do": { "after": true } | ||
} | ||
}], | ||
"no-console": "off", | ||
"valid-jsdoc": "error", | ||
"node/no-unsupported-features": ["error", { "version": 4 }], | ||
"node/no-deprecated-api": "error", | ||
"node/no-missing-import": "error", | ||
"node/no-missing-require": [ | ||
"error", | ||
{ | ||
"allowModules": [ | ||
"webpack" | ||
] | ||
} | ||
], | ||
"node/no-unpublished-bin": "error", | ||
"node/no-unpublished-require": "error", | ||
"eol-last": ["error", "always"], | ||
"newline-per-chained-call": "off", | ||
"node/process-exit-as-throw": "error" | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"rules": { | ||
"node/no-missing-require": 0 | ||
} | ||
} |
Oops, something went wrong.