Skip to content

Commit

Permalink
Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed Nov 11, 2021
1 parent e612d49 commit c6d11a0
Show file tree
Hide file tree
Showing 16 changed files with 2,103 additions and 4,824 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./eslint-config-base.js"
}
42 changes: 42 additions & 0 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: 'Bump Version and Release'

on:
push:
tags:
- "v*"

jobs:
make-release:
name: 'Bump Version on master'
runs-on: ubuntu-latest

steps:
- name: 'Checkout source code'
uses: 'actions/checkout@v2'
with:
ref: ${{ github.ref }}
- name: 'Setup node'
uses: actions/setup-node@v2
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
scope: '@dtrw'
- name: 'Create a github release'
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: "latest"
title: "${{ github.ref_name }}"
files: |
LICENSE
README.md
package.json
yarn.lock
eslint-config-*.js
- name: 'Publish package'
run: |
yarn
yarn publish --tag latest --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
53 changes: 53 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"MD001": true,
"MD003": {
"style": "atx"
},
"MD004": {
"style": "sublist"
},
"MD005": true,
"MD007": true,
"MD010": true,
"MD011": true,
"MD012": true,
"MD013": false,
"MD018": true,
"MD019": true,
"MD022": true,
"MD023": true,
"MD024": {
"siblings_only": true
},
"MD025": true,
"MD026": true,
"MD027": true,
"MD028": true,
"MD029": true,
"MD030": true,
"MD031": true,
"MD032": true,
"MD033": {
"allowed_elements": [
"table", "thead", "tbody", "tr", "th", "td",
"style", "code", "b", "i", "u", "br"
]
},
"MD034": true,
"MD035": true,
"MD036": true,
"MD037": true,
"MD038": true,
"MD039": true,
"MD040": true,
"MD041": true,
"MD042": true,
"MD045": true,
"MD046 ": {
"style": "fenced"
},
"MD047": true,
"MD048 ": {
"style": "backtick"
}
}
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.markdownlint.json
.gitignore
.eslintrc
node_modules/
.github/
17 changes: 0 additions & 17 deletions GITFLOW.md

This file was deleted.

37 changes: 34 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# @burtek/configs
# @dtrw/eslint-config

[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
This is repository with `eslint` configs for multiple purposes that are used in my other projects.

Monorepo for my own eslint/stylelint/tsc configs
## Install

```bash
yarn add -D @dtrw/eslint-config
```

or

```bash
npm i -D @dtrw/eslint-config
```

## Usage

To use any of the configs put `@dtrw/eslint-config/<name>.js` in your eslint config's `extends` section, i.e.:

```json
{
"extends": [
"@dtrw/eslint-config/eslint-config-base.js"
]
}
```

## Available configs

name | notes
----------------------------|-------------
`eslint-config-base` | Base config, using some `eslint` and `typescript-eslint` rules as well as rules from eslint plugins `import` and `promise`
`eslint-config-react` | Config for reactJS and react-native projects, using rules from eslint plugins `react` and `react-hooks`. **Extends eslint-config-base**
`eslint-config-react-a11y` | Config for reactJS projects, using rules from eslint plugin `a11y`. **Extends eslint-config-react**
`eslint-config-lodash` | Config for projects utilising `lodash` library. This is an additional config, not extending any of the above ones
Loading

0 comments on commit c6d11a0

Please sign in to comment.