Skip to content

Commit

Permalink
updated lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroslav committed Jul 11, 2023
1 parent 89ecbb5 commit c101073
Show file tree
Hide file tree
Showing 4 changed files with 2,326 additions and 3,089 deletions.
14 changes: 11 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = {
env: {
browser: true,
es2021: true
es2021: true,
'cypress/globals': true
},
extends: [
'plugin:cypress/recommended',
Expand All @@ -13,7 +14,6 @@ module.exports = {
ecmaVersion: 'latest'
},
plugins: [
'vue',
'cypress'
],
rules: {
Expand All @@ -24,6 +24,14 @@ module.exports = {
'cypress/assertion-before-screenshot': 'warn',
'cypress/no-force': 'warn',
'cypress/no-async-tests': 'error',
'cypress/no-pause': 'error'
'cypress/no-pause': 'error',
'max-len': ['error', 80, {
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
ignoreComments: true
}],
'arrow-parens': ['error', 'always'],
quotes: ['error', 'single', { allowTemplateLiterals: true }],
'no-console': ['error']
}
};
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
Loading

0 comments on commit c101073

Please sign in to comment.