build: eslint@4.19.1
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 06d1175 · Browse files · 9 files·+24 added−9 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
9 files+24 added−9 removed
- other:+24 added−9 removed
Provenance
- Commit
de081eb- Tree
f4d95c8- Author
Douglas Christopher Wilson <doug@somethingdoug.com>- Committer
Douglas Christopher Wilson <doug@somethingdoug.com>- Parent
06d1175
9 files changed+24 added−9 removed
modified:.github/workflows/ci.yml+13 added
99 unmodified lines1001011021031041051061071081091101111121131141151161171181198 unmodified lines12812913013113213313413513614 unmodified lines99 unmodified lines
- name: Remove non-test dependencies run: npm rm --silent --save-dev connect-redis
- name: Setup Node.js version-specific dependencies shell: bash run: | # eslint for linting # - remove on Node.js < 4 if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 4 ]]; then node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \ grep -E '^eslint(-|$)' | \ sort -r | \ xargs -n1 npm rm --silent --save-dev fi
- name: Install Node.js dependencies run: npm install
- name: List environment8 unmodified lines shell: bash run: npm run test-ci
- name: Lint code if: steps.list_env.outputs.eslint != '' run: npm run lint
- name: Collect code coverage uses: coverallsapp/github-action@master14 unmodified linesmodified:examples/params/index.js+1 added-1 removed
6 unmodified lines7 8 // Faux database9 10 var users = [11- { name: 'tj' }11+ { name: 'tj' }12 , { name: 'tobi' }13 , { name: 'loki' }14 , { name: 'jane' }15 , { name: 'bandit' }63 unmodified linesmodified:examples/resource/index.js+1 added-1 removed
24 unmodified lines25 26 // Fake records27 28 var users = [29- { name: 'tj' }29+ { name: 'tj' }30 , { name: 'ciaran' }31 , { name: 'aaron' }32 , { name: 'guillermo' }33 , { name: 'simon' }60 unmodified linesmodified:examples/route-middleware/index.js+1 added-1 removed
13 unmodified lines14 // curl -X DELETE http://localhost:3000/user/0 (unauthorized since you are not an admin)15 16 // Dummy users17 var users = [18- { id: 0, name: 'tj', email: 'tj@vision-media.ca', role: 'member' }18+ { id: 0, name: 'tj', email: 'tj@vision-media.ca', role: 'member' }19 , { id: 1, name: 'ciaran', email: 'ciaranj@gmail.com', role: 'member' }20 , { id: 2, name: 'aaron', email: 'aaron.heckmann+github@gmail.com', role: 'admin' }21 ];22 66 unmodified linesmodified:examples/web-service/index.js+1 added-1 removed
53 unmodified lines54 { name: 'cluster', url: 'https://github.com/learnboost/cluster' }55 ];56 57 var users = [58- { name: 'tobi' }58+ { name: 'tobi' }59 , { name: 'loki' }60 , { name: 'jane' }61 ];62 53 unmodified linesmodified:lib/response.js+1 added-1 removed
724 unmodified lines725 if (prev) {726 // concat the new and prev vals727 value = Array.isArray(prev) ? prev.concat(val)728 : Array.isArray(val) ? [prev].concat(val)729- : [prev, val];729+ : [prev, val]730 }731 732 return this.set(field, value);733 };409 unmodified linesmodified:.eslintrc.yml+1 added-1 removed
123456678root: true
rules: eol-last: error eqeqeq: [error, allow-null] indent: [error, 2, { SwitchCase: 1 }] indent: [error, 2, { MemberExpression: "off", SwitchCase: 1 }] no-trailing-spaces: error no-unused-vars: [error, { vars: all, args: none, ignoreRestSiblings: true }]modified:appveyor.yml+4 added-2 removed
27 unmodified lines28 # Remove all non-test dependencies29 - ps: |30 # Remove example dependencies31 npm rm --silent --save-dev connect-redis32+ # Remove lint dependencies33+ cmd.exe /c "node -pe `"Object.keys(require('./package').devDependencies).join('\n')`"" | `34+ sls "^eslint(-|$)" | `35+ %{ npm rm --silent --save-dev $_ }36 # Setup Node.js version-specific dependencies37 - ps: |38 # mocha for testing39 # - use 3.x for Node.js < 434 unmodified lines74 node --version75 npm --version76 # Run test script77 - npm run test-ci74- # Run linting75- - npm run lint78 version: "{build}"modified:package.json+1 added-1 removed
63 unmodified lines64 "connect-redis": "3.4.2",65 "cookie-parser": "~1.4.4",66 "cookie-session": "1.3.3",67 "ejs": "3.1.6",68- "eslint": "2.13.1",68+ "eslint": "4.19.1",69 "express-session": "1.17.0",70 "hbs": "4.1.2",71 "istanbul": "0.4.5",72 "marked": "0.7.0",27 unmodified lines