https://github.com/devpow112/eslint-config
:clipboard: Shareable eslint configuration
https://github.com/devpow112/eslint-config
github-actions nodejs
Last synced: about 1 year ago
JSON representation
:clipboard: Shareable eslint configuration
- Host: GitHub
- URL: https://github.com/devpow112/eslint-config
- Owner: devpow112
- License: mit
- Created: 2021-11-05T13:10:56.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-15T13:36:25.000Z (about 1 year ago)
- Last Synced: 2025-04-19T07:51:52.023Z (about 1 year ago)
- Topics: github-actions, nodejs
- Language: JavaScript
- Homepage: https://npmjs.com/@devpow112/eslint-config
- Size: 1.02 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# ESLint Configuration
[![License][License Badge]](LICENSE)
[![Version][Version Badge]][Version Package]
[![Release][Release Badge]][Release Workflow]
[![Node Version][Node Version Badge]](package.json#L56)
Shareable eslint configuration.
## Installation
```console
npm i -D @devpow112/eslint-config
```
## Usage
The shareable config can be configured in the [ESLint Configuration] file. There
are currently 2 config types `node` and `test`.
```js
const { FlatCompat } = require('@eslint/eslintrc');
const js = require('@eslint/js');
const path = require('node:path');
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});
module.exports = [...compat.extends('@devpow112/eslint-config')];
```
## Development
Development can be done on any machine that can install **Node.js**. Only the
latest LTS version is tested against.
### Install Dependencies
Install dependencies via `npm`.
```console
npm i
```
### Linting
Execute linters via `npm`.
```console
# git, javascript, markdown and package.json
npm run lint
# git only
npm run lint:git
# javascript only
npm run lint:js
# markdown only
npm run lint:md
# package.json only
npm run lint:pkg
```
### Fixing
Execute automatic fixers via `npm`.
```console
# javascript, markdown and package.json
npm run fix
# javascript only
npm run fix:js
# markdown only
npm run fix:md
# package.json only
npm run fix:pkg
```
[License Badge]: https://img.shields.io/github/license/devpow112/eslint-config?label=License
[Version Badge]: https://img.shields.io/npm/v/@devpow112/eslint-config?label=Version
[Version Package]: https://www.npmjs.com/@devpow112/eslint-config
[Node Version Badge]: https://img.shields.io/node/v/@devpow112/eslint-config
[Release Badge]: https://github.com/devpow112/eslint-config/actions/workflows/release.yml/badge.svg?branch=main
[Release Workflow]: https://github.com/devpow112/eslint-config/actions/workflows/release.yml?query=branch%3Amain
[ESLint Configuration]: https://eslint.org/docs/user-guide/configuring