Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit b6bb3f3

Browse files
committed
Q3 2022 repo standardization
1 parent 320d31f commit b6bb3f3

File tree

14 files changed

+4125
-915
lines changed

14 files changed

+4125
-915
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
- persist_to_workspace:
3333
root: .
3434
paths:
35-
- node_modules
36-
- build-artifacts
35+
- node_modules
36+
- build-artifacts
3737

3838
test-lint:
3939
docker:

.eslintrc.js

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
11
module.exports = {
2-
parserOptions: {
3-
ecmaVersion: 2018,
4-
},
5-
plugins: [
6-
'json',
7-
],
8-
extends: [
9-
'@metamask/eslint-config',
10-
'@metamask/eslint-config/config/nodejs',
11-
'@metamask/eslint-config/config/typescript',
12-
],
13-
overrides: [{
14-
files: [
15-
'*.js',
16-
'*.json',
17-
],
18-
parserOptions: {
19-
sourceType: 'script',
2+
root: true,
3+
4+
extends: ['@metamask/eslint-config'],
5+
6+
overrides: [
7+
{
8+
files: ['*.ts'],
9+
extends: ['@metamask/eslint-config-typescript'],
10+
},
11+
12+
{
13+
files: ['*.js'],
14+
parserOptions: {
15+
sourceType: 'script',
16+
},
17+
extends: ['@metamask/eslint-config-nodejs'],
2018
},
21-
rules: {
22-
'@typescript-eslint/no-require-imports': 'off',
23-
'@typescript-eslint/no-var-requires': 'off',
19+
20+
{
21+
files: ['*.test.ts', '*.test.js'],
22+
extends: ['@metamask/eslint-config-jest'],
2423
},
25-
}],
26-
ignorePatterns: [
27-
'!eslintrc.js',
28-
'dist/',
29-
'node_modules/',
3024
],
25+
26+
ignorePatterns: ['!.eslintrc.js', '!.prettierrc.js', 'dist/'],
3127
};

.gitignore

Lines changed: 26 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,55 @@
1-
dist
2-
package-lock.json
1+
.DS_Store
2+
dist/
3+
coverage/
34

4-
# Created by https://www.gitignore.io/api/osx,node
5-
6-
### Node ###
75
# Logs
86
logs
97
*.log
108
npm-debug.log*
119
yarn-debug.log*
1210
yarn-error.log*
11+
lerna-debug.log*
12+
13+
# Diagnostic reports (https://nodejs.org/api/report.html)
14+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
1315

1416
# Runtime data
1517
pids
1618
*.pid
1719
*.seed
1820
*.pid.lock
1921

20-
# Directory for instrumented libs generated by jscoverage/JSCover
21-
lib-cov
22-
2322
# Coverage directory used by tools like istanbul
2423
coverage
24+
*.lcov
2525

2626
# nyc test coverage
2727
.nyc_output
2828

29-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
30-
.grunt
31-
32-
# Bower dependency directory (https://bower.io/)
33-
bower_components
34-
3529
# node-waf configuration
3630
.lock-wscript
3731

38-
# Compiled binary addons (http://nodejs.org/api/addons.html)
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
3933
build/Release
4034

4135
# Dependency directories
4236
node_modules/
43-
jspm_packages/
4437

45-
# Typescript v1 declaration files
46-
typings/
38+
# TypeScript cache
39+
*.tsbuildinfo
4740

4841
# Optional npm cache directory
4942
.npm
5043

5144
# Optional eslint cache
5245
.eslintcache
5346

47+
# Microbundle cache
48+
.rpt2_cache/
49+
.rts2_cache_cjs/
50+
.rts2_cache_es/
51+
.rts2_cache_umd/
52+
5453
# Optional REPL history
5554
.node_repl_history
5655

@@ -62,34 +61,14 @@ typings/
6261

6362
# dotenv environment variables file
6463
.env
64+
.env.test
6565

66+
# Stores VSCode versions used for testing VSCode extensions
67+
.vscode-test
6668

67-
### OSX ###
68-
*.DS_Store
69-
.AppleDouble
70-
.LSOverride
71-
72-
# Icon must end with two \r
73-
Icon
74-
75-
76-
# Thumbnails
77-
._*
78-
79-
# Files that might appear in the root of a volume
80-
.DocumentRevisions-V100
81-
.fseventsd
82-
.Spotlight-V100
83-
.TemporaryItems
84-
.Trashes
85-
.VolumeIcon.icns
86-
.com.apple.timemachine.donotpresent
87-
88-
# Directories potentially created on remote AFP share
89-
.AppleDB
90-
.AppleDesktop
91-
Network Trash Folder
92-
Temporary Items
93-
.apdisk
94-
95-
# End of https://www.gitignore.io/api/osx,node
69+
# yarn v2
70+
.yarn/cache
71+
.yarn/unplugged
72+
.yarn/build-state.yml
73+
.yarn/install-state.gz
74+
.pnp.*

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v12
1+
v14

.prettierrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// All of these are defaults except singleQuote, but we specify them
2+
// for explicitness
3+
module.exports = {
4+
quoteProps: 'as-needed',
5+
singleQuote: true,
6+
tabWidth: 2,
7+
trailingComma: 'all',
8+
};

.yarnrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-scripts true

0 commit comments

Comments
 (0)