17 Commits

Author SHA1 Message Date
bebf13d84b add missing dependency
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-24 13:05:29 +02:00
f7df86b0b1 update for vue3 compilance
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-03 13:13:29 +02:00
f9459d64fa chore(ci): 1.0.3 🎉 2023-04-14 18:00:07 +02:00
c4cb05f79c up
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-14 17:59:45 +02:00
a5fe28b31b update drone to try create snapshot
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-14 17:33:39 +02:00
2803c35f53 up
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-13 19:05:14 +02:00
8090226ce1 last up
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-13 19:00:29 +02:00
13830d5ef6 test
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-12 22:08:04 +02:00
70e65d4173 up
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-12 22:01:17 +02:00
b457ec4520 up
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-12 21:58:10 +02:00
0fec432a37 update
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-12 21:52:36 +02:00
e2c4e42f37 upd
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-12 21:28:25 +02:00
afca2fb51e update
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-12 21:26:06 +02:00
684da9c450 drone .yml
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-12 21:20:37 +02:00
afc102061d update drone.yml
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-12 21:17:39 +02:00
c8598e0a87 update drone.yml
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-12 21:13:08 +02:00
17b1307c85 update drone.yml
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-12 21:09:36 +02:00
8 changed files with 429 additions and 834 deletions

View File

@@ -1,7 +1,7 @@
---
kind: pipeline
type: docker
name: snapshot
name: npm-publish-snapshot
trigger:
event:
@@ -17,65 +17,39 @@ steps:
GITEA_TOKEN:
from_secret: gitea_token
commands:
- export VERSION=$(node -p "require('./package.json').version") || echo "1.0.0"
- VERSION=$(cat VERSION 2>/dev/null) || echo "1.0.0"
- SNAPSHOT="$(echo $VERSION)-snapshot.${DRONE_BUILD_NUMBER}"
- echo $VERSION
- echo $SNAPSHOT
- npm ci
- npm version $SNAPSHOT
- npm publish --tag snapshot
# - npm dist-tag add @ioprojects/eslint-config@$SNAPSHOT snapshot
# - npm dist-tag add @ioprojects/ui-eslint-base@$SNAPSHOT snapshot
---
kind: pipeline
type: docker
name: checkup
name: npm-publish-release
trigger:
event:
- push
- promote
branch:
- master
steps:
- name: package-checkup
image: node:18
commands:
- export DATA=$(node -p "require('./package.json')") || echo "No Data Found"
- echo "Package Data :"
- echo $DATA
---
kind: pipeline
type: docker
name: release
trigger:
event:
- promote
branch:
- master
depends_on:
- checkup
environment:
VERSION: ${VERSION}
steps:
- name: publish-release
image: node:18
environment:
GITEA_TOKEN:
from_secret: gitea_token
VERSION: ${NEW_VERSION}
commands:
- git fetch --tags
- OLD_VERSION=$(cat VERSION 2>/dev/null) || echo "1.0.0"
- echo $NEW_VERSION
- echo $OLD_VERSION
- npm ci
- echo $(node -p "require('./package.json').version")
- echo $VERSION
- npm version $VERSION
- git push --set-upstream origin master
- git tag -l
- git push --set-upstream origin $(node -p "require('./package.json').version")
- npm version $NEW_VERSION
- npm publish
# - npm dist-tag add @ioprojects/ui-eslint-base@$SNAPSHOT snapshot

View File

