Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@applint/projectlint
Advanced tools
Lint tool on project level for [Rax](https://rax.js.org/), [ICE](https://ice.work/) and React projects.
Lint tool on project level for Rax, ICE and React projects.
npm i @applint/projectlint --save-dev
You can use the runTransforms
method to run codemod.
Options:
string
, the target directory pathobject
, the project-lint configurationboolean
, whether or not dry-run codemod. default: true
string[]
, default is []
Return:
TransformResult[]
(see interface)Example:
import { runTransforms } from '@applint/projectlint';
const cwd = '/workspace/demo';
const transforms = {
'plugin-rax-component-to-component': 'error',
'lint-config-to-iceworks-spec': 'warn',
};
const result = runTransforms(cwd, transforms, false);
console.log('run transforms result', result);
interface TransformResult {
/**
* transform key, see `Included Transforms`
*/
transform: string;
/**
* transform description title
*/
title: string;
/**
* transform description English title
*/
title_en: string;
/**
* transform description message
*/
message: string;
/**
* transform description English message
*/
message_en: string;
/**
* 0: off 1: warn 2: error
*/
severity: number;
/**
* codemod tag, e.g.: `tags: ['performance']`
*/
tags: string[];
/**
* whether dry run codemod or not
*/
dry: boolean;
/**
* docs url
*/
docs: string;
/**
* jscodeshift CLI output
*/
output: string;
/**
* same as https://docs.npmjs.com/cli/v7/commands/npm-deprecate/
*/
npm_deprecate?: string;
}
plugin-rax-component-to-component
Update plugin-rax-component
to plugin-component
. docs
lint-config-to-iceworks-spec
Follow Alibaba FED lint rules and use @iceworks/spec
best practices. docs
lint-config-to-applint-spec
Follow Alibaba Tao Technology lint rules and use @applint/spec
best practices. docs
FAQs
提供项目级别检测和修复 Node API,目前包括 Codemod 检查和修复、依赖检查和 bundle 体积检查
The npm package @applint/projectlint receives a total of 5 weekly downloads. As such, @applint/projectlint popularity was classified as not popular.
We found that @applint/projectlint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.