Skip to content

Commit

Permalink
Remove no longer needed explicit strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
octo-topi committed May 22, 2023
1 parent 151db0c commit 99b638f
Show file tree
Hide file tree
Showing 17 changed files with 42 additions and 17 deletions.
1 change: 0 additions & 1 deletion api/db/seeds/seed.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import { DatabaseBuilder } from '../database-builder/database-builder.js';
import { featuresBuilder } from './data/feature/feature-builder.js';
import { answersBuilder } from './data/answers-builder.js';
Expand Down
2 changes: 1 addition & 1 deletion api/scripts/add-tags-to-organizations.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Usage: node add-tags-to-organizations.js path/file.csv
// To use on file with columns |organizationId, tagName|

'use strict';
import dotenv from 'dotenv';

dotenv.config();
Expand All @@ -10,6 +9,7 @@ import * as tagRepository from '../lib/infrastructure/repositories/tag-repositor
import { OrganizationTag } from '../lib/domain/models/OrganizationTag.js';
import { parseCsv } from './helpers/csvHelpers.js';
import lodash from 'lodash';

const { uniq } = lodash;
import { disconnect } from '../db/knex-database-connection.js';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint no-console: ["off"] */
'use strict';
import dotenv from 'dotenv';

dotenv.config();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use strict';
import dotenv from 'dotenv';

dotenv.config();

import fs from 'fs';
import bluebird from 'bluebird';
import lodash from 'lodash';

const { isEmpty, compact } = lodash;
import { logger } from '../../lib/infrastructure/logger.js';
import * as certificateRepository from '../../lib/infrastructure/repositories/certificate-repository.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// File Millésime 2021 : Liste des pays et territoires étrangers au 01/01/2021
// downloaded from https://www.data.gouv.fr/fr/datasets/code-officiel-geographique-cog/

'use strict';
import { parseCsv } from '../helpers/csvHelpers.js';
import { knex, disconnect } from '../../db/knex-database-connection.js';
import { normalizeAndSortChars } from '../../lib/infrastructure/utils/string-utils.js';
Expand Down
1 change: 0 additions & 1 deletion api/scripts/certification/launch-auto-jury-for-session.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import dotenv from 'dotenv';

dotenv.config();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import dotenv from 'dotenv';

dotenv.config();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import _ from 'lodash';
import bluebird from 'bluebird';

Expand Down
1 change: 0 additions & 1 deletion api/scripts/create-or-update-sco-agri-organizations.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Usage: scalingo scalingo --region osc-secnum-fr1 -a pix-api-production run --file file.csv node scripts/create-or-update-sco-agri-organizations.js /tmp/uploads/file.csv
// To use on file with columns |externalId, name, email| (email is optional)

'use strict';
import dotenv from 'dotenv';

dotenv.config();
Expand Down
1 change: 0 additions & 1 deletion api/scripts/create-or-update-sco-organizations.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Usage: BASE_URL=... PIXMASTER_EMAIL=... PIXMASTER_PASSWORD=... node create-or-update-sco-organizations.js path/file.csv
// To use on file with columns |externalId, name|

'use strict';
import dotenv from 'dotenv';

dotenv.config();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Usage: node create-organizations-with-tags-and-target-profiles.js path/file.csv
// To use on file with columns |type, externalId, name, provinceCode, credit, emailInvitations, emailForSCOActivation, organizationInvitationRole, locale, tags, createdBy, targetProfiles, isManagingStudents, identityProviderForCampaigns, DPOFirstName, DPOLastName, DPOEmail|

'use strict';
import dotenv from 'dotenv';

dotenv.config();
Expand Down
2 changes: 1 addition & 1 deletion api/scripts/data-generation/generate-certif-cli.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import * as url from 'url';

const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
Expand All @@ -10,6 +9,7 @@ dotenv.config({ path: `${__dirname}/../../.env` });
import { knex, disconnect } from '../../db/knex-database-connection.js';
import bluebird from 'bluebird';
import lodash from 'lodash';

const { maxBy } = lodash;
import { logger } from '../../lib/infrastructure/logger.js';
import { getNewSessionCode } from '../../lib/domain/services/session-code-service.js';
Expand Down
2 changes: 1 addition & 1 deletion api/scripts/refresh-cache.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
import dotenv from 'dotenv';

dotenv.config();
import { logger } from '../lib/infrastructure/logger.js';
import { learningContentCache } from '../lib/infrastructure/caches/learning-content-cache.js';
Expand Down
1 change: 0 additions & 1 deletion api/scripts/switch-campaign-to-flash.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import _ from 'lodash';
import dotenv from 'dotenv';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Usage: BASE_URL=... PIXMASTER_EMAIL=... PIXMASTER_PASSWORD=... node update-sco-organizations-with-is-managing-students-to-true.js path/file.csv
// To use on file with columns |externalId|

'use strict';
import dotenv from 'dotenv';

dotenv.config();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import dotenv from 'dotenv';

dotenv.config();
Expand Down
38 changes: 38 additions & 0 deletions ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
usage: git tag [-a | -s | -u <key-id>] [-f] [-m <msg> | -F <file>]
<tagname> [<head>]
or: git tag -d <tagname>...
or: git tag -l [-n[<num>]] [--contains <commit>] [--no-contains <commit>] [--points-at <object>]
[--format=<format>] [--merged <commit>] [--no-merged <commit>] [<pattern>...]
or: git tag -v [--format=<format>] <tagname>...

-l, --list list tag names
-n[<n>] print <n> lines of each tag message
-d, --delete delete tags
-v, --verify verify tags

Tag creation options
-a, --annotate annotated tag, needs a message
-m, --message <message>
tag message
-F, --file <file> read message from file
-e, --edit force edit of tag message
-s, --sign annotated and GPG-signed tag
--cleanup <mode> how to strip spaces and #comments from message
-u, --local-user <key-id>
use another key to sign the tag
-f, --force replace the tag if exists
--create-reflog create a reflog

Tag listing options
--column[=<style>] show tag list in columns
--contains <commit> print only tags that contain the commit
--no-contains <commit>
print only tags that don't contain the commit
--merged <commit> print only tags that are merged
--no-merged <commit> print only tags that are not merged
--sort <key> field name to sort on
--points-at <object> print only tags of the object
--format <format> format to use for the output
--color[=<when>] respect format colors
-i, --ignore-case sorting and filtering are case insensitive

0 comments on commit 99b638f

Please sign in to comment.