Skip to content

Commit

Permalink
Merge pull request #67 from osmosis-labs/osmo-query
Browse files Browse the repository at this point in the history
Osmo query
  • Loading branch information
pyramation authored Aug 4, 2023
2 parents cd04a66 + d65a556 commit f9dd7e6
Show file tree
Hide file tree
Showing 421 changed files with 171,250 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/osmo-query/.babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const useESModules = !!process.env.MODULE;

module.exports = (api) => {
api.cache(() => process.env.MODULE);
return {
plugins: [
['@babel/transform-runtime', { useESModules }],
'@babel/proposal-object-rest-spread',
'@babel/proposal-class-properties',
'@babel/plugin-proposal-numeric-separator',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-proposal-optional-chaining',
'@babel/proposal-export-default-from'
],
presets: useESModules ? ['@babel/typescript'] : ['@babel/typescript', ['@babel/env', {targets: {node: 'current'}}]]
};
};
12 changes: 12 additions & 0 deletions packages/osmo-query/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
5 changes: 5 additions & 0 deletions packages/osmo-query/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
dist/
main/
module/
coverage/
71 changes: 71 additions & 0 deletions packages/osmo-query/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
module.exports = {
plugins: ['prettier'],
extends: ['eslint:recommended', 'prettier'],
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 11,
requireConfigFile: false,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
env: {
es6: true,
browser: true,
node: true,
jest: true
},
rules: {
'no-debugger': 2,
'no-alert': 2,
'no-await-in-loop': 0,
'no-prototype-builtins': 0,
'no-return-assign': ['error', 'except-parens'],
'no-restricted-syntax': [
2,
'ForInStatement',
'LabeledStatement',
'WithStatement'
],
'no-unused-vars': [
0,
{
ignoreSiblings: true,
argsIgnorePattern: 'React|res|next|^_'
}
],
'prefer-const': [
'error',
{
destructuring: 'all'
}
],
'no-unused-expressions': [
2,
{
allowTaggedTemplates: true
}
],
'no-console': 1,
'comma-dangle': 2,
'jsx-quotes': [2, 'prefer-double'],
'linebreak-style': ['error', 'unix'],
quotes: [
2,
'single',
{
avoidEscape: true,
allowTemplateLiterals: true
}
],
'prettier/prettier': [
'error',
{
trailingComma: 'none',
singleQuote: true,
printWidth: 80
}
]
}
};
53 changes: 53 additions & 0 deletions packages/osmo-query/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# dist
dist
mjs
main
module

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# Editors
.idea

# Lib
lib

# npm package lock
package-lock.json
yarn.lock

# others
.DS_Store

# test file
tests/bin/
43 changes: 43 additions & 0 deletions packages/osmo-query/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
*.log
npm-debug.log*

protobuf
out
*.proto

# snapshots
*.snap

# Coverage directory used by tools like istanbul
coverage
.nyc_output

# Dependency directories
node_modules

# npm package lock
package-lock.json
yarn.lock

# project files
__snapshots__
__fixtures__
__tests__
.babelrc
.babelrc.js
.editorconfig
.eslintignore
.eslintrc
.eslintrc.js
.gitignore
.travis.yml
.vscode
CHANGELOG.md
examples
jest.config.js
package.json
test
out

# test file
tests/configs/values.json
1 change: 1 addition & 0 deletions packages/osmo-query/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scripts-prepend-node-path=true
18 changes: 18 additions & 0 deletions packages/osmo-query/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"editor.formatOnSave": true,
"[javascriptreact]": {
"editor.formatOnSave": false
},
"[javascript]": {
"editor.formatOnSave": false
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": [
"javascript",
"javascriptreact"
],
"editor.insertSpaces": true,
"editor.tabSize": 2
}
Loading

0 comments on commit f9dd7e6

Please sign in to comment.