presetter-preset-react 3.0.3 → 3.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.
@@ -12,3 +12,9 @@ rules:
12
12
  contexts:
13
13
  - FunctionDeclaration:has(BlockStatement > ReturnStatement:not([argument.type='JSXElement']))
14
14
  - ArrowFunctionExpression:has(BlockStatement > ReturnStatement:not([argument.type='JSXElement']))
15
+ overrides:
16
+ - files:
17
+ - '**/__tests__/**/*.[jt]sx'
18
+ - '**/?(*.)+(spec|test).[jt]sx'
19
+ extends:
20
+ - plugin:testing-library/react
package/lib/index.js CHANGED
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = _default;
7
6
  exports.DEFAULT_VARIABLE = void 0;
7
+ exports.default = _default;
8
8
 
9
9
  var _path = require("path");
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "presetter-preset-react",
3
- "version": "3.0.3",
3
+ "version": "3.1.0",
4
4
  "description": "An opinionated presetter preset for a React project",
5
5
  "keywords": [
6
6
  "presetter",
@@ -34,7 +34,8 @@
34
34
  "@testing-library/react": "^12.0.0",
35
35
  "@types/react": "^17.0.0",
36
36
  "eslint-plugin-react": "^7.0.0",
37
- "presetter": "^3.0.3"
37
+ "eslint-plugin-testing-library": "^5.0.0",
38
+ "presetter": "^3.1.0"
38
39
  },
39
40
  "devDependencies": {
40
41
  "presetter": "file:../presetter",
@@ -1,10 +1,11 @@
1
1
  extends:
2
2
  - plugin:react/recommended
3
+ - plugin:react/jsx-runtime
3
4
  rules:
4
5
  react/boolean-prop-naming: warn
5
6
  react/button-has-type: warn
6
7
  react/destructuring-assignment: warn
7
- react/prop-types: 'off'
8
+ react/prop-types: off
8
9
  react/sort-comp: warn
9
10
  react/jsx-sort-props:
10
11
  - warn
@@ -12,7 +12,7 @@ compilerOptions:
12
12
  experimentalDecorators: true
13
13
  emitDecoratorMetadata: true
14
14
  isolatedModules: false
15
- jsx: react
15
+ jsx: react-jsx
16
16
 
17
17
  # module resolution
18
18
  moduleResolution: node
@@ -29,6 +29,7 @@ compilerOptions:
29
29
  - ES2020
30
30
  - ESNext
31
31
  - DOM
32
+ - DOM.Iterable
32
33
  include:
33
34
  - '**/*.json'
34
35
  - '**/*.ts'