Skip to content

Commit

Permalink
feat: add playwright, cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Oct 9, 2023
1 parent 9141c33 commit 18116d5
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 3 deletions.
52 changes: 52 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion projects/eslint-plugin-experience/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module.exports = {
'plugin:@taiga-ui/experience/no-restricted-syntax',
'plugin:@taiga-ui/experience/typescript',
'plugin:@taiga-ui/experience/ng',
'plugin:@taiga-ui/experience/cypress',
'plugin:@taiga-ui/experience/naming-convention',
'plugin:@taiga-ui/experience/sonar',
'plugin:@taiga-ui/experience/off',
Expand Down
7 changes: 5 additions & 2 deletions projects/eslint-plugin-experience/configs/cypress.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
module.exports = {
overrides: [
{
files: ['**/projects/demo-cypress/**/**.cy.ts'],
files: ['**/*.cy.ts'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
plugins: ['@typescript-eslint', 'cypress'],
extends: ['plugin:cypress/recommended'],
rules: {
'cypress/no-unnecessary-waiting': 'off',
'cypress/unsafe-to-chain-command': 'off',
'no-implicit-globals': 'error',
'no-restricted-properties': [
'error',
Expand Down
9 changes: 9 additions & 0 deletions projects/eslint-plugin-experience/configs/playwright.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
overrides: [
{
files: ['**/*playwright;/*.spec.ts'],
parser: '@typescript-eslint/parser',
extends: ['plugin:playwright/recommended'],
},
],
};
1 change: 1 addition & 0 deletions projects/eslint-plugin-experience/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
taiga: require('./configs/taiga.js'),
'taiga-naming-convention': require('./configs/taiga-naming-convention.js'),
jest: require('./configs/jest.js'),
playwright: require('./configs/playwright.js'),
sonar: require('./configs/sonar.js'),
'naming-convention': require('./configs/naming-convention.js'),
'no-restricted-syntax': require('./configs/no-restricted-syntax.js'),
Expand Down
2 changes: 2 additions & 0 deletions projects/eslint-plugin-experience/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@
"eslint-config-prettier": "9.0.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-import-resolver-webpack": "0.13.7",
"eslint-plugin-cypress": "2.15.1",
"eslint-plugin-decorator-position": "5.0.2",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-file-progress": "1.3.0",
"eslint-plugin-html": "7.1.0",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-jest": "27.4.2",
"eslint-plugin-playwright": "0.16.0",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-rxjs": "5.0.3",
Expand Down

0 comments on commit 18116d5

Please sign in to comment.