jason-formatter
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -8,4 +8,14 @@ module.exports = { | ||
}, | ||
ignorePatterns: ['node_modules'], | ||
extends: ['airbnb-base', 'prettier', 'eslint:recommended'], | ||
ignorePatterns: ['node_modules', 'build'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
extends: [ | ||
'airbnb-base', | ||
'prettier', | ||
'eslint:recommended', | ||
'plugin:import/recommended', | ||
'plugin:import/typescript', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:@typescript-eslint/recommended' | ||
], | ||
parserOptions: { | ||
@@ -17,7 +27,11 @@ ecmaVersion: 2021, | ||
quotes: ['warn', 'single', 'avoid-escape'], | ||
'no-plusplus': 'off', | ||
'on-var': 'off', | ||
'max-classes-per-file': 'off', | ||
'no-console': 'off' | ||
'no-console': 'off', | ||
'import/extensions': [ | ||
'error', | ||
'ignorePackages', | ||
{ | ||
ts: 'never' | ||
} | ||
] | ||
} | ||
}; | ||
} |
{ | ||
"name": "jason-formatter", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "A Command Line tool to format JSON", | ||
"main": "src/index.js", | ||
"main": "./build/src/index.js", | ||
"repository": { | ||
@@ -15,3 +15,3 @@ "type": "git", | ||
"bin": { | ||
"jason": "src/cli.js" | ||
"jason": "./build/src/jason.js" | ||
}, | ||
@@ -32,2 +32,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/colors": "^1.2.1", | ||
"@types/node": "^16.9.1", | ||
"@typescript-eslint/eslint-plugin": "^4.31.0", | ||
"@typescript-eslint/parser": "^4.31.0", | ||
"eslint": "^7.31.0", | ||
@@ -40,4 +44,7 @@ "eslint-config-airbnb-base": "^14.2.1", | ||
"prettier-eslint": "^12.0.0", | ||
"prettier-plugin-jsdoc": "^0.3.23" | ||
"typescript": "^4.4.3" | ||
}, | ||
"dependencies": { | ||
"colors": "^1.4.0" | ||
} | ||
} |
@@ -44,7 +44,7 @@ # Jason | ||
```javascript | ||
const format = require('jason-formatter'); | ||
const format = require('jason-formatter') | ||
console.log(format(rawData, { tabs: 2 })); | ||
console.log(format(rawData, { tabs: 2 })) | ||
``` | ||
You can see an example of use in [test/formatter.js](./tests/formater.js). |
@@ -12,2 +12,1 @@ { | ||
} | ||
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
36065
23
237
1
12
1
+ Addedcolors@^1.4.0
+ Addedcolors@1.4.0(transitive)