3.0.3 • Published 11 months ago
@devpow112/eslint-config v3.0.3
ESLint Configuration
Shareable eslint configuration.
Installation
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
.
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
.
npm i
Linting
Execute linters via npm
.
# 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
.
# 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
3.0.3
11 months ago
3.0.2
12 months ago
3.0.1
12 months ago
3.0.0
12 months ago
2.0.3
2 years ago
2.0.2
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago