Package Exports
- @sanity/eslint-config-no-v2-imports
- @sanity/eslint-config-no-v2-imports/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sanity/eslint-config-no-v2-imports) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@sanity/eslint-config-no-v2-imports
ESLint ruleset for marking Studio V2 imports as errors.
Helpful when migration a V2 studio or plugin to V3. Errors link to migration guide and reference docs.
Installing
npm install --save-dev @sanity/eslint-config-no-v2-imports
Usage
Create an .eslintrc
in the root of your project (or an eslintConfig
entry in package.json
) and extend the no-v2-imports
config:
{
"env": {"node": true, "browser": true},
"extends": ["@sanity/no-v2-imports"]
}
Adjust env
according to your use case.
License
MIT © Sanity.io