Compare commits
27 Commits
c4cb05f79c
...
renovate/m
| Author | SHA1 | Date | |
|---|---|---|---|
| 8765b943b8 | |||
| 0ce369b94f | |||
| 294be2d06e | |||
| a3bc1ffccf | |||
| 349211df62 | |||
| 1fcbbbf99a | |||
| 22206ad017 | |||
| b56dd0d34c | |||
| df94998489 | |||
| 99b63ee76d | |||
| f78a5ff537 | |||
| 7032234561 | |||
| feee346c5c | |||
| 4a4d4c3c5d | |||
| 117ee2b7cb | |||
| 24c9e4df2c | |||
| 2bca32b537 | |||
| 714414a801 | |||
| da8ebf2936 | |||
| 37eb0ae673 | |||
|
|
71ac3682b7 | ||
| 7ca678b9c2 | |||
|
4e0301a2ba
|
|||
|
1370424eea
|
|||
| 5b377f41a5 | |||
|
c1329ee0ea
|
|||
| d6413f3f88 |
63
.drone.yml
63
.drone.yml
@@ -1,11 +1,14 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: npm-publish-snapshot
|
name: snapshot
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- master
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: publish-snapshot
|
- name: publish-snapshot
|
||||||
@@ -14,11 +17,65 @@ steps:
|
|||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
commands:
|
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}"
|
- SNAPSHOT="$(echo $VERSION)-snapshot.${DRONE_BUILD_NUMBER}"
|
||||||
- echo $VERSION
|
- echo $VERSION
|
||||||
- echo $SNAPSHOT
|
- echo $SNAPSHOT
|
||||||
- npm ci
|
- npm ci
|
||||||
- npm version $SNAPSHOT
|
- npm version $SNAPSHOT
|
||||||
- npm publish --tag 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: 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
|
||||||
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
- 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 publish
|
||||||
|
|||||||
@@ -2,8 +2,9 @@
|
|||||||
"root": true,
|
"root": true,
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"es2021": true,
|
"es2022": true,
|
||||||
"jest": true
|
"jest": true,
|
||||||
|
"node": true
|
||||||
},
|
},
|
||||||
"parser": "@typescript-eslint/parser",
|
"parser": "@typescript-eslint/parser",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
@@ -15,24 +16,18 @@
|
|||||||
},
|
},
|
||||||
"extends": [
|
"extends": [
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"plugin:react/recommended",
|
"plugin:vue/vue3-essential",
|
||||||
"plugin:@typescript-eslint/recommended",
|
"plugin:prettier/recommended",
|
||||||
"plugin:prettier/recommended"
|
"plugin:@typescript-eslint/recommended"
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"jest",
|
"jest",
|
||||||
"cypress",
|
"cypress",
|
||||||
"import",
|
"import",
|
||||||
"@typescript-eslint",
|
"prettier",
|
||||||
"prettier"
|
"@typescript-eslint"
|
||||||
],
|
],
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
|
||||||
"files": ["test/**"],
|
|
||||||
"plugins": ["jest"],
|
|
||||||
"extends": ["plugin:jest/recommended", "plugin:jest/style"],
|
|
||||||
"rules": { "jest/prefer-expect-assertions": "off" }
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"files": ["*.ts", "*.tsx"],
|
"files": ["*.ts", "*.tsx"],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
@@ -59,7 +54,7 @@
|
|||||||
],
|
],
|
||||||
"no-unused-expressions": "off",
|
"no-unused-expressions": "off",
|
||||||
"@typescript-eslint/no-unused-expressions": [
|
"@typescript-eslint/no-unused-expressions": [
|
||||||
"error",
|
"warn",
|
||||||
{
|
{
|
||||||
"allowShortCircuit": true,
|
"allowShortCircuit": true,
|
||||||
"allowTernary": true,
|
"allowTernary": true,
|
||||||
@@ -78,6 +73,12 @@
|
|||||||
"@typescript-eslint/no-useless-constructor": ["warn"]
|
"@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"],
|
"files": ["cypress/e2e/**/*.cy.ts"],
|
||||||
"extends": ["plugin:cypress/recommended"],
|
"extends": ["plugin:cypress/recommended"],
|
||||||
@@ -109,7 +110,7 @@
|
|||||||
"dot-notation": "warn",
|
"dot-notation": "warn",
|
||||||
"quotes": ["error", "single"],
|
"quotes": ["error", "single"],
|
||||||
"prettier/prettier": [
|
"prettier/prettier": [
|
||||||
"error",
|
"warn",
|
||||||
{
|
{
|
||||||
"printWidth": 120,
|
"printWidth": 120,
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
@@ -120,7 +121,8 @@
|
|||||||
"jsxSingleQuote": false,
|
"jsxSingleQuote": false,
|
||||||
"bracketSpacing": true,
|
"bracketSpacing": true,
|
||||||
"bracketSameLine": false,
|
"bracketSameLine": false,
|
||||||
"arrowParens": "always"
|
"arrowParens": "always",
|
||||||
|
"trailingComma": "es5"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,6 +1,8 @@
|
|||||||
# Created by https://www.toptal.com/developers/gitignore/api/node
|
# Created by https://www.toptal.com/developers/gitignore/api/node
|
||||||
# Edit at https://www.toptal.com/developers/gitignore?templates=node
|
# Edit at https://www.toptal.com/developers/gitignore?templates=node
|
||||||
|
|
||||||
|
.idea
|
||||||
|
|
||||||
### Node ###
|
### Node ###
|
||||||
# Logs
|
# Logs
|
||||||
logs
|
logs
|
||||||
|
|||||||
2
.npmrc
2
.npmrc
@@ -1,4 +1,4 @@
|
|||||||
@ioprojects:registry=https://git.endmove.eu/api/packages/io-projectsofficial/npm/
|
@ioprojects:registry=https://git.endmove.eu/api/packages/io-projectsofficial/npm/
|
||||||
//git.endmove.eu/api/packages/io-projectsofficial/npm/:_authToken="${GITEA_TOKEN}"
|
//git.endmove.eu/api/packages/io-projectsofficial/npm/:_authToken="${GITEA_TOKEN}"
|
||||||
tag-version-prefix=""
|
tag-version-prefix=""
|
||||||
message="chore(ci): %s :tada:"
|
message="chore(ci): %s"
|
||||||
|
|||||||
58
README.md
58
README.md
@@ -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`.
|
||||||
|
|||||||
2554
package-lock.json
generated
2554
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
32
package.json
32
package.json
@@ -1,30 +1,34 @@
|
|||||||
{
|
{
|
||||||
"name": "@ioprojects/ui-eslint-base",
|
"name": "@ioprojects/eslint-config",
|
||||||
"version": "1.0.0",
|
"version": "1.3.0",
|
||||||
"description": "NPM package for ESLINT configuration of IO-Projects TypeScript front-end projects",
|
"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",
|
"main": ".eslintrc.json",
|
||||||
"files": [
|
"files": [
|
||||||
".eslintrc.json"
|
".eslintrc.json"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
||||||
"@typescript-eslint/parser": "^5.58.0",
|
"@typescript-eslint/parser": "^8.48.0",
|
||||||
"eslint": "^8.38.0",
|
"eslint": "^9.39.1",
|
||||||
"eslint-config-prettier": "^8.8.0",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"eslint-plugin-cypress": "^2.13.2",
|
"eslint-plugin-cypress": "^5.2.0",
|
||||||
"eslint-plugin-import": "^2.27.5",
|
"eslint-plugin-import": "^2.31.0",
|
||||||
"eslint-plugin-jest": "^27.2.1",
|
"eslint-plugin-jest": "^29.2.1",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^5.2.1",
|
||||||
"eslint-plugin-vue": "^9.10.0"
|
"eslint-plugin-vue": "^10.6.2",
|
||||||
|
"prettier": "^3.4.2"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"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": [
|
"keywords": [
|
||||||
"io-project",
|
"io-project",
|
||||||
"eslint"
|
"eslint"
|
||||||
],
|
],
|
||||||
"author": "IO-Projects <contact@io-projects.com>",
|
"engines": {
|
||||||
"license": "SEE LICENSE IN THE LICENSE FILE"
|
"node": ">=18"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
8
renovate.json
Normal file
8
renovate.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"enabled": true,
|
||||||
|
"packageRules": [{
|
||||||
|
"packageNames": ["node"],
|
||||||
|
"enabled": false
|
||||||
|
}]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user