Skip to content
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

Test/add oauth2 cases #88

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 26 additions & 21 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
extends: "eslint:recommended"
parserOptions:
ecmaVersion: 2017
env:
browser: true
es6: true
node: true
jasmine: true
overrides:
- files: ["test/**/*.js"]
rules:
no-console: "off"
# - files:
# - "*.js"
rules:
# Exemplo de regras personalizadas para arquivos JavaScript
semi: [2, 'always'] # Verificar se há ponto e vírgula ausente
indent: [error, 2] # Verificar se a indentação está com 2 espaços
quotes: [error, "single"] # Verificar se as aspas estão usando 'single' (simples)
no-unused-vars: error # Verificar se há variáveis não utilizadas
no-console: warn # Mostrar um aviso quando console.log é usado
ignorePatterns:
- "*.json"
- "*.md"
- "*.yml"
mocha: true
extends:
- "eslint:recommended"
- "plugin:prettier/recommended"
parser: "@babel/eslint-parser"
parserOptions:
requireConfigFile: false
babelOptions:
configFile: "./babel.config.js"
rules:
indent:
- error
- 3
linebreak-style:
- error
- unix
quotes:
- error
- single
semi:
- error
- always
no-console: "off"
plugins:
- mocha

5 changes: 3 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"useTabs": false,
"tabWidth": 3,
"singleQuote": true,
"trailingComma": "none",
"semi": true,
"printWidth": 250,
"pluginSearchDirs": [
"."
"."
],
"overrides": []
}
}
12 changes: 12 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current'
}
}
]
]
};
2 changes: 1 addition & 1 deletion examples/node-red-contrib-oauth2.json

Large diffs are not rendered by default.

Loading
Loading