Socket
Socket
Sign inDemoInstall

@corva/eslint-config-browser

Package Overview
Dependencies
335
Maintainers
14
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0-4ba6d7f to 0.0.0-a0e218c

44

eslint/enforce-test-ids/createConfig.js
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'] },
],
},
});

11

package.json
{
"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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc