forked from department-of-veterans-affairs/vets-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.changed.js
More file actions
31 lines (31 loc) · 1009 Bytes
/
.eslintrc.changed.js
File metadata and controls
31 lines (31 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = {
extends: './.eslintrc.js',
rules: {
'jsx-a11y/control-has-associated-label': 1,
'jsx-a11y/click-events-have-key-events': 2,
'jsx-a11y/anchor-is-valid': 2,
'jsx-a11y/label-has-associated-control': 1,
'jsx-a11y/no-static-element-interactions': 2,
'@department-of-veterans-affairs/prefer-table-component': 1,
'@department-of-veterans-affairs/prefer-button-component': 1,
'@department-of-veterans-affairs/prefer-icon-component': 1,
'@department-of-veterans-affairs/prefer-telephone-component': 2,
'@department-of-veterans-affairs/telephone-contact-digits': 2,
},
overrides: [
{
files: ['**/*.unit.spec.*'],
excludedFiles: ['**/*.unit.spec.jsx'],
rules: {
'no-restricted-syntax': [
'error',
{
selector: 'Program',
message:
'Only .jsx files are allowed for unit spec files. Rename this file to .unit.spec.jsx.',
},
],
},
},
],
};