@digest/eslint-config 3.5.0 → 3.6.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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@digest/eslint-config",
3
3
  "title": "ESLint Digest",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "3.5.0",
5
+ "version": "3.6.0",
6
6
  "description": "Digested ESLint configurations",
7
7
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
8
8
  "contributors": [
@@ -33,9 +33,9 @@
33
33
  "clean": "rimraf node_modules package-lock.json npm-debug.log"
34
34
  },
35
35
  "dependencies": {
36
- "@digest/scripts": "^3.5.0",
37
- "eslint": "^8.21.0",
38
- "eslint-config-canonical": "^36.0.0",
36
+ "@digest/scripts": "^3.6.0",
37
+ "eslint": "^8.23.0",
38
+ "eslint-config-canonical": "^37.0.3",
39
39
  "eslint-formatter-friendly": "^7.0.0",
40
40
  "eslint-plugin-import": "^2.26.0"
41
41
  },
@@ -43,5 +43,5 @@
43
43
  "digest",
44
44
  "eslint"
45
45
  ],
46
- "gitHead": "578118d8dbf2ac96e0ad93dda474934679e6563e"
46
+ "gitHead": "6dbabfc3844f33f4b2864fd4273a2b630504830f"
47
47
  }
package/src/.eslintrc.js CHANGED
@@ -34,6 +34,7 @@ const flow = config.flow && config.eslintFlow;
34
34
  const graphql = config.graphql && config.eslintGraphQL;
35
35
  const jest = config.jest && config.eslintJest;
36
36
  const react = config.react && config.eslintReact;
37
+ const reactNative = react && config.reactNative && config.eslintReactNative;
37
38
  const typescript = config.typescript && config.eslintTypeScript;
38
39
 
39
40
  let graphqlSchema;
@@ -64,7 +65,12 @@ module.exports = {
64
65
  'plugin:import/errors',
65
66
  'plugin:import/warnings',
66
67
  'canonical',
67
- 'canonical/lodash'
68
+ 'canonical/lodash',
69
+ 'canonical/browser',
70
+ 'canonical/json',
71
+ 'canonical/module',
72
+ 'canonical/node',
73
+ 'canonical/yaml'
68
74
  ].concat(
69
75
  babel ? [
70
76
  'plugin:import/stage-0'
@@ -77,8 +83,13 @@ module.exports = {
77
83
  'plugin:react-hooks/recommended',
78
84
  'plugin:jsx-a11y/recommended',
79
85
  'plugin:import/react',
80
- 'canonical/react'
86
+ 'canonical/react',
87
+ 'canonical/jsx-a11y'
81
88
  ] : [],
89
+ /*
90
+ graphql ? [
91
+ 'canonical/graphql'
92
+ ] : [],/**/
82
93
  flow && !typescript ? [
83
94
  'plugin:flowtype/recommended',
84
95
  'canonical/flowtype'
@@ -141,6 +152,10 @@ module.exports = {
141
152
  'react-hooks',
142
153
  'jsx-a11y'
143
154
  ] : [],
155
+ reactNative ? [
156
+ 'react-native',
157
+ '@react-native-community',
158
+ ] : [],
144
159
  graphqlSchema ? ['graphql'] : [],
145
160
  flow ? ['flowtype'] : [],
146
161
  typescript ? ['@typescript-eslint'] : []
package/src/index.js CHANGED
@@ -20,5 +20,5 @@ program. If not, see <http://www.gnu.org/licenses/>.
20
20
  cases
21
21
  */
22
22
 
23
- // eslint-disable-next-line @typescript-eslint/no-require-imports
23
+ // eslint-disable-next-line @typescript-eslint/no-require-imports,unicorn/prefer-module
24
24
  module.exports = require('./.eslintrc');