Skip to content

Commit

Permalink
[WIP] Fixes #28460 - adding eslint-plugin-foreman for styling
Browse files Browse the repository at this point in the history
  • Loading branch information
amirfefer committed Dec 9, 2019
1 parent beb2025 commit 79227f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 25 deletions.
24 changes: 2 additions & 22 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
{
"plugins": ["patternfly-react"],
"extends": [
"plugin:patternfly-react/recommended",
"./node_modules/@theforeman/vendor-dev/eslint.extends.js"
],
"rules": {
"prettier/prettier": ["error", {
"singleQuote": true,
"trailingComma": "es5"
}],
"import/no-unresolved": ["error", {
"ignore": ['foremanReact/.*']
}],
"import/extensions": ["error", {
"ignore": ['foremanReact/.*']
}]
},
"settings": {
"import/resolver": {
"babel-module": {}
}
}
"plugins": ["@theforeman/foreman"],
"extends": "plugin:@theforeman/foreman/recommended"
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Foreman Tasks =============",
"main": "index.js",
"scripts": {
"lint": "./node_modules/.bin/eslint -c .eslintrc webpack/",
"lint": "./node_modules/.bin/tfm-lint",
"test": "node node_modules/.bin/jest --no-cache",
"test:watch": "node node_modules/.bin/jest --watchAll",
"test:current": "node node_modules/.bin/jest --watch",
Expand All @@ -22,7 +22,7 @@
"url": "http://projects.theforeman.org/projects/foreman-tasks/issues"
},
"dependencies": {
"@theforeman/vendor": "^1.4.0",
"@theforeman/vendor": "^3.6.3",
"c3": "^0.4.11",
"humanize-duration": "^3.20.1",
"react-intl": "^2.8.0"
Expand All @@ -31,7 +31,8 @@
"@storybook/addon-actions": "^5.0.1",
"@storybook/addon-knobs": "^5.0.1",
"@storybook/react": "^5.0.1",
"@theforeman/vendor-dev": "^1.4.0",
"@theforeman/vendor-dev": "^3.6.3",
"@theforeman/eslint-plugin-foreman": "3.6.3",
"babel-cli": "^6.10.1",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.3",
Expand Down

0 comments on commit 79227f6

Please sign in to comment.