Skip to content

Commit

Permalink
chore(eslint): move cypress eslint rules to root
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed May 20, 2021
1 parent ac5c76b commit 3f9f82a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
13 changes: 11 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ const { config } = require('@dhis2/cli-style')

module.exports = {
root: true,
plugins: ['react-hooks', 'i18next', 'jsx-a11y'],
plugins: ['react-hooks', 'i18next'],
extends: [
config.eslintReact,
'plugin:jsx-a11y/recommended',
'plugin:compat/recommended',
],
globals: {
cy: 'readonly',
},
rules: {
'compat/compat': 'warn',
'i18next/no-literal-string': [
Expand All @@ -36,7 +39,6 @@ module.exports = {
],
'import/no-useless-path-segments': 'error',
'import/order': ['error', { 'newlines-between': 'never' }],
'react/require-default-props': 'warn',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
},
Expand All @@ -59,5 +61,12 @@ module.exports = {
'import/no-unused-modules': 'off',
},
},
{
files: ['cypress/**/*.js'],
rules: {
'import/no-unassigned-import': 'off',
'import/no-unused-modules': 'off',
},
},
],
}
9 changes: 0 additions & 9 deletions cypress/.eslintrc.js

This file was deleted.

0 comments on commit 3f9f82a

Please sign in to comment.