File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ module.exports = {
5252 'comma-dangle' : 'off' , // https://eslint.org/docs/rules/comma-dangle
5353 'function-paren-newline' : 'off' , // https://eslint.org/docs/rules/function-paren-newline
5454 'global-require' : 'off' , // https://eslint.org/docs/rules/global-require
55- "import/extensions" : [ "error" , "ignorePackages" ] ,
55+ // Turn this on when we have migrated all import paths to use `.js`
56+ // "import/extensions": ["error", "ignorePackages"],
5657 "import/no-unresolved" : "off" ,
5758 'import/no-dynamic-require' : 'off' , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-dynamic-require.md
5859 'no-inner-declarations' : 'off' , // https://eslint.org/docs/rules/no-inner-declarations// New rules
Original file line number Diff line number Diff line change 7272 "test-query" : " PWDEBUG=1 npx playwright test \" e2e.spec.ts\" -g" ,
7373 "typecheck" : " tsc --noEmit"
7474 },
75+ "type" : " module" ,
7576 "version" : " 0.34.0"
7677}
Original file line number Diff line number Diff line change 1- import React , { ReactNode } from 'react' ;
2- import { useContext } from 'react' ;
1+ import React , { ReactNode , useContext } from 'react' ;
32import { DarkModeOption , useDarkMode } from './useDarkMode' ;
43import {
54 useLocalStorage ,
Original file line number Diff line number Diff line change 22 "extends" : " ../tsconfig.build.json" ,
33 "compilerOptions" : {
44 "composite" : true ,
5+ // We overwrite this so we don't have to use `.js` extensions in imports
6+ "moduleResolution" : " node" ,
57 "outDir" : " ./dist" ,
68 "strictNullChecks" : true ,
79 },
You can’t perform that action at this time.
0 commit comments