Last active
July 26, 2018 13:51
-
-
Save jltafarel/8ee5a0c5f2dadca8f5769daa17f8b666 to your computer and use it in GitHub Desktop.
TalentRH Linter
This file contains hidden or 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
| # editorconfig.org | |
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
This file contains hidden or 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
| { | |
| // TALENT RH LINTER | |
| // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
| "env": { | |
| "node": true | |
| }, | |
| "parserOptions": { | |
| "ecmaVersion": 8, | |
| "ecmaFeatures": { | |
| "experimentalObjectRestSpread": true | |
| } | |
| }, | |
| "globals": { | |
| // If "no-undef" is enabled below, be sure to list all global variables that | |
| // are used in this app's backend code (including the globalIds of models): | |
| // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
| "Promise": true, | |
| "sails": true, | |
| "_": true, | |
| "async": true | |
| // …and any others (e.g. `"Organization": true`) | |
| // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
| }, | |
| "rules": { | |
| "callback-return": ["error", ["done", "proceed", "next", "onwards", "callback", "cb"]], | |
| "camelcase": ["warn", {"properties":"always"}], | |
| "comma-style": ["warn", "last"], | |
| "curly": ["error"], | |
| "eqeqeq": ["error", "always"], | |
| "eol-last": ["warn"], | |
| "handle-callback-err": ["error"], | |
| "indent": ["warn", 2, { | |
| "SwitchCase": 1, | |
| "MemberExpression": "off", | |
| "FunctionDeclaration": {"body":1, "parameters":"off"}, | |
| "FunctionExpression": {"body":1, "parameters":"off"}, | |
| "CallExpression": {"arguments":"off"}, | |
| "ArrayExpression": 1, | |
| "ObjectExpression": 1, | |
| "ignoredNodes": ["ConditionalExpression"] | |
| }], | |
| "linebreak-style": ["error", "unix"], | |
| "no-dupe-keys": ["error"], | |
| "no-duplicate-case": ["error"], | |
| "no-extra-semi": ["warn"], | |
| "no-labels": ["error"], | |
| "no-mixed-spaces-and-tabs": [2, "smart-tabs"], | |
| "no-redeclare": ["warn"], | |
| "no-return-assign": ["error", "always"], | |
| "no-sequences": ["error"], | |
| "no-trailing-spaces": ["warn"], | |
| "no-undef": ["off"], | |
| // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
| // ^^Note: If this "no-undef" rule is enabled (set to `["error"]`), then all model globals | |
| // (e.g. `"Organization": true`) should be included above under "globals". | |
| // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
| "no-unexpected-multiline": ["warn"], | |
| "no-unreachable": ["warn"], | |
| "no-unused-vars": ["warn", {"caughtErrors":"all", "caughtErrorsIgnorePattern": "^unused($|[A-Z].*$)", "argsIgnorePattern": "^unused($|[A-Z].*$)", "varsIgnorePattern": "^unused($|[A-Z].*$)" }], | |
| "no-use-before-define": ["error", {"functions":false}], | |
| "no-var": ["error"], | |
| "prefer-arrow-callback": ["warn", {"allowNamedFunctions":true}], | |
| "quotes": ["warn", "single", {"avoidEscape":false, "allowTemplateLiterals":true}], | |
| "semi": ["error", "always"], | |
| "semi-spacing": ["warn", {"before":false, "after":true}], | |
| "semi-style": ["warn", "last"] | |
| } | |
| } |
This file contains hidden or 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
| #!/bin/bash | |
| echo "Instalando pacotes do Atom..." | |
| apm install linter-eslint | |
| apm install editorconfig | |
| echo "Pacotes instalados." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment