Skip to content

Commit

Permalink
enforce lowercase filenames (covidatlas#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
camjc authored Apr 8, 2020
1 parent 646dc96 commit 9f369f6
Show file tree
Hide file tree
Showing 18 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
"no-restricted-syntax": "off",
"no-shadow": "off",
"no-underscore-dangle": "off",
"unicorn/filename-case": [
"error",
{
"case": "kebabCase"
}
],
"unicorn/prefer-includes": "error"
}
}
2 changes: 1 addition & 1 deletion .github/workflows/status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ jobs:
RUN_NUMBER: ${{ github.run_id }}
SLACK_STATUS_HOOK: ${{ secrets.SLACK_STATUS_HOOK }}
run: |
node ./scripts/statusSlackBot.js send ${SLACK_STATUS_HOOK}
node ./scripts/status-slack-bot.js send ${SLACK_STATUS_HOOK}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"qa": "pta ./src/qa/*.qa.js -r log | node src/qa/utils/qa-reporter.js",
"test": "tape tests/**/*-test.js | tap-spec",
"test:watch": "tape-watch tests/**/*-test.js -p tap-spec",
"test:tz": "tape scripts/testTimezones.js | tap-spec",
"test:tz": "tape scripts/test-timezones.js | tap-spec",
"timeseries": "node src/shared/timeseries/index.js",
"update": "npm run updateModules && rm -rf cache/* && npm run start",
"updateModules": "git submodule update --remote",
Expand Down
2 changes: 1 addition & 1 deletion scripts/statusSlackBot.js → scripts/status-slack-bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const fs = imports('../src/shared/lib/fs.js');
const datetime = imports('../src/shared/lib/datetime/index.js').default;

const { argv } = yargs
.scriptName('node ./scripts/statusSlackBot.js')
.scriptName('node ./scripts/status-slack-bot.js')
.usage('$0 <cmd> [args]')
.command('send [hook]', 'sends report.json to provided Slack Hook', yargs => {
yargs.positional('hook', {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion site/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import './style.css';
import showMap from './map.js';
import showFile from './file.js';
import showSources from './sources.js';
import showCrossCheckReport from './crossCheckReport.js';
import showCrossCheckReport from './cross-check-report.js';

const pages = {
'#home': '.cds-Home',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/shared/timeseries/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const fs = imports('../lib/fs.js');
const transform = imports('../lib/transform.js');
const geography = imports('../lib/geography/index.js');
const datetime = imports('../lib/datetime/index.js').default;
const runCrawler = imports('./runCrawler.js').default;
const runCrawler = imports('./run-crawler.js').default;

const clearAllTimeouts = imports('../utils/timeouts.js').default;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const imports = require('esm')(module);

const { generateCrossCheckPage } = imports('../site/crossCheckReport.js');
const { generateCrossCheckPage } = imports('../site/cross-check-report.js');
const fs = imports('../src/shared/lib/fs.js');
// eslint-disable-next-line import/no-unresolved
const report = require('../dist/report.json');
Expand Down
File renamed without changes.

0 comments on commit 9f369f6

Please sign in to comment.