-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
2,103 additions
and
4,824 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "./eslint-config-base.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.markdownlint.json | ||
.gitignore | ||
.eslintrc | ||
node_modules/ | ||
.github/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.