Skip to content

Commit 625a224

Browse files
committed
Clean up js code linting rules
These rules can be safely removed: - no-undef - space-before-function-paren - indent - id-length - jsx-quotes - react/display-name - react/jsx-boolean-value - react/jsx-curly-spacing - react/jsx-no-duplicate-props - react/jsx-no-undef - react/jsx-sort-prop-types - react/jsx-sort-props - react/jsx-uses-react - react/jsx-uses-vars - react/no-danger - react/no-did-mount-set-state - react/no-did-update-set-state - react/no-multi-comp - react/no-unknown-property - react/prop-types - react/react-in-jsx-scope - react/self-closing-comp - react/jsx-wrap-multilines - react/sort-comp [rules/react.yml#L5](https://github.com/shakacode/style-guide-javascript/blob/master/packages/eslint-config-shakacode/rules/react.yml#L5) - no-unused-vars [rules/javascript.yml#L14](https://github.com/shakacode/style-guide-javascript/blob/66a6c7100c4/packages/eslint-config-shakacode/rules/javascript.yml#L14)
1 parent c489439 commit 625a224

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

client/.eslintrc.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@ env:
1616
mocha: true
1717

1818
rules:
19-
### Variables
20-
no-undef: 2
21-
no-unused-vars: [2, { vars: all, args: none }]
22-
2319
### Stylistic issues
24-
indent: [1, 2, { SwitchCase: 1, VariableDeclarator: 2 }]
25-
id-length: [1, { min: 2, exceptions: [_, e, i, k, v] }]
26-
space-before-function-paren: [1, "never"]
2720
no-underscore-dangle: 0
2821

2922
### Imports
@@ -36,25 +29,3 @@ rules:
3629

3730
# https://github.com/eslint/eslint/issues/6876 SFC's marked as invalid
3831
new-cap: 0
39-
40-
### React
41-
jsx-quotes: [1, prefer-double]
42-
react/display-name: 0
43-
react/jsx-boolean-value: [1, always]
44-
react/jsx-curly-spacing: [1, never]
45-
react/jsx-no-duplicate-props: [2, { ignoreCase: true }]
46-
react/jsx-no-undef: 2
47-
react/jsx-sort-prop-types: 0
48-
react/jsx-sort-props: 0
49-
react/jsx-uses-react: 2
50-
react/jsx-uses-vars: 2
51-
react/no-danger: 0
52-
react/no-did-mount-set-state: 1
53-
react/no-did-update-set-state: 0
54-
react/no-multi-comp: 2
55-
react/no-unknown-property: 2
56-
react/prop-types: 1
57-
react/react-in-jsx-scope: 2
58-
react/self-closing-comp: 2
59-
react/sort-comp: 0 # Should be 1. `statics` should be on top.
60-
react/jsx-wrap-multilines: 2

0 commit comments

Comments
 (0)