mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-16 16:19:48 -05:00
Enable react linting and move test file to .jsx instead of .js.
This commit is contained in:
parent
0e09e29c80
commit
98a25068d6
3 changed files with 6 additions and 6 deletions
|
@ -140,7 +140,6 @@
|
||||||
"setupFiles": [
|
"setupFiles": [
|
||||||
"<rootDir>/test/helpers/enzyme-setup.js"
|
"<rootDir>/test/helpers/enzyme-setup.js"
|
||||||
],
|
],
|
||||||
|
|
||||||
"moduleNameMapper": {
|
"moduleNameMapper": {
|
||||||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/__mocks__/fileMock.js",
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/__mocks__/fileMock.js",
|
||||||
"\\.(css|less|scss)$": "<rootDir>/test/__mocks__/styleMock.js"
|
"\\.(css|less|scss)$": "<rootDir>/test/__mocks__/styleMock.js"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
extends: ['scratch/react'],
|
||||||
env: {
|
env: {
|
||||||
jest: true
|
jest: true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue