-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add tsconfig.json to project * Add link.helper and link.const * Add link.type config allow link to optionally bend * Add docs:lint to lint task * Bump documentation to 6.2.0 * Small tweaks in documentation * Implement strict eslint rules for jsdoc * Update spanshot tests due to link structural change * Update link.po and graph spec updating lines selector * Small renaming in graph.renderer * Add some sample gifs to complement docs * Bump jest * Add test for link.helper. Update snapshots * Small refactor in link.helper * Update package-lock
- Loading branch information
1 parent
df2e20f
commit 6e1201c
Showing
19 changed files
with
2,256 additions
and
1,717 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 |
---|---|---|
@@ -1,36 +1,50 @@ | ||
module.exports = { | ||
"extends": [ | ||
"eslint:recommended" | ||
], | ||
"globals": { | ||
"document": true, | ||
"Reflect": true, | ||
"window": true | ||
extends: ['eslint:recommended'], | ||
globals: { | ||
document: true, | ||
Reflect: true, | ||
window: true | ||
}, | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"ecmaFeatures": { | ||
"jsx": true | ||
parser: 'babel-eslint', | ||
parserOptions: { | ||
ecmaVersion: 6, | ||
ecmaFeatures: { | ||
jsx: true | ||
} | ||
}, | ||
"plugins": [ | ||
"standard", | ||
"promise", | ||
"react" | ||
], | ||
"rules": { | ||
"react/jsx-uses-react": "error", | ||
"react/jsx-uses-vars": "error", | ||
"camelcase": "error", | ||
"keyword-spacing": "error", | ||
"max-len": ["error", 120, 4, { "ignoreComments": true }], | ||
"max-lines": ["error", {"max": 400, "skipComments": true}], | ||
"newline-after-var": ["error", "always"], | ||
"no-nested-ternary": "error", | ||
"no-useless-constructor": "error", | ||
"semi": "error", | ||
"require-jsdoc": "error", | ||
"valid-jsdoc": "error" | ||
plugins: ['standard', 'promise', 'react'], | ||
rules: { | ||
'react/jsx-uses-react': 'error', | ||
'react/jsx-uses-vars': 'error', | ||
camelcase: 'error', | ||
'keyword-spacing': 'error', | ||
'max-len': ['error', 120, 4, { ignoreComments: true }], | ||
'max-lines': ['error', { max: 400, skipComments: true }], | ||
'newline-after-var': ['error', 'always'], | ||
'no-nested-ternary': 'error', | ||
'no-useless-constructor': 'error', | ||
semi: 'error', | ||
'require-jsdoc': 'error', | ||
'valid-jsdoc': [ | ||
'error', | ||
{ | ||
prefer: { | ||
arg: 'param', | ||
argument: 'param', | ||
class: 'constructor', | ||
return: 'returns', | ||
virtual: 'abstract' | ||
}, | ||
preferType: { | ||
Boolean: 'boolean', | ||
Number: 'number', | ||
object: 'Object', | ||
String: 'string', | ||
Function: 'Function' | ||
}, | ||
requireReturn: true, | ||
requireReturnType: true | ||
} | ||
] | ||
} | ||
}; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.