@corva/eslint-config-browser
Advanced tools
Comparing version 0.0.0-4ba6d7f to 0.0.0-a0e218c
module.exports.createConfig = severity => ({ | ||
plugins: ['test-selectors', 'testing-library'], | ||
plugins: ['@corva/test-selectors', 'testing-library'], | ||
rules: { | ||
@@ -12,10 +12,38 @@ 'testing-library/consistent-data-testid': [ | ||
], | ||
'test-selectors/anchor': [severity, 'always', { testAttribute: ['data-testid', 'testId'] }], | ||
'test-selectors/button': [severity, 'always', { testAttribute: ['data-testid', 'testId'] }], | ||
'test-selectors/input': [severity, 'always', { testAttribute: ['data-testid', 'testId'] }], | ||
'test-selectors/onChange': [severity, 'always', { testAttribute: ['data-testid', 'testId'] }], | ||
'test-selectors/onClick': [severity, 'always', { testAttribute: ['data-testid', 'testId'] }], | ||
'test-selectors/onKeyDown': [severity, 'always', { testAttribute: ['data-testid', 'testId'] }], | ||
'test-selectors/onKeyUp': [severity, 'always', { testAttribute: ['data-testid', 'testId'] }], | ||
'@corva/test-selectors/anchor': [ | ||
severity, | ||
'always', | ||
{ testAttribute: ['data-testid', 'testId'] }, | ||
], | ||
'@corva/test-selectors/button': [ | ||
severity, | ||
'always', | ||
{ testAttribute: ['data-testid', 'testId'] }, | ||
], | ||
'@corva/test-selectors/input': [ | ||
severity, | ||
'always', | ||
{ testAttribute: ['data-testid', 'testId'] }, | ||
], | ||
'@corva/test-selectors/onChange': [ | ||
severity, | ||
'always', | ||
{ testAttribute: ['data-testid', 'testId'] }, | ||
], | ||
'@corva/test-selectors/onClick': [ | ||
severity, | ||
'always', | ||
{ testAttribute: ['data-testid', 'testId'] }, | ||
], | ||
'@corva/test-selectors/onKeyDown': [ | ||
severity, | ||
'always', | ||
{ testAttribute: ['data-testid', 'testId'] }, | ||
], | ||
'@corva/test-selectors/onKeyUp': [ | ||
severity, | ||
'always', | ||
{ testAttribute: ['data-testid', 'testId'] }, | ||
], | ||
}, | ||
}); |
{ | ||
"name": "@corva/eslint-config-browser", | ||
"version": "0.0.0-4ba6d7f", | ||
"version": "0.0.0-a0e218c", | ||
"description": "Defines global linting rules for Corva.AI frontend projects", | ||
@@ -13,5 +13,6 @@ "keywords": [ | ||
"files": [ | ||
"eslint/enforce-test-ids", | ||
"eslint/eslint-plugin-test-selectors", | ||
"eslint/index.js", | ||
"eslint/enforce-test-ids/createConfig.js", | ||
"eslint/enforce-test-ids/loose.js", | ||
"eslint/enforce-test-ids/strict.js", | ||
"prettier/index.js" | ||
@@ -33,2 +34,3 @@ ], | ||
"@babel/preset-react": "7.12.10", | ||
"@corva/eslint-plugin-test-selectors": "^0.0.0-c339759", | ||
"eslint": "^7.22.0", | ||
@@ -42,5 +44,2 @@ "eslint-config-airbnb": "^18.2.1", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"jsx-ast-utils": "^3.2.1", | ||
"requireindex": "^1.2.0", | ||
"eslint-plugin-test-selectors": "file:./eslint/eslint-plugin-test-selectors", | ||
"eslint-plugin-testing-library": "^6.2.0", | ||
@@ -47,0 +46,0 @@ "prettier": "^2.0.0" |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
14
6883
7
167
+ Added@corva/eslint-plugin-test-selectors@0.0.0-c339759(transitive)
- Removedeslint-plugin-test-selectors@file:./eslint/eslint-plugin-test-selectors
- Removedjsx-ast-utils@^3.2.1
- Removedrequireindex@^1.2.0