-
-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linter and formatter #4
Comments
This is the eslint style plugin we use for nsp stuff https://github.com/nodesecurity/eslint-config-nodesecurity |
Nice, it's almost equal the one I like :). I've changed the style of the code of my PR to respect it (#3). If you want I can do it in the rest of the code once we merge the PR. Thanks :) |
I can do this after the 2 existing PRs are merged (to avoid massive collisions). |
Briefly looked at this today and it was fairly painless w/ prettier CLI and ESLint's For my future reference, here's the configs: {
"extends": "nodesecurity",
"root": true,
"rules": {
"hapi/hapi-scope-start": "off",
"brace-style": "off",
"func-style": "off",
"no-var": "off",
"prefer-arrow-callback": "off",
"prefer-template": "off"
}
} and the package.json "scripts": {
"cont-int": "npm test && npm run lint",
"format": "prettier '{rules/,test/,}*.js' --single-quote --write",
"lint": "eslint .",
"postformat": "npm run lint",
"test": "mocha test/**/*"
} |
PR submitted as #20 |
Due to the recent new of moving this project to ESLint organization #71 (comment), I propose to use the linter+formatter setup used there. |
Summary Still relevant? Next steps
|
I can resume the work in this one once we start to fix things. |
@jesusprubio i did this on my fork. Let me suggest a PR that implements prettier and the default eslint recommendations |
Closing this one. Problem already solved here: #75 |
What about using an style guide? I'm starting to use the AirBnb one in all my projects. This are the reasons:
More options:
I really don't care about which one, but IMHO we need to use one if we keep working in this awesome project. :)
The text was updated successfully, but these errors were encountered: