Socket
Socket
Sign inDemoInstall

@storybook/linter-config

Package Overview
Dependencies
Maintainers
31
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/linter-config - npm Package Compare versions

Comparing version 3.1.3--canary.28.24cc001.0 to 4.0.0--canary.28.861f1a8.0

27

.eslintrc.js

@@ -18,5 +18,5 @@ module.exports = {

// order is important!
'@typescript-eslint',
'html',
'react',
'@typescript-eslint',
'file-progress',

@@ -46,3 +46,11 @@ ],

],
'import/no-cycle': 'error',
'import/no-default-export': 'error',
'import/no-deprecated': 'warn',
'import/order': 'error',
'import/no-unresolved': 'off',
'react/prop-types': 'off',
'react/no-unescaped-entities': ['error', { forbid: ['>', '}'] }],
'default-case': 'error',

@@ -56,2 +64,3 @@ 'func-name-matching': 'error',

'no-useless-concat': 'error',
'no-useless-constructor': 'off',
'prefer-destructuring': 'error',

@@ -64,8 +73,16 @@ 'prefer-rest-params': 'error',

radix: 'error',
camelcase: ['error', { ignoreImports: true, ignoreGlobals: true, allow: ['^.+_.+'] }],
'import/no-cycle': 'error',
'import/no-default-export': 'error',
'import/no-deprecated': 'warn',
'import/order': 'error',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/ban-types': 'warn',
'@typescript-eslint/no-empty-function': 'off',
},
overrides: [
{
files: ['*.stories.*'],
rules: {
'import/no-default-export': 'off',
},
},
],
settings: {

@@ -72,0 +89,0 @@ react: {

62

package.json
{
"name": "@storybook/linter-config",
"version": "3.1.3--canary.28.24cc001.0",
"version": "4.0.0--canary.28.861f1a8.0",
"description": "The config storybook uses to lint code",

@@ -26,16 +26,47 @@ "keywords": [

"scripts": {
"postinstall": "yarn lint:package",
"lint:code": "eslint ./test/**/*.@(js|jsx|ts|tsx|cjs|mjs) --fix",
"lint:html": "prettier ./**/*.@(html) --write --list-different",
"lint:json": "prettier **/!(package).json --write --list-different",
"lint:md": "prettier ./**/*.@(md|markdown) --write --list-different",
"lint:package": "sort-package-json ./**/package.json && prettier **/package.json --write --list-different",
"lint:yml": "prettier ./**/*.@(yaml|yml) --write --list-different",
"_postinstall": "husky install && yarn lint:package",
"lint": "NODE_ENV=production eslint --resolve-plugins-relative-to=./ --cache --cache-location=./.cache/eslint",
"lint:code": "yarn lint \"./test/**/*.@(js|jsx|ts|tsx|cjs|mjs)\" --fix",
"lint:html": "prettier \"./**/*.html\" --write --list-different",
"lint:json": "prettier \"**/!(package).json\" --write --list-different",
"lint:md": "prettier \"./**/*.@(md|markdown)\" --write --list-different",
"lint:package": "sort-package-json ./package.json && prettier \"**/package.json\" --write --list-different",
"lint:yml": "prettier \"./**/*.@(yaml|yml)\" --write --list-different",
"prepack": "pinst --disable",
"postpack": "pinst --enable",
"release": "auto shipit"
},
"lint-staged": {
"*.html": [
"prettier --write --list-different"
],
"*.json": [
"prettier --write --list-different"
],
"*.{js,jsx,mjs,ts,tsx}": [
"yarn eslint --fix"
],
"package.json": [
"sort-package-json",
"prettier --write --list-different"
],
"*.ejs": [
"ejslint"
],
"*.yml": [
"prettier --write --list-different"
],
"*.md": [
"prettier --write --list-different"
]
},
"browserslist": [
"defaults"
],
"dependencies": {
"@cspell/eslint-plugin": "^7.3.8",
"@cspell/eslint-plugin": "^8.0.0",
"@eslint-community/eslint-plugin-eslint-comments": "^4.1.0",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"ejs-lint": "^2.0.0",
"eslint": "^8.53.0",

@@ -47,5 +78,5 @@ "eslint-config-prettier": "^9.0.0",

"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-json-format": "^2.0.1",
"eslint-plugin-n": "^16.2.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-prettier": "^5.0.1",

@@ -61,4 +92,7 @@ "eslint-plugin-promise": "^6.1.1",

"@auto-it/released": "^11.0.4",
"@types/react": "^18.2.34",
"@types/react": "^18.2.37",
"auto": "^11.0.4",
"husky": "^8.0.0",
"lint-staged": "^15.0.2",
"pinst": "^3.0.0",
"react": "^18.2.0",

@@ -65,0 +99,0 @@ "typescript": "^5.2.2"

Sorry, the diff of this file is not supported yet

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