eslint-config-react-app-new 0.0.2 → 0.0.4

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 (3) hide show
  1. package/base.js +32 -26
  2. package/jest.js +0 -1
  3. package/package.json +1 -1
package/base.js CHANGED
@@ -5,8 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- 'use strict';
9
-
10
8
  // Fix eslint shareable config (https://github.com/eslint/eslint/issues/3458)
11
9
  require('@rushstack/eslint-patch/modern-module-resolution');
12
10
 
@@ -15,36 +13,44 @@ require('@rushstack/eslint-patch/modern-module-resolution');
15
13
  // to ensure that user-provided configs don't need this boilerplate.
16
14
 
17
15
  module.exports = {
18
- root: true,
16
+ root: true,
19
17
 
20
- parser: '@babel/eslint-parser',
18
+ parser: '@babel/eslint-parser',
21
19
 
22
- plugins: ['react'],
20
+ plugins: ['react'],
23
21
 
24
- env: {
25
- browser: true,
26
- commonjs: true,
27
- es6: true,
28
- jest: true,
29
- node: true,
30
- },
22
+ env: {
23
+ browser: true,
24
+ commonjs: true,
25
+ es6: true,
26
+ jest: true,
27
+ node: true
28
+ },
31
29
 
32
- parserOptions: {
33
- sourceType: 'module',
34
- requireConfigFile: false,
35
- babelOptions: {
36
- presets: [require.resolve('babel-preset-react-app-new/prod')],
30
+ parserOptions: {
31
+ sourceType: 'module',
32
+ requireConfigFile: false,
33
+ babelOptions: {
34
+ presets: [require.resolve('babel-preset-react-app-new/prod')],
35
+ plugins: [
36
+ [
37
+ '@babel/plugin-proposal-decorators',
38
+ {
39
+ legacy: true
40
+ }
41
+ ]
42
+ ]
43
+ }
37
44
  },
38
- },
39
45
 
40
- settings: {
41
- react: {
42
- version: 'detect',
46
+ settings: {
47
+ react: {
48
+ version: 'detect'
49
+ }
43
50
  },
44
- },
45
51
 
46
- rules: {
47
- 'react/jsx-uses-vars': 'warn',
48
- 'react/jsx-uses-react': 'warn',
49
- },
52
+ rules: {
53
+ 'react/jsx-uses-vars': 'warn',
54
+ 'react/jsx-uses-react': 'warn'
55
+ }
50
56
  };
package/jest.js CHANGED
@@ -29,7 +29,6 @@ module.exports = {
29
29
  'jest/no-identical-title': 'error',
30
30
  'jest/no-interpolation-in-snapshots': 'error',
31
31
  'jest/no-jasmine-globals': 'error',
32
- 'jest/no-jest-import': 'error',
33
32
  'jest/no-mocks-import': 'error',
34
33
  'jest/valid-describe-callback': 'error',
35
34
  'jest/valid-expect': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-react-app-new",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "ESLint configuration used by Create React App",
5
5
  "repository": {
6
6
  "type": "git",