Skip to content

Commit

Permalink
- Resolves #4
Browse files Browse the repository at this point in the history
- Resolves #19
- Resolves #20
- Resolves #21
- Resolves #22
- Resolves #23
- Sort rules alphabetically
  • Loading branch information
amannn committed Jul 31, 2019
1 parent 550be0d commit a6b6e9a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
9 changes: 5 additions & 4 deletions index.js
Expand Up @@ -47,10 +47,6 @@ module.exports = {
}
],
'no-lonely-if': ERROR,
'no-throw-literal': ERROR,
'no-var': ERROR,
'no-unneeded-ternary': ERROR,
'no-unused-expressions': ERROR,
'no-restricted-syntax': [
ERROR,
{
Expand All @@ -65,6 +61,11 @@ module.exports = {
}
],
'no-shadow': ERROR,
'no-throw-literal': ERROR,
'no-unneeded-ternary': ERROR,
'no-unused-expressions': ERROR,
'no-use-before-define': [ERROR, {functions: false}],
'no-var': ERROR,
'object-shorthand': ERROR,
'prefer-arrow-callback': ERROR,
'prefer-const': ERROR,
Expand Down
3 changes: 2 additions & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "eslint-config-molindo",
"version": "3.0.0",
"version": "4.0.0",
"description": "Molindo ESLint config that implements our styleguide and helps to catch errors.",
"main": "index.js",
"repository": "https://github.com/molindo/eslint-config-molindo",
Expand Down Expand Up @@ -36,6 +36,7 @@
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.12.3",
"eslint-plugin-react-hooks": "^1.6.1",
"prettier": "^1.15.3"
}
}
13 changes: 10 additions & 3 deletions react.js
Expand Up @@ -8,7 +8,11 @@ module.exports = Object.assign({}, base, {
plugins: base.plugins.concat('css-modules', 'jsx-a11y', 'react'),

settings: Object.assign({}, base.settings, {
'import/resolver': 'webpack'
'import/resolver': {
node: {
paths: ['node_modules', 'src']
}
}
}),

extends: (base.extends || []).concat(
Expand Down Expand Up @@ -39,6 +43,7 @@ module.exports = Object.assign({}, base, {
}
],
'react/jsx-no-bind': [ERROR, {allowArrowFunctions: true}],
'react/jsx-no-target-blank': ERROR,
'react/jsx-sort-props': [
ERROR,
{
Expand All @@ -48,9 +53,10 @@ module.exports = Object.assign({}, base, {
],
'react/no-access-state-in-setstate': ERROR,
'react/no-direct-mutation-state': ERROR,
'react/no-this-in-sfc': ERROR,
'react/no-typos': ERROR,
'react/no-unused-prop-types': ERROR,
'react/no-unused-state': ERROR,
'react/no-typos': ERROR,
'react/sort-comp': [
ERROR,
{
Expand All @@ -66,7 +72,8 @@ module.exports = Object.assign({}, base, {
'render'
]
}
]
],
'react/sort-prop-types': ERROR
}),

overrides: (base.overrides || []).concat({
Expand Down

0 comments on commit a6b6e9a

Please sign in to comment.