26 Commits

Author SHA1 Message Date
0ce369b94f chore(deps): update minor and patch version dependencies (master) (#25)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #25
Reviewed-by: Jérémi N ‘EndMove’ <endmove@noreply.endmove.eu>
Co-authored-by: Renovate Bot <no-reply@io-projects.com>
Co-committed-by: Renovate Bot <no-reply@io-projects.com>
2024-12-27 13:47:20 +01:00
294be2d06e chore(ci): 1.3.0
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-09 14:31:29 +00:00
a3bc1ffccf chore(deps): update minor and patch version dependencies (master) (#24)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing
Reviewed-on: #24
Co-authored-by: Renovate Bot <no-reply@io-projects.com>
Co-committed-by: Renovate Bot <no-reply@io-projects.com>
2024-06-09 16:28:10 +02:00
349211df62 chore(deps): update dependency eslint-plugin-vue to ^9.24.1 (master) (#23)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #23
Co-authored-by: Renovate Bot <no-reply@io-projects.com>
Co-committed-by: Renovate Bot <no-reply@io-projects.com>
2024-04-15 08:22:13 +02:00
1fcbbbf99a chore(deps): update minor and patch version dependencies (master) (#21)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #21
Co-authored-by: Renovate Bot <no-reply@io-projects.com>
Co-committed-by: Renovate Bot <no-reply@io-projects.com>
2024-03-10 17:16:29 +01:00
22206ad017 chore(deps): update minor and patch version dependencies (master) (#20)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #20
Co-authored-by: Renovate Bot <no-reply@io-projects.com>
Co-committed-by: Renovate Bot <no-reply@io-projects.com>
2024-01-21 17:26:40 +01:00
b56dd0d34c chore(deps): update minor and patch version dependencies (master) (#19)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #19
Reviewed-by: Jérémi N ‘EndMove’ <endmove@noreply.endmove.eu>
Co-authored-by: Renovate Bot <no-reply@io-projects.com>
Co-committed-by: Renovate Bot <no-reply@io-projects.com>
2023-12-24 12:18:07 +01:00
df94998489 chore(deps): update minor and patch version dependencies (master) (#18)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #18
Reviewed-by: Jérémi N ‘EndMove’ <endmove@noreply.endmove.eu>
Co-authored-by: Renovate Bot <no-reply@io-projects.com>
Co-committed-by: Renovate Bot <no-reply@io-projects.com>
2023-12-18 09:45:30 +01:00
99b63ee76d chore(deps): update minor and patch version dependencies (master) (#17)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #17
Co-authored-by: Renovate Bot <no-reply@io-projects.com>
Co-committed-by: Renovate Bot <no-reply@io-projects.com>
2023-12-03 21:26:53 +01:00
f78a5ff537 chore(deps): update minor and patch version dependencies to ^6.12.0 (master) (#16)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #16
Co-authored-by: Renovate Bot <no-reply@io-projects.com>
Co-committed-by: Renovate Bot <no-reply@io-projects.com>
2023-11-29 16:36:40 +01:00
7032234561 chore(deps): update minor and patch version dependencies (master) (#15)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #15
Co-authored-by: Renovate Bot <no-reply@io-projects.com>
Co-committed-by: Renovate Bot <no-reply@io-projects.com>
2023-11-19 23:34:08 +01:00
feee346c5c chore(deps): update minor and patch version dependencies (master) (#14)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #14
Co-authored-by: Renovate Bot <no-reply@io-projects.com>
Co-committed-by: Renovate Bot <no-reply@io-projects.com>
2023-11-12 14:33:00 +01:00
4a4d4c3c5d chore(deps): update minor and patch version dependencies (master) (#13)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #13
Co-authored-by: Renovate Bot <no-reply@io-projects.com>
Co-committed-by: Renovate Bot <no-reply@io-projects.com>
2023-10-01 22:09:42 +02:00
117ee2b7cb chore(deps): update minor and patch version dependencies (master) (#11)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #11
Co-authored-by: Renovate Bot <no-reply@io-projects.com>
Co-committed-by: Renovate Bot <no-reply@io-projects.com>
2023-09-24 14:34:24 +02:00
24c9e4df2c chore(ci): 1.2.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-03 15:18:16 +00:00
2bca32b537 fix: prettier to warning and trailingComma (#10)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing
Reviewed-on: #10
Co-authored-by: EndMove <superjeremi1302@gmail.com>
Co-committed-by: EndMove <superjeremi1302@gmail.com>
2023-09-03 17:17:30 +02:00
714414a801 chore(ci): 1.1.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-02 13:48:01 +00:00
da8ebf2936 fix: inconsistent rule and update dependencies (#8)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing
Reviewed-on: #8
Co-authored-by: EndMove <superjeremi1302@gmail.com>
Co-committed-by: EndMove <superjeremi1302@gmail.com>
2023-09-02 15:46:46 +02:00
37eb0ae673 Configure Renovate (#6)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #6
Co-authored-by: Renovate Bot <no-reply@io-projects.com>
Co-committed-by: Renovate Bot <no-reply@io-projects.com>
2023-09-02 15:22:55 +02:00
Maximilien Ledoux
71ac3682b7 docs: fix wrong eslint-config name
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #4
Reviewed-by: Jérémi N ‘EndMove’ <endmove@noreply.endmove.eu>
2023-08-11 09:14:56 +02:00
7ca678b9c2 chore(ci): 1.1.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-28 14:09:53 +00:00
4e0301a2ba fix(ci): drone tag ?
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/master Build is passing
2023-06-28 16:08:49 +02:00
1370424eea fix(ci): drone tag ?
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-28 16:06:53 +02:00
5b377f41a5 fix .drone.yml and dependent packages vulnerabilities (#2)
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/master Build is failing
Reviewed-on: #2
Co-authored-by: EndMove <superjeremi1302@gmail.com>
Co-committed-by: EndMove <superjeremi1302@gmail.com>
2023-06-28 15:53:46 +02:00
c1329ee0ea feat(ci) Setting up drone ci + fix package [test] (#1)
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/master Build is failing
Reviewed-on: #1
Co-authored-by: EndMove <superjeremi1302@gmail.com>
Co-committed-by: EndMove <superjeremi1302@gmail.com>
2023-06-28 14:38:10 +02:00
d6413f3f88 feat(ci) Setting up drone ci + fix package [test] (#1)
Reviewed-on: #1
Co-authored-by: EndMove <superjeremi1302@gmail.com>
Co-committed-by: EndMove <superjeremi1302@gmail.com>
2023-06-28 13:26:08 +02:00
7 changed files with 1481 additions and 620 deletions

View File

@@ -1,7 +1,7 @@
---
kind: pipeline
type: docker
name: npm-publish-snapshot
name: snapshot
trigger:
event:
@@ -17,39 +17,65 @@ steps:
GITEA_TOKEN:
from_secret: gitea_token
commands:
- VERSION=$(cat VERSION 2>/dev/null) || echo "1.0.0"
- export VERSION=$(node -p "require('./package.json').version") || 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/ui-eslint-base@$SNAPSHOT snapshot
# - npm dist-tag add @ioprojects/eslint-config@$SNAPSHOT snapshot
---
kind: pipeline
type: docker
name: npm-publish-release
name: checkup
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
- npm version $NEW_VERSION
- 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 publish
# - npm dist-tag add @ioprojects/ui-eslint-base@$SNAPSHOT snapshot

View File

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

View File

@@ -1,3 +1,57 @@
# ioprojects-ui-eslint
# eslint-config
This repository is the NPM package for ESLINT configuration of IO-Projects TypeScript front-end projects.
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`.

View File

@@ -1 +0,0 @@
1.0.4

1923
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,31 +1,34 @@
{
"name": "@ioprojects/ui-eslint-base",
"version": "1.0.4",
"name": "@ioprojects/eslint-config",
"version": "1.3.0",
"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": "^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"
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-cypress": "^2.15.2",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-vue": "^9.32.0",
"prettier": "^3.4.2"
},
"repository": {
"type": "git",
"url": "https://git.endmove.eu/IO-ProjectsOfficial/ioprojects-ui-eslint.git"
"url": "git+https://git.endmove.eu/IO-ProjectsOfficial/eslint-config.git"
},
"keywords": [
"io-project",
"eslint"
],
"author": "IO-Projects <contact@io-projects.com>",
"license": "SEE LICENSE IN THE LICENSE FILE"
"engines": {
"node": ">=18"
}
}

8
renovate.json Normal file
View File

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