Skip to content

Commit

Permalink
fix: Allow running eslint on non-test files without having jest insta…
Browse files Browse the repository at this point in the history
…lled

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Jan 31, 2023
1 parent abd950c commit f15894c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ export default [
}],
// require object literal shorthand syntax
'object-shorthand': ['error', 'always'],
// Disable to not enforce install jest for not non testing files
'jest/no-deprecated-functions': ['off'],
// Warn when file extensions are not used on import paths
'import/extensions': ['warn', 'always', {
ignorePackages: true,
Expand Down Expand Up @@ -176,10 +178,11 @@ export default [
"files": ["__tests__/**/*.*s", "tests/**/*.*s"],
// globals are included in plugin:jest
rules: {
"n/no-unpublished-import": "off",
"n/no-missing-import": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
'n/no-unpublished-import': 'off',
'n/no-missing-import': 'off',
'import/no-unresolved': 'off',
'import/extensions': 'off',
'jest/no-deprecated-functions': ['error'],
},
plugins: {
jest,
Expand Down

0 comments on commit f15894c

Please sign in to comment.