Skip to content

Commit e45df74

Browse files
feat: init
0 parents  commit e45df74

File tree

13 files changed

+9836
-0
lines changed

13 files changed

+9836
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/workflows/build.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- "**"
6+
jobs:
7+
cancel-existing:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: rokroskar/[email protected]
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
test:
14+
needs: cancel-existing
15+
strategy:
16+
matrix:
17+
os:
18+
- macos-latest
19+
- windows-latest
20+
- ubuntu-latest
21+
node:
22+
- 10
23+
- 12
24+
exclude:
25+
- os: macos-latest
26+
node: 10
27+
- os: windows-latest
28+
node: 10
29+
runs-on: ${{ matrix.os }}
30+
steps:
31+
- uses: actions/checkout@v2
32+
- uses: actions/setup-node@v1
33+
with:
34+
node-version: ${{ matrix.node }}
35+
- run: git config --global user.email "[email protected]"
36+
- run: git config --global user.name "GitHub Actions"
37+
- run: yarn --frozen-lockfile
38+
- run: yarn test
39+
- name: Coveralls
40+
if: matrix.os == 'ubuntu-latest' && matrix.node == 12
41+
run: yarn dw-ci coveralls
42+
env:
43+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
COVERALLS_SERVICE_NAME: github
45+
COVERALLS_GIT_COMMIT: ${{ github.sha }}
46+
COVERALLS_GIT_BRANCH: ${{ github.ref }}
47+
release:
48+
needs: test
49+
if: github.ref == 'refs/heads/master'
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v2
53+
- uses: actions/setup-node@v1
54+
with:
55+
node-version: 12
56+
- run: git config --global user.email "[email protected]"
57+
- run: git config --global user.name "GitHub Actions"
58+
- run: yarn --frozen-lockfile
59+
- run: yarn lint
60+
- name: Push changed files
61+
run: yarn dw-ci push-changed-files
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
65+
- name: Release
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
69+
run: yarn semantic-release

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
/.babelrc.json
3+
/.cz.json
4+
/.editorconfig
5+
/.env.json
6+
/.eslintrc.json
7+
/.nyc_output
8+
/.releaserc.json
9+
/.test.env.json
10+
/.vscode
11+
/coverage
12+
/dist
13+
/node_modules

.gitpod.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM gitpod/workspace-full
2+
3+
RUN sudo apt-get update && sudo apt-get install -y libgtk-3-0 libx11-xcb1 libnss3 libxss1 libasound2

.gitpod.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
4+
tasks:
5+
- init: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >>~/.npmrc
6+
- init: yarn --frozen-lockfile
7+
8+
vscode:
9+
extensions:
10+
- [email protected]:8jjyZYuYF6yW6nwsAiulrg==

.renovaterc.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"extends": [
3+
":semanticCommits"
4+
],
5+
"packageRules": [
6+
{
7+
"packagePatterns": [
8+
"*"
9+
],
10+
"semanticCommitType": "chore"
11+
},
12+
{
13+
"depTypeList": [
14+
"dependencies",
15+
"devDependencies",
16+
"peerDependencies",
17+
"optionalDependencies"
18+
],
19+
"semanticCommitType": "fix"
20+
}
21+
],
22+
"lockFileMaintenance": {
23+
"enabled": true,
24+
"schedule": "at any time"
25+
}
26+
}

LICENSE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# License
2+
3+
Unless stated otherwise all works are:
4+
5+
Copyright &copy; Sebastian Landwehr <[email protected]>
6+
7+
and licensed under:
8+
9+
[MIT License](https://opensource.org/licenses/MIT)
10+
11+
## MIT License
12+
13+
MIT License Copyright (c) <year> <copyright holders>
14+
15+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
16+
17+
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
18+
19+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!-- TITLE/ -->
2+
# eslint-plugin-import-alias
3+
<!-- /TITLE -->
4+
5+
<!-- BADGES/ -->
6+
[![NPM version](https://img.shields.io/npm/v/eslint-plugin-import-alias.svg)](https://npmjs.org/package/eslint-plugin-import-alias)
7+
![Linux macOS Windows compatible](https://img.shields.io/badge/os-linux%20%7C%C2%A0macos%20%7C%C2%A0windows-blue)
8+
[![Build status](https://img.shields.io/github/workflow/status/dword-design/eslint-plugin-import-alias/build)](https://github.com/dword-design/eslint-plugin-import-alias/actions)
9+
[![Coverage status](https://img.shields.io/coveralls/dword-design/eslint-plugin-import-alias)](https://coveralls.io/github/dword-design/eslint-plugin-import-alias)
10+
[![Dependency status](https://img.shields.io/david/dword-design/eslint-plugin-import-alias)](https://david-dm.org/dword-design/eslint-plugin-import-alias)
11+
![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen)
12+
13+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/dword-design/eslint-plugin-import-alias)
14+
<!-- /BADGES -->
15+
16+
<!-- DESCRIPTION/ -->
17+
18+
<!-- /DESCRIPTION -->
19+
20+
<!-- INSTALL/ -->
21+
## Install
22+
23+
```bash
24+
# NPM
25+
$ npm install eslint-plugin-import-alias
26+
27+
# Yarn
28+
$ yarn add eslint-plugin-import-alias
29+
```
30+
<!-- /INSTALL -->
31+
32+
<!-- LICENSE/ -->
33+
## License
34+
35+
Unless stated otherwise all works are:
36+
37+
Copyright &copy; Sebastian Landwehr <[email protected]>
38+
39+
and licensed under:
40+
41+
[MIT License](https://opensource.org/licenses/MIT)
42+
<!-- /LICENSE -->

package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "@dword-design/eslint-plugin-import-alias",
3+
"version": "1.0.0",
4+
"description": "",
5+
"repository": "dword-design/eslint-plugin-import-alias",
6+
"license": "MIT",
7+
"author": "Sebastian Landwehr <[email protected]>",
8+
"main": "dist/index.js",
9+
"files": [
10+
"dist"
11+
],
12+
"scripts": {
13+
"commit": "base commit",
14+
"dev": "base dev",
15+
"lint": "base lint",
16+
"prepare": "base prepare",
17+
"prepublishOnly": "base prepublishOnly",
18+
"test": "base test"
19+
},
20+
"dependencies": {
21+
"@dword-design/functions": "^1.1.2",
22+
"babel-plugin-module-resolver": "^4.0.0"
23+
},
24+
"devDependencies": {
25+
"@dword-design/base": "^6.15.6",
26+
"eslint": "^7.2.0",
27+
"output-files": "^1.1.16",
28+
"with-local-tmp-dir": "^2.2.10"
29+
},
30+
"publishConfig": {
31+
"access": "public"
32+
}
33+
}

src/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import preferAlias from './rules/prefer-alias'
2+
3+
export default {
4+
rules: {
5+
'prefer-alias': preferAlias,
6+
},
7+
}

0 commit comments

Comments
 (0)