Skip to content

Commit

Permalink
feat: set overrides in eslint-x plugin, integrate custom ignorePatter…
Browse files Browse the repository at this point in the history
…n that was applied in x-components package config

EMP-1907
  • Loading branch information
annacv committed Aug 31, 2023
1 parent 9b26f94 commit d7086ff
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/eslint-plugin-x/lib/configs/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = {
curly: ['error', 'all'],
eqeqeq: ['error', 'always', { null: 'ignore' }],
indent: 'off',
// THESE 'max-len' rules ARE ALMOST THE SAME OVERRIDE CONFIG THAT IS SET IN x-components/.eslintrc.js for vue files, except the ignorePattern, so we will override it below in vue files
'max-len': ['error', { code: 100, ignoreComments: false, ignorePattern: 'class=".*"$' }],
'no-alert': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
Expand Down

0 comments on commit d7086ff

Please sign in to comment.