Skip to content

Commit

Permalink
Add eslint-plugin-codeceptjs
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvetta committed Mar 31, 2022
1 parent 2719a9e commit 3d40e80
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
4 changes: 1 addition & 3 deletions modules/codecept/eslint.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module.exports = {
globals: {
Feature: true,
Scenario: true,
inject: true,
codeceptjs: true,
tryTo: true,
},
ignorePatterns: ['**/report/'],
Expand Down
3 changes: 2 additions & 1 deletion modules/tools/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
commonjs: true,
es6: true,
node: true,
"codeceptjs/codeceptjs": true,
},
extends: 'eslint:recommended',
globals: {
Expand All @@ -20,5 +21,5 @@ module.exports = {
'folders/match-regex': [2, eitherLatinOrCyrillicRegex, `${process.cwd()}/`],
'filenames/match-regex': [2, eitherLatinOrCyrillicRegex],
},
plugins: ['folders', 'filenames'],
plugins: ['folders', 'filenames', 'codeceptjs'],
}
7 changes: 4 additions & 3 deletions modules/tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"cross-spawn": "^7.0.3",
"dotenv": "^8.1.0",
"eslint": "^7.25.0",
"eslint-plugin-codeceptjs": "^1.3.0",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-folders": "^1.0.3",
"fast-glob": "^3.2.5",
"find-root": "^1.1.0",
"fs-extra": "^10.0.0",
Expand All @@ -37,9 +40,7 @@
"prettier": "2.2.1",
"readline-sync": "^1.4.10",
"validate-npm-package-name": "^3.0.0",
"yargs": "^16.2.0",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-folders": "^1.0.3"
"yargs": "^16.2.0"
},
"repository": {
"type": "git",
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6233,6 +6233,13 @@ escodegen@^2.0.0:
optionalDependencies:
source-map "~0.6.1"

eslint-plugin-codeceptjs@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-codeceptjs/-/eslint-plugin-codeceptjs-1.3.0.tgz#7bd12fc58b5a950fdcc62c6e2dcf82897d58a100"
integrity sha512-KdRRVJxzE1Ts9SNMKn1Zt3clA1D+hl49zugiq0rncuAp0SCUlkLEacxf0nR16q4KOI1t+5kF+J9goF4iN/m+GA==
dependencies:
requireindex "~1.1.0"

eslint-plugin-filenames@^1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-filenames/-/eslint-plugin-filenames-1.3.2.tgz#7094f00d7aefdd6999e3ac19f72cea058e590cf7"
Expand Down Expand Up @@ -12037,6 +12044,11 @@ requireg@^0.2.2:
rc "~1.2.7"
resolve "~1.7.1"

requireindex@~1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/requireindex/-/requireindex-1.1.0.tgz#e5404b81557ef75db6e49c5a72004893fe03e162"
integrity sha1-5UBLgVV+91225JxacgBIk/4D4WI=

reselect@^4.0.0:
version "4.1.5"
resolved "https://registry.yarnpkg.com/reselect/-/reselect-4.1.5.tgz#852c361247198da6756d07d9296c2b51eddb79f6"
Expand Down

0 comments on commit 3d40e80

Please sign in to comment.