@@ -2,9 +2,8 @@
"root": true,
"env": {
"browser": true,
"es2022": true,
"jest": true,
"node": true
"es2021": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
@@ -17,17 +16,23 @@
"extends": [
"eslint:recommended",
"plugin:vue/vue3-essential",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"plugins": [
"jest",
"cypress",
"import",
"prettier",
"@typescript-eslint"
"@typescript-eslint",
"prettier"
],
"overrides": [
{
"files": ["test/**"],
"plugins": ["jest"],
"extends": ["plugin:jest/recommended", "plugin:jest/style"],
"rules": { "jest/prefer-expect-assertions": "off" }
},
{
"files": ["*.ts", "*.tsx"],
"plugins": [
@@ -54,7 +59,7 @@
],
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": [
"warn",
"error",
{
"allowShortCircuit": true,
"allowTernary": true,
@@ -73,12 +78,6 @@
"@typescript-eslint/no-useless-constructor": ["warn"]
}
},
{
"files": ["test/**"],
"plugins": ["jest"],
"extends": ["plugin:jest/recommended", "plugin:jest/style"],
"rules": { "jest/prefer-expect-assertions": "off" }
},
{
"files": ["cypress/e2e/**/*.cy.ts"],
"extends": ["plugin:cypress/recommended"],
@@ -110,7 +109,7 @@
"dot-notation": "warn",
"quotes": ["error", "single"],
"prettier/prettier": [
"warn",
"error",
{
"printWidth": 120,
"tabWidth": 2,
@@ -121,8 +120,7 @@
"jsxSingleQuote": false,
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "always",
"trailingComma": "es5"
"arrowParens": "always"
}
]
},

2
.gitignore vendored
View File

@@ -1,7 +1,7 @@
# Created by https://www.toptal.com/developers/gitignore/api/node
# Edit at https://www.toptal.com/developers/gitignore?templates=node
.idea
./idea
### Node ###
# Logs

View File

@@ -1,57 +1,3 @@
# eslint-config
# ioprojects-ui-eslint
This repository is the NPM package for ESLINT configuration of IO-Projects TypeScript front-end projects.
## Installation
Add the registery to your `.npmrc` file:
```bash
@ioprojects:registry=https://git.endmove.eu/api/packages/IO-ProjectsOfficial/npm/
```
Install the package:
```bash
# with yarn
yarn add -D @ioprojects/eslint-config
# with npm
npm install --save-dev @ioprojects/eslint-config
```
## Usage
Add the following to your `.eslintrc.js` file:
```js
module.exports = {
extends: [
'@ioprojects/eslint-config'
]
}
```
**Or**
Add the following to your `.eslintrc.json` file:
```json
{
"extends": [
"@ioprojects/eslint-config"
]
}
```
**Or**
Add the following to your `.eslintrc.cjs` file:
```js
module.exports = require('@ioprojects/eslint-config');
```
### Note for developers
When your pull request is merged into the **master** branch, you can promote your build on [drone.endmove.eu](https://drone.endmove.eu) to create a usable version. Use `master` as the target, and add the `VERSION` parameter with one of these values: `major | minor | patch | premajor | preminor | prepatch | prerelease`.
This repository is the NPM package for ESLINT configuration of IO-Projects TypeScript front-end projects.

1
VERSION Normal file
View File

@@ -0,0 +1 @@
1.0.4

1083
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,34 +1,31 @@
{
"name": "@ioprojects/eslint-config",
"version": "1.3.0",
"name": "@ioprojects/ui-eslint-base",
"version": "1.0.4",
"description": "NPM package for ESLINT configuration of IO-Projects TypeScript front-end projects",
"author": "IO-Projects <contact@io-projects.com>",
"license": "SEE LICENSE FILE",
"main": ".eslintrc.json",
"files": [
".eslintrc.json"
],
"dependencies": {
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-cypress": "^2.15.2",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-vue": "^9.26.0",
"prettier": "^3.3.1"
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-cypress": "^2.13.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.10.0",
"prettier": "^2.8.8"
},
"repository": {
"type": "git",
"url": "git+https://git.endmove.eu/IO-ProjectsOfficial/eslint-config.git"
"url": "https://git.endmove.eu/IO-ProjectsOfficial/ioprojects-ui-eslint.git"
},
"keywords": [
"io-project",
"eslint"
],
"engines": {
"node": ">=18"
}
"author": "IO-Projects <contact@io-projects.com>",
"license": "SEE LICENSE IN THE LICENSE FILE"
}

View File

@@ -1,8 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"enabled": true,
"packageRules": [{
"packageNames": ["node"],
"enabled": false
}]
}