Skip to content

Commit

Permalink
feat: SDG-6 Standardize eslint (#46)
Browse files Browse the repository at this point in the history
* feat: SDG-6 Added new styleguide for React 16.8+

* Updated Deps
* Added new rules to goodway/node

* fix: Imports in react-hooks.js and updated npmignore to allow the new react-hooks rule to be picked up

* feat: SDG-6 Added storybook plugin and rules

* feat: SDG-6 Removed deps that are no longer necessary

* feat: SDG-6 changed  to a warning so teams are aware of the rule and can make a decision

---------

Co-authored-by: Jeff Capone <[email protected]>
  • Loading branch information
jeffcap1 and Jeff Capone authored Sep 1, 2023
1 parent 5feb22d commit 42fe299
Show file tree
Hide file tree
Showing 7 changed files with 1,735 additions and 776 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
logs
*.log
npm-debug.log*
*.tgz

# Runtime data
pids
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*
!es5.js
!react-hooks.js
!node.js
!index.js
!CHANGELOG.md
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ Node: `goodway/node`

Frontend: `goodway/frontend` (doesn't exist)

React: `goodway/react-hooks`

ES5: `goodway/es5`
19 changes: 12 additions & 7 deletions node.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@ module.exports = {
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
'no-return-await': ['warn'],
'max-len': ['warn', {
'code': 160,
'ignoreUrls': true,
'ignoreComments': false,
'ignoreRegExpLiterals': true,
'ignoreStrings': true,
'ignoreTemplateLiterals': true,
'ignoreTrailingComments': true
code: 160,
tabWidth: 2,
ignoreUrls: true,
ignoreComments: false,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreTrailingComments: true,
}],
'prefer-destructuring': ['error', {
VariableDeclarator: {array: false, object: true},
AssignmentExpression: {array: false, object: false}
}],
}
};
Loading

0 comments on commit 42fe299

Please sign in to comment.