@weahead/eslint-config-tool
Advanced tools
Comparing version 0.3.0 to 0.4.0
31
index.js
module.exports = { | ||
parserOptions: { | ||
ecmaVersion: 6, | ||
ecmaVersion: 8, | ||
}, | ||
@@ -9,3 +9,32 @@ env: { | ||
}, | ||
plugins: ['import'], | ||
extends: 'eslint:recommended', | ||
overrides: [ | ||
{ | ||
files: ['**/*.test.js'], | ||
env: { | ||
jest: true, // now **/*.test.js files' env has both es6 *and* jest | ||
}, | ||
// Can't extend in overrides: https://github.com/eslint/eslint/issues/8813 | ||
// "extends": ["plugin:jest/recommended"] | ||
plugins: ['jest'], | ||
rules: { | ||
'jest/no-disabled-tests': 'warn', | ||
'jest/no-focused-tests': 'error', | ||
'jest/no-identical-title': 'error', | ||
'jest/prefer-to-have-length': 'warn', | ||
'jest/valid-expect': 'error', | ||
}, | ||
}, | ||
], | ||
rules: { | ||
'sort-imports': 'off', | ||
'import/first': 'error', | ||
'import/newline-after-import': 'error', | ||
'import/no-duplicates': 'error', | ||
'import/no-useless-path-segments': ['error', { commonjs: true }], | ||
'import/export': 'error', | ||
'import/no-mutable-exports': 'error', | ||
'import/order': 'error', | ||
}, | ||
}; |
{ | ||
"name": "@weahead/eslint-config-tool", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "We aheads shareable eslint config for tool projects.", | ||
@@ -12,3 +12,3 @@ "main": "index.js", | ||
"prettier": "prettier --write '*.js' '*.json'", | ||
"postinstall": "./scripts/postinstall.sh" | ||
"postinstall": "node scripts/postinstall.js" | ||
}, | ||
@@ -36,2 +36,3 @@ "files": [ | ||
"eslint": "6.3.0", | ||
"eslint-plugin-import": "2.19.1", | ||
"husky": "3.0.1", | ||
@@ -44,4 +45,6 @@ "lint-staged": "9.2.5", | ||
"peerDependencies": { | ||
"eslint": ">=5" | ||
"eslint": ">=5", | ||
"eslint-plugin-jest": ">=23", | ||
"eslint-plugin-import": ">=2" | ||
} | ||
} |
@@ -7,2 +7,9 @@ # @weahead/eslint-config-tool | ||
This config and its dependencies are included in We ahead's tooling packages and don't need to be installed in new We ahead projects. Instead use one of the tooling packages that have all configs and dependencies needed for its use. | ||
- For **non-React** projects use [@weahead/tooling](https://github.com/weahead/tooling) | ||
- For **React** projects use [@weahead/tooling-react](https://github.com/weahead/tooling-react) | ||
### Install the config by its own | ||
`npx install-peerdeps -d -x '-E' @weahead/eslint-config-tool` | ||
@@ -9,0 +16,0 @@ |
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
3613
48
29
3
14
2