forked from patw0929/react-intl-tel-input
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaning up ESLint / prettier configs and uniting them (patw0929#326)
* chore: combine prettier and eslint * chore: clean up eslint rules * chore: lint all * chore: clean up lint-staged hooks
- Loading branch information
Showing
16 changed files
with
1,523 additions
and
1,269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
module.exports = { | ||
"collectCoverageFrom": [ | ||
"src/**/*.js", | ||
"!**/__mocks__/**", | ||
"!**/__tests__/**", | ||
"!.storybook", | ||
module.exports = { | ||
collectCoverageFrom: [ | ||
'src/**/*.js', | ||
'!**/__mocks__/**', | ||
'!**/__tests__/**', | ||
'!.storybook', | ||
], | ||
"setupFiles": [ | ||
"<rootDir>/config/jest/setup.js", | ||
], | ||
"setupTestFrameworkScriptFile": "<rootDir>/config/jest/setupTestFramework.js", | ||
"testPathIgnorePatterns": [ | ||
"<rootDir>[/\\\\](build|docs|node_modules)[/\\\\]", | ||
], | ||
"testEnvironment": "jsdom", | ||
"testURL": "http://localhost", | ||
"transform": { | ||
"^.+\\.(js|jsx)$": "<rootDir>/config/jest/transform.js", | ||
"^.+\\.(scss|css)$": "<rootDir>/config/jest/cssTransform.js", | ||
"^(?!.*\\.(js|jsx|css|scss|json)$)": "<rootDir>/config/jest/fileTransform.js", | ||
setupFiles: ['<rootDir>/config/jest/setup.js'], | ||
setupTestFrameworkScriptFile: '<rootDir>/config/jest/setupTestFramework.js', | ||
testEnvironment: 'jsdom', | ||
testPathIgnorePatterns: ['<rootDir>[/\\\\](build|docs|node_modules)[/\\\\]'], | ||
testRegex: '/__tests__/.*\\.(test|spec)\\.js$', | ||
testURL: 'http://localhost', | ||
transform: { | ||
'^(?!.*\\.(js|jsx|css|scss|json)$)': | ||
'<rootDir>/config/jest/fileTransform.js', | ||
'^.+\\.(js|jsx)$': '<rootDir>/config/jest/transform.js', | ||
'^.+\\.(scss|css)$': '<rootDir>/config/jest/cssTransform.js', | ||
}, | ||
"transformIgnorePatterns": [ | ||
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$", | ||
], | ||
"testRegex": "/__tests__/.*\\.(test|spec)\\.js$", | ||
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.