@storybook/linter-config
Advanced tools
Comparing version 3.1.3--canary.28.24cc001.0 to 4.0.0--canary.28.861f1a8.0
@@ -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: { |
{ | ||
"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
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
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
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
6684
106
0
0
20
9
+ Addedejs-lint@^2.0.0
+ Added@cspell/cspell-bundled-dicts@8.14.2(transitive)
+ Added@cspell/cspell-pipe@8.14.2(transitive)
+ Added@cspell/cspell-resolver@8.14.2(transitive)
+ Added@cspell/cspell-service-bus@8.14.2(transitive)
+ Added@cspell/cspell-types@8.14.2(transitive)
+ Added@cspell/dict-cryptocurrencies@5.0.0(transitive)
+ Added@cspell/dict-en-common-misspellings@2.0.4(transitive)
+ Added@cspell/dict-git@3.0.0(transitive)
+ Added@cspell/dict-google@1.0.1(transitive)
+ Added@cspell/dict-julia@1.0.1(transitive)
+ Added@cspell/dict-monkeyc@1.0.6(transitive)
+ Added@cspell/dict-node@5.0.1(transitive)
+ Added@cspell/dict-software-terms@4.1.3(transitive)
+ Added@cspell/dict-terraform@1.0.1(transitive)
+ Added@cspell/dynamic-import@8.14.2(transitive)
+ Added@cspell/eslint-plugin@8.14.2(transitive)
+ Added@cspell/filetypes@8.14.2(transitive)
+ Added@cspell/strong-weak-map@8.14.2(transitive)
+ Added@cspell/url@8.14.2(transitive)
+ Addedacorn@7.4.1(transitive)
+ Addedacorn-node@1.8.2(transitive)
+ Addedacorn-walk@7.2.0(transitive)
+ Addedasync@3.2.6(transitive)
+ Addedchalk@5.3.0(transitive)
+ Addedcliui@8.0.1(transitive)
+ Addedcspell-config-lib@8.14.2(transitive)
+ Addedcspell-dictionary@8.14.2(transitive)
+ Addedcspell-glob@8.14.2(transitive)
+ Addedcspell-grammar@8.14.2(transitive)
+ Addedcspell-io@8.14.2(transitive)
+ Addedcspell-lib@8.14.2(transitive)
+ Addedcspell-trie-lib@8.14.2(transitive)
+ Addedejs@3.1.8(transitive)
+ Addedejs-include-regex@1.0.0(transitive)
+ Addedejs-lint@2.0.0(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedenv-paths@3.0.0(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedfilelist@1.0.4(transitive)
+ Addedgensequence@7.0.0(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedglobal-directory@4.0.1(transitive)
+ Addedimport-meta-resolve@4.1.0(transitive)
+ Addedini@4.1.1(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedjake@10.9.2(transitive)
+ Addedminimatch@5.1.6(transitive)
+ Addedread-input@0.3.1(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedsyntax-error@1.4.0(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
+ Addedxtend@4.0.2(transitive)
+ Addedy18n@5.0.8(transitive)
+ Addedyaml@2.5.1(transitive)
+ Addedyargs@17.7.2(transitive)
+ Addedyargs-parser@21.1.1(transitive)
- Removed@babel/code-frame@7.24.7(transitive)
- Removed@babel/helper-validator-identifier@7.24.7(transitive)
- Removed@babel/highlight@7.24.7(transitive)
- Removed@cspell/cspell-bundled-dicts@7.3.9(transitive)
- Removed@cspell/cspell-pipe@7.3.9(transitive)
- Removed@cspell/cspell-resolver@7.3.9(transitive)
- Removed@cspell/cspell-service-bus@7.3.9(transitive)
- Removed@cspell/cspell-types@7.3.9(transitive)
- Removed@cspell/dict-cryptocurrencies@4.0.0(transitive)
- Removed@cspell/dict-en-common-misspellings@1.0.2(transitive)
- Removed@cspell/dict-git@2.0.0(transitive)
- Removed@cspell/dict-node@4.0.3(transitive)
- Removed@cspell/dict-software-terms@3.4.10(transitive)
- Removed@cspell/dynamic-import@7.3.9(transitive)
- Removed@cspell/eslint-plugin@7.3.9(transitive)
- Removed@cspell/strong-weak-map@7.3.9(transitive)
- Removed@types/estree@1.0.5(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedconfigstore@6.0.0(transitive)
- Removedcosmiconfig@8.0.0(transitive)
- Removedcrypto-random-string@4.0.0(transitive)
- Removedcspell-dictionary@7.3.9(transitive)
- Removedcspell-glob@7.3.9(transitive)
- Removedcspell-grammar@7.3.9(transitive)
- Removedcspell-io@7.3.9(transitive)
- Removedcspell-lib@7.3.9(transitive)
- Removedcspell-trie-lib@7.3.9(transitive)
- Removeddot-prop@6.0.1(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedestree-walker@3.0.3(transitive)
- Removedfast-equals@4.0.3(transitive)
- Removedfind-up@6.3.0(transitive)
- Removedgensequence@6.0.0(transitive)
- Removedglobal-dirs@3.0.1(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedimport-meta-resolve@3.1.1(transitive)
- Removedini@2.0.0(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-obj@2.0.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedlines-and-columns@1.2.4(transitive)
- Removedlocate-path@7.2.0(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedp-limit@4.0.0(transitive)
- Removedp-locate@6.0.0(transitive)
- Removedparse-json@5.2.0(transitive)
- Removedpath-exists@5.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedsynckit@0.8.8(transitive)
- Removedtr46@0.0.3(transitive)
- Removedtype-fest@1.4.0(transitive)
- Removedtypedarray-to-buffer@3.1.5(transitive)
- Removedunique-string@3.0.0(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
- Removedwrite-file-atomic@3.0.3(transitive)
- Removedyocto-queue@1.1.1(transitive)
Updated@cspell/eslint-plugin@^8.0.0
Updatedeslint-plugin-import@^2.29.0
Updatedeslint-plugin-n@^16.3.1