# style-lint-js

> Lint and style checker using ESLint and Prettier with default rules that can be extended.

Latest version **3.0.2** (published 2026-06-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install style-lint-js
pnpm add style-lint-js
yarn add style-lint-js
bun add style-lint-js
```

Provides the command `style-lint-js`.

## Health

**Score 55/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 3.0.2 |
| Published | 2026-06-24 |
| First published | 2023-02-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 8 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | noelsev |
| Keywords | eslint, prettier, lint, style |

## Links

- npm: https://www.npmjs.com/package/style-lint-js
- Repository: https://github.com/bahaykubo/style-lint-js
- Homepage: https://github.com/bahaykubo/style-lint-js#readme
- Issues: https://github.com/bahaykubo/style-lint-js/issues
- npm.io page: https://npm.io/package/style-lint-js

## Dependencies (8)

- [eslint](https://npm.io/package/eslint.md) ^10.5.0
- [globals](https://npm.io/package/globals.md) ^17.6.0
- [prettier](https://npm.io/package/prettier.md) ^3.0.3
- [@eslint/js](https://npm.io/package/@eslint/js.md) ^10.0.1
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^10.1.8
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^5.5.6
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^8.61.1
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^8.61.1

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 3.0.2 (latest) — 2026-06-24
- 3.0.1 — 2026-06-24
- 3.0.0 — 2026-06-24
- 2.0.0 — 2026-06-22
- 1.1.0 — 2023-11-05
- 1.0.3 — 2023-02-06
- 1.0.2 — 2023-02-06
- 1.0.1 — 2023-02-06
- 1.0.0 — 2023-02-06

## README

<h1>Style Lint JS</h1>

Installs and configure default linter and style checker for javascript and/or typescript projects.

- [Install](#install)
- [Additional Rules or Override](#additional-rules-or-override)

Using [ESLint](https://eslint.org/) and [Prettier](https://prettier.io/) with default rules:

- ESLint rules:
  - [For javascript](./eslint.config.js)
  - [For Typescript](./eslint.config-ts.js)
- [Prettier rules](./.prettierrc.js)



## Install

To generate default config files in your project, run

```shell
npx style-lint-js init

# OR for typescript projects

npx style-lint-js init-ts
```

This creates an `eslint.config.js` and `.prettierrc.js` in your project. Once installed, you can run `eslint` or `prettier` commands as normal ie `npx eslint file-to-lint.js` or add to your package.json script.

>**Note:** When initialising for typescript projects, you will need to have typescript installed already in your project for the typescript eslint rules to work.

## Additional Rules or Override

Update `eslint.config.js` to add or override default rules by appending a new config object to the array.

ie

```javascript
import config from 'style-lint-js/eslint.config.js';

export default [
  ...config,
  {
    rules: {
      'import/newline-after-import': 'error',
    },
  },
];
```

For typescript projects:

```javascript
import config from 'style-lint-js/eslint.config-ts.js';

export default [
  ...config,
  {
    files: ['**/*.ts'],
    rules: {
      '@typescript-eslint/explicit-function-return-type': 'error',
    },
  },
];
```

To ignore additional paths, add an `ignores` config object:

```javascript
import config from 'style-lint-js/eslint.config.js';

export default [
  ...config,
  {
    ignores: ['generated/**', 'vendor/**'],
  },
];
```

---
_Source: https://npm.io/package/style-lint-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
