Encountering some unusual errors from eslint CI regarding my jest.config.js file.
1:1 error Rule 'no-empty-label' has been replaced by: no-labels no-empty-label
1:1 error Rule 'no-reserved-keys' has been replaced by: quote-props no-reserved-keys
1:1 error Rule 'space-after-keywords' has been replaced by: keyword-spacing space-after-keywords
1:1 error Rule 'space-return-throw-case' has been replaced by: keyword-spacing space-return-throw-case
Error messages seem to be related to a JavaScript keyword, but none is visible. Here's the complete content of jest.config.js:
/* global module */
module.exports = {
roots: [
'<rootDir>/src'
],
collectCoverageFrom: [
'src/**/*.{js,jsx,ts,tsx}',
'!src/**/*.d.ts'
],
setupFiles: [
'react-app-polyfill/jsdom'
],
setupFilesAfterEnv: [
'<rootDir>/src/setupTests.js'
],
testMatch: [
'<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}',
'<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}'
],
testEnvironment: 'jest-environment-jsdom-fourteen',
testPathIgnorePatterns: [
'<rootDir>/src/__tests__/specHelpers/',
'<rootDir>/src/__tests__/mocks/'
],
transform: {
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest',
'^.+\\.css$': '<rootDir>/config/jest/cssTransform.js',
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '<rootDir>/config/jest/fileTransform.js'
],
transformIgnorePatterns: [
'[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$',
'^.+\\.module\\.(css|sass|scss)$'
],
modulePaths: [
'<rootDir>/src'
],
moduleNameMapper: {
'^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy'
],
moduleFileExtensions: [
'web.js',
'js',
'web.ts',
'ts',
'web.tsx',
'tsx',
'json',
'web.jsx',
'jsx',
'node'
],
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname'
]
};
Is anyone able to pinpoint what the eslint errors are referring to?