Last active
July 26, 2018 13:51
-
-
Save jltafarel/8ee5a0c5f2dadca8f5769daa17f8b666 to your computer and use it in GitHub Desktop.
Revisions
-
jltafarel revised this gist
Jul 26, 2018 . 2 changed files with 18 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ # 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ #!/bin/bash echo "Instalando pacotes do Atom..." apm install linter-eslint apm install editorconfig echo "Pacotes instalados." -
jltafarel created this gist
Jul 26, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,68 @@ { // 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"] } }