Skip to content

Commit

Permalink
fix(build): npm updates and linting
Browse files Browse the repository at this point in the history
* lint and testing packages
  • Loading branch information
cdcabrera committed Jan 16, 2020
1 parent 0c70d13 commit dc5cbdf
Show file tree
Hide file tree
Showing 4 changed files with 694 additions and 279 deletions.
34 changes: 25 additions & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@
"error",
"as-needed"
],
"class-methods-use-this": 1,
"comma-dangle": 0,
"consistent-return": 1,
"import/extensions": [
"error",
{
"json": "never"
}
],
"import/first": 0,
"import/newline-after-import": 0,
"import/no-extraneous-dependencies": [
Expand All @@ -34,6 +42,7 @@
],
"import/no-named-as-default": 0,
"import/no-named-as-default-member": 0,
"jest/no-test-callback": 0,
"jest/prefer-to-have-length": 0,
"max-len": [
"error",
Expand All @@ -42,34 +51,41 @@
"ignoreUrls": true
}
],
"no-case-declarations": 0,
"no-console": 0,
"no-continue": 0,
"no-debugger": 1,
"no-lonely-if": 1,
"no-plusplus": 0,
"no-case-declarations": 0,
"no-restricted-properties": [0, {"object": "Math", "property": "pow"}],
"no-underscore-dangle": 0,
"prettier/prettier": [
"error",
{
"singleQuote": true,
"printWidth": 120
}
],
"react/no-unused-prop-types": 1,
"react/jsx-filename-extension": 0,
"react/forbid-prop-types": 0,
"react/jsx-filename-extension": 0,
"react/jsx-fragments": [ 1, "element" ],
"react/jsx-props-no-spreading": 0,
"react/jsx-one-expression-per-line": 0,
"react/no-unused-prop-types": 1,
"react/state-in-constructor": [ 1, "never" ],
"space-before-function-paren": 0,
"jsx-a11y/anchor-is-valid": 1,
"jsx-a11y/label-has-for": [ 2, {
"components": [ "Label" ],
"required": {
"some": [ "nesting", "id" ]
}
}],
"jsx-a11y/label-has-associated-control": [ 2, {
"labelComponents": ["CustomInputLabel"],
"labelAttributes": ["label"],
"controlComponents": ["CustomInput"],
"depth": 3
}],
"jsx-a11y/label-has-for": [ 2, {
"components": [ "Label" ],
"required": {
"some": [ "nesting", "id" ]
}
}]
}
}
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,26 +110,26 @@
"reselect": "^4.0.0"
},
"devDependencies": {
"enzyme": "^3.6.0",
"enzyme-adapter-react-16": "^1.5.0",
"enzyme-to-json": "^3.3.4",
"eslint": "^5.16.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-jest": "^22.5.1",
"eslint-plugin-json": "^1.4.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.13.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"enzyme-to-json": "^3.4.3",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-jest": "^23.6.0",
"eslint-plugin-json": "^2.0.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.17.0",
"express": "^4.16.3",
"gettext-extractor": "^3.4.3",
"htmlhint": "^0.11.0",
"iso-639-1": "^2.0.5",
"jest": "^23.6.0",
"jest-cli": "^23.6.0",
"moxios": "^0.4.0",
"prettier": "^1.17.1",
"prettier": "^1.18.2",
"react-app-rewired": "^1.5.0",
"redux-mock-store": "^1.5.3",
"standard-version": "^5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import store from './redux/store';

import 'patternfly/dist/css/rcue.css';
import 'patternfly/dist/css/rcue-additions.css';
import './styles/.css/index.css'; // eslint-disable-line import/no-unresolved
import './styles/.css/index.css'; // eslint-disable-line

ReactDOM.render(
<Provider store={store}>
Expand Down
Loading

0 comments on commit dc5cbdf

Please sign in to comment.