File tree Expand file tree Collapse file tree 6 files changed +87
-29
lines changed
exercises/concept/train-driver Expand file tree Collapse file tree 6 files changed +87
-29
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11/node_modules
22/bin /configlet
33/bin /configlet.exe
4- /pnpm -lock.yaml
4+ /package -lock.json
55/yarn.lock
Original file line number Diff line number Diff line change 11module . exports = {
2- presets : [ '@exercism/babel-preset-javascript' ] ,
2+ presets : [ [ '@exercism/babel-preset-javascript' , { corejs : '3.40' } ] ] ,
33 plugins : [ ] ,
44} ;
Original file line number Diff line number Diff line change 1+ // @ts -check
2+
3+ import config from '@exercism/eslint-config-javascript' ;
4+ import maintainersConfig from '@exercism/eslint-config-javascript/maintainers.mjs' ;
5+
6+ import globals from 'globals' ;
7+
8+ export default [
9+ ...config ,
10+ ...maintainersConfig ,
11+ {
12+ files : maintainersConfig [ 1 ] . files ,
13+ rules : {
14+ 'jest/expect-expect' : [ 'warn' , { assertFunctionNames : [ 'expect*' ] } ] ,
15+ } ,
16+ } ,
17+ {
18+ files : [ 'scripts/**/*.mjs' ] ,
19+ languageOptions : {
20+ globals : {
21+ ...globals . node ,
22+ } ,
23+ } ,
24+ } ,
25+ // <<inject-rules-here>>
26+ {
27+ ignores : [
28+ // # Protected or generated
29+ '/.appends/**/*' ,
30+ '/.github/**/*' ,
31+ '/.vscode/**/*' ,
32+
33+ // # Binaries
34+ '/bin/*' ,
35+
36+ // # Configuration
37+ '/config' ,
38+ '/babel.config.js' ,
39+
40+ // # Typings
41+ '/exercises/**/global.d.ts' ,
42+ '/exercises/**/env.d.ts' ,
43+ ] ,
44+ } ,
45+ ] ;
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ verbose : true ,
3+ projects : [ '<rootDir>' ] ,
4+ testMatch : [
5+ '**/__tests__/**/*.[jt]s?(x)' ,
6+ '**/test/**/*.[jt]s?(x)' ,
7+ '**/?(*.)+(spec|test).[jt]s?(x)' ,
8+ ] ,
9+ testPathIgnorePatterns : [
10+ '/(?:production_)?node_modules/' ,
11+ '.d.ts$' ,
12+ '<rootDir>/test/fixtures' ,
13+ '<rootDir>/test/helpers' ,
14+ '__mocks__' ,
15+ ] ,
16+ transform : {
17+ '^.+\\.[jt]sx?$' : 'babel-jest' ,
18+ } ,
19+ moduleNameMapper : {
20+ '^(\\.\\/.+)\\.js$' : '$1' ,
21+ } ,
22+ } ;
Original file line number Diff line number Diff line change 1010 "directory" : " exercises/concept/train-driver"
1111 },
1212 "devDependencies" : {
13- "@babel/core" : " ^7.22.10" ,
14- "@exercism/babel-preset-javascript" : " ^0.2.1" ,
15- "@exercism/eslint-config-javascript" : " ^0.6.0" ,
16- "@types/jest" : " ^29.5.4" ,
17- "@types/node" : " ^20.5.6" ,
18- "babel-jest" : " ^29.6.4" ,
19- "core-js" : " ~3.32.1" ,
20- "eslint" : " ^8.49.0" ,
21- "jest" : " ^29.6.3"
13+ "@exercism/babel-preset-javascript" : " ^0.5.1" ,
14+ "@exercism/eslint-config-javascript" : " ^0.8.1" ,
15+ "@jest/globals" : " ^29.7.0" ,
16+ "@types/node" : " ^22.15.29" ,
17+ "@types/shelljs" : " ^0.8.16" ,
18+ "babel-jest" : " ^29.7.0" ,
19+ "core-js" : " ~3.42.0" ,
20+ "diff" : " ^8.0.2" ,
21+ "eslint" : " ^9.28.0" ,
22+ "expect" : " ^29.7.0" ,
23+ "globals" : " ^16.2.0" ,
24+ "jest" : " ^29.7.0"
2225 },
2326 "dependencies" : {},
2427 "scripts" : {
25- "test" : " jest ./*" ,
26- "watch" : " jest --watch ./*" ,
27- "lint" : " eslint ."
28- }
28+ "lint" : " corepack pnpm eslint ." ,
29+ "test" : " corepack pnpm jest" ,
30+ "watch" : " corepack pnpm jest --watch" ,
31+ "format" : " corepack pnpm prettier -w ."
32+ },
33+ "packageManager" :
" [email protected] " 2934}
You can’t perform that action at this time.
0 commit comments