@labeg/code-style 4.0.12 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/.eslintrc.js +1 -0
  2. package/package.json +2 -2
package/.eslintrc.js CHANGED
@@ -132,6 +132,7 @@ module.exports = {
132
132
  "react/jsx-max-depth": ["error", {max: 10}], // To small by default
133
133
  "react/function-component-definition": ["error", {namedComponents: "arrow-function"}], // Same as eslint func-styles
134
134
  "react/forbid-component-props": "off", // Conflict with styled-components
135
+ "react/require-default-props": "off", // Don't used in modern react
135
136
  "react/jsx-uses-react": "off", // https://ru.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html
136
137
  "react/react-in-jsx-scope": "off", // https://ru.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html
137
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@labeg/code-style",
3
- "version": "4.0.12",
3
+ "version": "4.1.0",
4
4
  "author": "Eugene Labutin",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/LabEG/code-style#readme",
@@ -12,7 +12,7 @@
12
12
  "url": "https://github.com/LabEG/code-style/issues"
13
13
  },
14
14
  "lint-staged": {
15
- "./**/*.(ts|tsx|js|jsx)": [
15
+ "./tests/**/*.(ts|tsx|js|jsx)": [
16
16
  "eslint --fix -c .eslintrc.js --ext .tsx,.ts,.jsx,.js"
17
17
  ]
18
18
  },