Added the no-only-tests eslint rule to the cypress eslint config. (#13191)

This commit is contained in:
Nick Taylor 2021-03-31 12:20:17 -04:00 committed by GitHub
parent 20c6b39a30
commit 38aa5bd96c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View file

@ -12,12 +12,13 @@ module.exports = {
parserOptions: {
sourceType: 'module',
},
plugins: ['cypress'],
plugins: ['cypress', 'no-only-tests'],
rules: {
'import/order': ['error'],
'import/prefer-default-export': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'prefer-const': ['error'],
'no-only-tests/no-only-tests': 'error',
},
overrides: [
{

View file

@ -20,7 +20,7 @@
"build-storybook": "build-storybook -c app/javascript/.storybook -s app/assets -o app/javascript/storybook-static --quiet",
"prestorybook": "yarn run storybook-prerequisites",
"storybook": "start-storybook -p 6006 -c app/javascript/.storybook -s app/assets,app/javascript/storybook-static",
"lint:frontend": "eslint app/assets/javascripts/**/*.js app/javascript/**/*.jsx app/javascript/**/*.js",
"lint:frontend": "eslint app/assets/javascripts/**/*.js app/javascript/**/*.jsx app/javascript/**/*.js cypress/**/*.js",
"pretest": "yarn run lint:frontend",
"test": "jest app/javascript/ bin/ --coverage",
"test:watch": "jest app/javascript/ bin/ --watch",
@ -119,6 +119,7 @@
"eslint-plugin-ignore-erb": "^0.1.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-no-only-tests": "^2.4.0",
"eslint-plugin-react": "^7.23.1",
"faker": "^5.5.2",
"gitdocs": "^2.0.0",

View file

@ -7812,6 +7812,11 @@ eslint-plugin-jsx-a11y@^6.3.1:
jsx-ast-utils "^3.1.0"
language-tags "^1.0.5"
eslint-plugin-no-only-tests@^2.4.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-2.4.0.tgz#7d565434aa7d16ccc7eea957c391d98f827332ca"
integrity sha512-azP9PwQYfGtXJjW273nIxQH9Ygr+5/UyeW2wEjYoDtVYPI+WPKwbj0+qcAKYUXFZLRumq4HKkFaoDBAwBoXImQ==
eslint-plugin-react-hooks@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.0.tgz#8c229c268d468956334c943bb45fc860280f5556"