-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation and an
order
function (#30)
* Update and add documentation * Fix build * fix up linging and CI CD * Package
- Loading branch information
1 parent
e361e9e
commit 39ac11d
Showing
23 changed files
with
3,361 additions
and
2,011 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
node_modules/ | ||
dist | ||
coverage | ||
jest.config.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,48 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module", | ||
"project": "./tsconfig.json", | ||
"tsconfigRootDir": "." | ||
}, | ||
"env": { | ||
"jest/globals": true | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"jest", | ||
"prettier" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier/@typescript-eslint", | ||
"plugin:prettier/recommended", | ||
"plugin:import/typescript", | ||
"plugin:import/errors", | ||
"plugin:import/warnings" | ||
], | ||
"rules": { | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/array-type": [ | ||
"warn", | ||
{ | ||
"default": "generic" | ||
} | ||
], | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"import/prefer-default-export": "off", | ||
"no-undef": "off", | ||
"no-unused-expressions": [ | ||
"warn", | ||
{ | ||
"allowShortCircuit": true, | ||
"allowTernary": true | ||
} | ||
], | ||
"no-prototype-builtins": "off" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"printWidth": 80, | ||
"useTabs": false, | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"bracketSpacing": false, | ||
"quoteProps": "consistent" | ||
} |
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,7 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"pmneo.tsimporter", | ||
"coenraads.bracket-pair-colorizer", | ||
] | ||
} |
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,11 @@ | ||
{ | ||
"editor.rulers": [ | ||
80, | ||
120 | ||
], | ||
"editor.formatOnSave": false, | ||
"eslint.enable": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
} | ||
} |
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
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,13 +1,18 @@ | ||
import orderedJSON from '../src/index'; | ||
import order from '../src/order'; | ||
import parse from '../src/parse'; | ||
import stringify from '../src/stringify'; | ||
import orderedJSON from '../src'; | ||
|
||
describe('package export', () => { | ||
it('parse correctly configured', () => { | ||
expect(orderedJSON.parse).toBe(parse); | ||
}); | ||
it('parse correctly configured', () => { | ||
expect(orderedJSON.parse).toBe(parse); | ||
}); | ||
|
||
it('stringify correctly configured', () => { | ||
expect(orderedJSON.stringify).toBe(stringify); | ||
}); | ||
it('stringify correctly configured', () => { | ||
expect(orderedJSON.stringify).toBe(stringify); | ||
}); | ||
|
||
it('order correctly configured', () => { | ||
expect(orderedJSON.order).toBe(order); | ||
}); | ||
}); |
Oops, something went wrong.