Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
8254a08
Merge pull request #48 from SAP/develop
droshev Nov 6, 2018
31d6a45
Merge pull request #103 from SAP/develop
droshev Dec 14, 2018
2c2d530
init lint; comment out failing lints
Dec 18, 2018
a42e29d
merge develop
Dec 19, 2018
ef65421
add missing lint cmd lost in merge
Dec 19, 2018
40b08ed
eslint fix: comma-dangle
Dec 19, 2018
ebf9514
eslint fix: comma-spacing
Dec 19, 2018
602162e
eslint fix: comma-style
Dec 19, 2018
9014337
eslint fix: dot-notation
Dec 19, 2018
fd7ab81
eslint fix: eol-last
Dec 19, 2018
cc1d1bd
eslint fix: keyword-spacing
Dec 19, 2018
8f9d1bb
eslint fix: jsx-quotes
Dec 19, 2018
0da8571
eslint fix: no-multi-spaces
Dec 19, 2018
e9b37b8
eslint fix: no-trailing-spaces
Dec 19, 2018
7d75ff8
eslint fix: quote-props
Dec 19, 2018
6151195
eslint fix: semi
Dec 19, 2018
b12fdd6
eslint fix: space-before-blocks
Dec 19, 2018
fcdb2da
eslint fix: semi-spacing
Dec 19, 2018
a2567f5
eslint fix: space-infix-ops
Dec 19, 2018
ae77946
eslint fix: space-before-function-paren
Dec 19, 2018
2319c22
eslint fix: react/sort-prop-types
Dec 19, 2018
a447f6d
eslint fix: react/self-closing-comp
Dec 19, 2018
5bfbbd6
eslint fix: react/prop-types
Dec 19, 2018
3372912
eslint fix: react/jsx-tag-spacing
Dec 19, 2018
0ec5c27
eslint fix: react/jsx-max-props-per-line
Dec 19, 2018
189dbfd
eslint fix: react/jsx-indent-props
Dec 19, 2018
de33537
eslint fix: react/jsx-indent
Dec 19, 2018
5236dfc
eslint fix: react/jsx-equals-spacing
Dec 19, 2018
b114e84
eslint fix: react/jsx-closing-bracket-location
Dec 19, 2018
1a4dbe0
eslint fix: react/jsx-boolean-value
Dec 19, 2018
dbed9a6
don't lint snaps
Dec 19, 2018
f428e68
eslint fix: quotes
Dec 19, 2018
f78b848
eslint fix: loosely-restrict-imports/loosely-restrict-imports
Dec 19, 2018
8005121
update unit listgroup snap
Dec 19, 2018
813afa8
clean up travis stage names; remove unused global for eslint
Dec 19, 2018
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
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.idea/
*.css
*.opts
*.scss
*.snap
node_modules/**
140 changes: 140 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
env:
browser: true
node: true
es6: true
jest: true

globals:
$: true

parser: 'babel-eslint'

plugins:
- jsx-a11y
- loosely-restrict-imports
- react

rules:
#brace-style: 2
camelcase: 2
comma-dangle: [2, 'never']
comma-spacing: 2
comma-style: [2, 'last']
#compat/compat: 2
default-case: 2
dot-notation: 2
eol-last: 2
#eqeqeq: 2
guard-for-in: 2
handle-callback-err: 2
#indent: [2, 4, {"SwitchCase": 1}]
jsx-a11y/accessible-emoji: 2
jsx-a11y/alt-text: 2
#jsx-a11y/anchor-has-content: 2
#jsx-a11y/anchor-is-valid: 2
jsx-a11y/aria-activedescendant-has-tabindex: 2
jsx-a11y/aria-props: 2
jsx-a11y/aria-proptypes: 2
#jsx-a11y/aria-role: 2
jsx-a11y/aria-unsupported-elements: 2
#jsx-a11y/click-events-have-key-events: 2
jsx-a11y/heading-has-content: 2
jsx-a11y/html-has-lang: 2
jsx-a11y/iframe-has-title: 2
jsx-a11y/img-redundant-alt: 2
#jsx-a11y/interactive-supports-focus: 2
jsx-a11y/label-has-for: [2, {'allowChildren': true, 'required': {'every': [ 'id' ]}}]
jsx-a11y/media-has-caption: 2
jsx-a11y/mouse-events-have-key-events: 2
jsx-a11y/no-access-key: 2
jsx-a11y/no-autofocus: 2
jsx-a11y/no-distracting-elements: 2
jsx-a11y/no-interactive-element-to-noninteractive-role: 2
#jsx-a11y/no-noninteractive-element-interactions: 2
#jsx-a11y/no-noninteractive-element-to-interactive-role: [2, { ul: ['tablist', 'menu']}]
jsx-a11y/no-noninteractive-tabindex: 2
#jsx-a11y/no-onchange: 2
jsx-a11y/no-redundant-roles: 2
#jsx-a11y/no-static-element-interactions: 2
jsx-a11y/role-has-required-aria-props: 2
#jsx-a11y/role-supports-aria-props: 2
jsx-a11y/scope: 2
jsx-a11y/tabindex-no-positive: 2
jsx-quotes: [ 2, prefer-single ]
key-spacing: 2
keyword-spacing: [2, { 'before': true }]
loosely-restrict-imports/loosely-restrict-imports: [2, '.jsx']
new-cap: 2
no-cond-assign: 2
#no-console: 2
no-constant-condition: 2
no-control-regex: 2
no-debugger: 2
no-dupe-args: 2
no-dupe-keys: 2
no-duplicate-case: 2
no-empty-character-class: 2
#no-empty: 2
no-ex-assign: 2
no-extra-bind: 2
no-extra-boolean-cast: 0
no-extra-parens: 0
no-extra-semi: 2
no-fallthrough: 2
no-floating-decimal: 2
no-func-assign: 2
no-inner-declarations: 2
no-invalid-regexp: 2
no-irregular-whitespace: 2
no-loop-func: 2
no-mixed-spaces-and-tabs: 2
no-multi-spaces: 2
no-negated-in-lhs: 2
#no-nested-ternary: 2
no-obj-calls: 2
no-regex-spaces: 2
#no-shadow: 2
no-spaced-func: 2
#no-sparse-arrays: 2
no-trailing-spaces: 2
no-undef: 2
#no-undefined: 2
no-underscore-dangle: 0
no-unreachable: 2
#no-unused-vars: [2, { ignoreRestSiblings: true }]
quote-props: [2, 'as-needed', { 'keywords': true, 'unnecessary': false }]
quotes: [2, 'single']
#radix: 2
react/display-name: 2
react/jsx-boolean-value: 2
react/jsx-closing-bracket-location: [2, 'after-props']
react/jsx-equals-spacing: [2, 'never']
react/jsx-indent: 2
react/jsx-indent-props: 2
react/jsx-max-props-per-line: [2, { "maximum": 2 }]
react/jsx-no-undef: 2
react/jsx-tag-spacing: [2, { "beforeSelfClosing": "always" }]
#react/jsx-sort-props: 2
react/jsx-uses-react: 2
react/jsx-uses-vars: 2
react/jsx-wrap-multilines: 2
react/no-did-mount-set-state: 2
react/no-did-update-set-state: 2
#react/no-multi-comp: 2
react/no-unknown-property: 2
#react/prop-types: 2
#react/react-in-jsx-scope: 2
react/self-closing-comp: 2
react/sort-prop-types: [2, { 'callbacksLast' : true, 'ignoreCase' : true, 'requiredFirst' : true, } ]
semi-spacing: 2
semi: 2
#sort-imports: [2, { 'ignoreCase': true, 'ignoreMemberSort': false, 'memberSyntaxSortOrder': ['none', 'single', 'multiple', 'all'] }]
space-before-blocks: 2
space-before-function-paren: [2, 'never']
space-infix-ops: 2
spaced-comment: [0, 'always', { exceptions: ['-']}]
strict: [2, 'global']
#use-isnan: 2
#valid-jsdoc: [2, { prefer: { 'return': 'returns'}}]
#valid-typeof: 2
wrap-iife: [2, 'any']
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ branches:
- "/^feature\\/.*$/"
jobs:
include:
- stage: "Fundamental-react build"
- stage: "Fundamental-react: Lint"
script: npm run lint
- stage: "Fundamental-react: Build"
name: "Unit tests"
script: "./ci-scripts/unit-tests.sh"
notifications:
Expand Down
Loading