Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@weahead/eslint-config-tool

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@weahead/eslint-config-tool - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

scripts/postinstall.js

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',
},
};

9

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc