oeph / eslint-code-insights

Bitbucket Code Insights for ESLint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm npm GitHub code size in bytes License

Bitbucket Code Insights for ESLint

Create Code Insights on your Bitbucket Server for your ESLint issues.

Installation

npm install eslint-code-insights

Usage

await addESLintInsights(
    {
        url: 'https://your-bitbucket-server.example.org',
        accessToken: 'gp762nuuoqcoxypju8c569th9wz7q5',
        project: 'projectKey',
        repo: 'repositorySlug',
        commitId: '84eb815afaea6923b08a5514b978d0a404aaf121',
        // or use a custom path in order to create a relative path for bitbucket
        repositoryRootPath: process.cwd(),
    },
    ['lib/**/*.js']
);

About

Bitbucket Code Insights for ESLint

License:MIT License


Languages

Language:TypeScript 98.3%Language:JavaScript 1.7%