eslint-config-entva 2.0.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +14 -11
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -7,6 +7,17 @@ import globals from 'globals';
7
7
 
8
8
  export default [
9
9
  ...baseConfig,
10
+ {
11
+ files: [
12
+ '**/*.test.jsx',
13
+ '**/*.spec.jsx',
14
+ ],
15
+ languageOptions: {
16
+ globals: {
17
+ ...globals.jest,
18
+ },
19
+ },
20
+ },
10
21
  {
11
22
  files: ['**/*.{js,mjs,cjs,jsx}'],
12
23
  plugins: {
@@ -105,11 +116,9 @@ export default [
105
116
  }],
106
117
 
107
118
  'react/no-unused-class-component-methods': ['off'],
108
- 'react-hooks/exhaustive-deps': ['off'],
119
+ 'react-hooks/exhaustive-deps': 'off',
109
120
 
110
- 'react/display-name': ['off', {
111
- ignoreTranspilerName: false,
112
- }],
121
+ 'react/display-name': 'off',
113
122
 
114
123
  'react/jsx-one-expression-per-line': ['off', {
115
124
  allow: 'single-child',
@@ -197,13 +206,7 @@ export default [
197
206
  'react-hooks/rules-of-hooks': ['error'],
198
207
  'jsx-a11y/accessible-emoji': ['off'],
199
208
 
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
- }],
209
+ 'jsx-a11y/alt-text': 'off',
207
210
 
208
211
  'jsx-a11y/aria-activedescendant-has-tabindex': ['error'],
209
212
  '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.2.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",