-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2bbc33
commit 2dbc486
Showing
68 changed files
with
16,141 additions
and
16,863 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
{ "presets": ["@babel/preset-env"] } | ||
{ | ||
"presets": [ | ||
["@babel/env", { | ||
"targets": { | ||
"node": "current" | ||
} | ||
}] | ||
], | ||
"plugins": [ | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/plugin-proposal-object-rest-spread" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
# Ignore everything | ||
/** | ||
|
||
# Except index.js | ||
!src | ||
dist | ||
cosmicjs.browser.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
module.exports = { | ||
"extends": "airbnb-base", | ||
"rules": { | ||
// enable additional rules | ||
"no-tabs": "off", | ||
"semi": ["error", "never"], | ||
"linebreak-style": ["error", "unix"], | ||
"quotes": ["error", "single"], | ||
|
||
// override default options for rules from base configurations | ||
"comma-dangle": ["error", "never"], | ||
"no-cond-assign": ["error", "always"], | ||
"no-param-reassign": [2, { "props": false }], | ||
|
||
// disable rules from base configurations | ||
"no-console": "off", | ||
"camelcase": "off", | ||
"indent": ["error", 2] | ||
} | ||
}; | ||
extends: ['airbnb-base', 'prettier', 'plugin:node/recommended'], | ||
plugins: ['prettier'], | ||
parser: '@babel/eslint-parser', | ||
rules: { | ||
'prettier/prettier': 'error', | ||
'no-unused-vars': 'warn', | ||
'no-console': 'off', | ||
'func-names': 'off', | ||
'no-process-exit': 'off', | ||
'object-shorthand': 'off', | ||
'class-methods-use-this': 'off', | ||
'no-async-promise-executor': 'off', | ||
'no-param-reassign': 'off', | ||
'no-underscore-dangle': 'off', | ||
'no-restricted-syntax': 'off', | ||
'no-await-in-loop': 'off', | ||
'node/no-missing-import': 'off', | ||
'node/no-extraneous-require': 'off', | ||
'import/no-extraneous-dependencies': 'off', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,4 +59,5 @@ typings/ | |
# dotenv environment variables file | ||
.env | ||
|
||
test.js | ||
# Build files | ||
cosmicjs.browser.min.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lts/gallium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"semi": true, | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"useTabs": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.tabSize": 2 | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.