eslint-config-entva 2.0.0 → 2.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/index.js +15 -11
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -7,6 +7,18 @@ import globals from 'globals';
7
7
 
8
8
  export default [
9
9
  ...baseConfig,
10
+ {
11
+ files: [
12
+ '**/*.test.jsx',
13
+ '**/*.spec.jsx',
14
+ '**/__tests__/**',
15
+ ],
16
+ languageOptions: {
17
+ globals: {
18
+ ...globals.jest,
19
+ },
20
+ },
21
+ },
10
22
  {
11
23
  files: ['**/*.{js,mjs,cjs,jsx}'],
12
24
  plugins: {
@@ -105,11 +117,9 @@ export default [
105
117
  }],
106
118
 
107
119
  'react/no-unused-class-component-methods': ['off'],
108
- 'react-hooks/exhaustive-deps': ['off'],
120
+ 'react-hooks/exhaustive-deps': 'off',
109
121
 
110
- 'react/display-name': ['off', {
111
- ignoreTranspilerName: false,
112
- }],
122
+ 'react/display-name': 'off',
113
123
 
114
124
  'react/jsx-one-expression-per-line': ['off', {
115
125
  allow: 'single-child',
@@ -197,13 +207,7 @@ export default [
197
207
  'react-hooks/rules-of-hooks': ['error'],
198
208
  'jsx-a11y/accessible-emoji': ['off'],
199
209
 
200
- 'jsx-a11y/alt-text': ['error', {
201
- elements: ['img', 'object', 'area', 'input[type=\'image\']'],
202
- img: [],
203
- object: [],
204
- area: [],
205
- 'input[type=\'image\']': [],
206
- }],
210
+ 'jsx-a11y/alt-text': 'off',
207
211
 
208
212
  'jsx-a11y/aria-activedescendant-has-tabindex': ['error'],
209
213
  'jsx-a11y/aria-props': ['error'],
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "url": "https://github.com/entva/styleguide"
10
10
  },
11
11
  "bugs": "https://github.com/entva/styleguide/issues",
12
- "version": "2.0.0",
12
+ "version": "2.1.0",
13
13
  "keywords": [
14
14
  "linter",
15
15
  "config",
@@ -29,7 +29,7 @@
29
29
  "react": "^19.0.0"
30
30
  },
31
31
  "dependencies": {
32
- "eslint-config-entva-base": "^2.1.0",
32
+ "eslint-config-entva-base": "^2.3.0",
33
33
  "eslint-plugin-import": "^2.31.0",
34
34
  "eslint-plugin-jsx-a11y": "^6.10.2",
35
35
  "eslint-plugin-react": "^7.37.2",