Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #95 from swrlab/dev/major-deps-update
Browse files Browse the repository at this point in the history
chore: update all dependencies
  • Loading branch information
frytg authored Jul 27, 2022
2 parents 8e8d3dd + af0d317 commit acda66f
Show file tree
Hide file tree
Showing 11 changed files with 690 additions and 928 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ module.exports = {
node: true,
},
extends: [require.resolve('./configs/recommended')],
};
}
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ updates:
open-pull-requests-limit: 10
schedule:
interval: "weekly"
day: "monday"
day: "sunday"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
day: "sunday"
39 changes: 32 additions & 7 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,43 @@
name: Lint code
name: Code Check

on: [push]
on:
workflow_dispatch:
push:
branches:
- main
- dev/*
- chore/*
- feature/*

env:
NODE_VERSION: 18

jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/[email protected]
- name: 👀 Checkout Code
uses: actions/checkout@v3

- name: ⛺️ Install Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"
cache-dependency-path: "**/yarn.lock"

- name: 📦 Install Dependencies
run: yarn

- name: Lint Code Base
uses: docker://github/super-linter:v2.2.0
- name: 📚 Lint Code Base
uses: docker://github/super-linter:v4
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IGNORE_GITIGNORED_FILES: true
JAVASCRIPT_DEFAULT_STYLE: prettier
JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.js
LINTER_RULES_PATH: /
VALIDATE_ALL_CODEBASE: true
VALIDATE_ANSIBLE: false
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SWR ESLint Plugin

by [**SWR Audio Lab**](https://lab.swr.de/)

## Changelog

- 2022-07-26 - v0.2.0
- chore: update all dependencies

- 2021-06-25 - v0.1.2
- update eslint-plugin-vue

...
2 changes: 1 addition & 1 deletion configs/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ module.exports = {
browser: true,
},
plugins: ['swr'],
};
}
11 changes: 9 additions & 2 deletions configs/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ module.exports = {
node: true,
},
plugins: ['prettier', 'security', 'sonarjs'],
extends: ['plugin:vue/essential','plugin:sonarjs/recommended', 'eslint:recommended', 'airbnb-base', 'plugin:prettier/recommended'],
extends: [
'plugin:json/recommended',
'plugin:vue/essential',
'plugin:sonarjs/recommended',
'eslint:recommended',
'airbnb-base',
'plugin:prettier/recommended',
],
rules: {
'prettier/prettier': [
'warn',
Expand All @@ -24,4 +31,4 @@ module.exports = {
'sonarjs/cognitive-complexity': ['error', 40],
'one-var': ['error', { let: 'consecutive' }],
},
};
}
2 changes: 1 addition & 1 deletion configs/testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ module.exports = {
jest: true,
},
plugins: ['swr'],
};
}
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// load utils
const recommended = require('./configs/recommended')

module.exports = {
configs: {
recommended: require('./configs/recommended.js'), // eslint-disable-line global-require
recommended,
},
};
}
26 changes: 14 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swrlab/eslint-plugin-swr",
"version": "0.1.2",
"version": "0.2.0",
"main": "index.js",
"repository": {
"type": "git",
Expand All @@ -13,22 +13,24 @@
"scripts": {
"lint": "eslint .",
"fix": "eslint --fix .",
"watch": "git ls-files | entr -c npm run lint"
"watch": "git ls-files | entr -c npm run lint",
"reinstall": "rm -rf node_modules && rm yarn.lock && yarn"
},
"dependencies": {
"eslint-config-airbnb-base": "^14.2.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-sonarjs": "^0.8.0-125",
"eslint-plugin-unicorn": "^33.0.1",
"eslint-plugin-vue": "^7.11.2"
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-security": "^1.5.0",
"eslint-plugin-sonarjs": "^0.14.0",
"eslint-plugin-unicorn": "^43.0.2",
"eslint-plugin-vue": "^9.3.0"
},
"devDependencies": {
"@swrlab/swr-prettier-config": "^0.1.2",
"eslint": "^7.29.0",
"prettier": "^2.3.1"
"eslint": "^8.20.0",
"prettier": "^2.7.1"
},
"peerDependencies": {
"eslint": ">5"
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SWR eslint plugin
# SWR ESLint plugin

## Install

Expand Down
Loading

0 comments on commit acda66f

Please sign in to comment.