Skip to content

Updates #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package

on:
push:
branches:
- master

jobs:
publish-gpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@tryhuset'
- name: Automated Version Bump
id: version-bump
uses: phips28/gh-action-bump-version@v8.0.18
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: ncipollo/release-action@v1
with:
omitBody: true
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.version-bump.outputs.newTag }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @hyperoslo/eslint-config
# @tryhuset/eslint-config

[![Version](https://img.shields.io/npm/v/@hyperoslo/eslint-config.svg?style=flat)](https://www.npmjs.org/package/@hyperoslo/eslint-config)
[![Version](https://img.shields.io/npm/v/@tryhuset/eslint-config.svg?style=flat)](https://www.npmjs.org/package/@tryhuset/eslint-config)

Hyper's ESLint configuration, based on [Airbnb's](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb).

Expand All @@ -11,7 +11,7 @@ Licensed under the **MIT** license, see LICENSE for more information.
Available via [npm](https://www.npmjs.com):

```shell
npm install --save-dev eslint @hyperoslo/eslint-config eslint-config-airbnb
npm install --save-dev eslint @tryhuset/eslint-config eslint-config-airbnb
```

### ES6
Expand All @@ -26,7 +26,7 @@ Tweak `.eslintrc`:

```json
{
"extends": "@hyperoslo/eslint-config"
"extends": "@tryhuset/eslint-config"
}
```

Expand All @@ -42,7 +42,7 @@ Tweak `.eslintrc`:

```json
{
"extends": "@hyperoslo/eslint-config/react"
"extends": "@tryhuset/eslint-config/react"
}
```

Expand Down
2 changes: 1 addition & 1 deletion fixtures/es6/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"root": true,
"extends": "@hyperoslo/eslint-config"
"extends": "@tryhuset/eslint-config"
}
2 changes: 1 addition & 1 deletion fixtures/react/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"root": true,
"extends": "@hyperoslo/eslint-config/react"
"extends": "@tryhuset/eslint-config/react"
}
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
extends: [
'eslint-config-airbnb/base',
'@hyperoslo/eslint-config/base',
'@tryhuset/eslint-config/base',
],
};
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@hyperoslo/eslint-config",
"version": "2.0.0",
"description": "Hyper's ESLint config",
"author": "Hyper Technology <technology@hyper.no>",
"repository": "github:hyperoslo/eslint-config",
"name": "@tryhuset/eslint-config",
"version": "3.0.1",
"description": "TRY's copy of Hyper's ESLint config",
"author": "TRY Creative Tech <creativetech@try.no>",
"repository": "github:tryhuset/eslint-config",
"license": "MIT",
"main": "index.js",
"files": [
Expand All @@ -18,9 +18,9 @@
"lint": "eslint . fixtures --ext js,jsx"
},
"devDependencies": {
"babel-eslint": "^10.0.1",
"eslint": "^5.12.0",
"eslint-config-airbnb": "^17.1.0",
"@babel/eslint-parser": "^7.19.1",
"eslint": "^8.35.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-react": "^7.12.4",
Expand Down
2 changes: 1 addition & 1 deletion react.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
extends: [
'eslint-config-airbnb',
'@hyperoslo/eslint-config',
'@tryhuset/eslint-config',
],
};