-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Updated all dependencies, removed support for ESLint < 8 The project also now uses node 14 Reviewed-by: @BurnedMarshal Refs: SFEQS-699
- Loading branch information
1 parent
7464c8c
commit 92cdf4f
Showing
13 changed files
with
884 additions
and
945 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,38 @@ | ||
# Azure DevOps pipeline to build, check source codes and run tests. | ||
# | ||
# To make Danger JS run on a pull request you need to add the following pipeline | ||
# variable and set it with a GitHub access token (scope public_repo); otherwise | ||
# set its value to 'skip' without marking it secret: | ||
# To make Danger JS run on a pull request you need to add the following pipeline | ||
# variable and set it with a GitHub access token (scope public_repo); otherwise | ||
# set its value to 'skip' without marking it secret: | ||
# - DANGER_GITHUB_API_TOKEN | ||
# | ||
# | ||
|
||
variables: | ||
NODE_VERSION: '10.14.1' | ||
NODE_VERSION: "14.18.1" | ||
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn | ||
|
||
# Automatically triggered on PR | ||
# https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema%2Cparameter-schema#pr-trigger | ||
trigger: none | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
vmImage: "ubuntu-latest" | ||
|
||
stages: | ||
- stage: Static_analysis | ||
dependsOn: [] | ||
jobs: | ||
- job: danger | ||
condition: | ||
condition: and( | ||
succeeded(), | ||
and( | ||
succeeded(), | ||
and( | ||
eq(variables['Build.Reason'], 'PullRequest'), | ||
ne(variables['DANGER_GITHUB_API_TOKEN'], 'skip') | ||
) | ||
eq(variables['Build.Reason'], 'PullRequest'), | ||
ne(variables['DANGER_GITHUB_API_TOKEN'], 'skip') | ||
) | ||
) | ||
steps: | ||
- template: azure-templates/setup-project.yml | ||
- bash: | | ||
yarn danger ci | ||
env: | ||
DANGER_GITHUB_API_TOKEN: '$(DANGER_GITHUB_API_TOKEN)' | ||
displayName: 'Danger CI' | ||
DANGER_GITHUB_API_TOKEN: "$(DANGER_GITHUB_API_TOKEN)" | ||
displayName: "Danger CI" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
14.18.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v14.18.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
// import custom DangerJS rules | ||
// see http://danger.systems/js | ||
// see https://github.com/teamdigitale/danger-plugin-digitalcitizenship/ | ||
const checkDangers = require('danger-plugin-digitalcitizenship').default; | ||
const checkDangers = require("danger-plugin-digitalcitizenship").default; | ||
|
||
checkDangers(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
{ | ||
"name": "@pagopa/eslint-config", | ||
"version": "1.3.1", | ||
"version": "2.0.0", | ||
"main": "strong.js", | ||
"repository": "[email protected]:pagopa/eslint-rules.git", | ||
"license": "MIT", | ||
"scripts": { | ||
"format": "prettier --write ." | ||
}, | ||
"dependencies": { | ||
"@typescript-eslint/eslint-plugin": "^4.10.0", | ||
"@typescript-eslint/eslint-plugin-tslint": "^4.10.0", | ||
"@typescript-eslint/parser": "^4.10.0", | ||
"eslint": "^7.15.0", | ||
"eslint-config-prettier": "^7.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.18.0", | ||
"@typescript-eslint/parser": "^5.18.0", | ||
"eslint": "^8.12.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-extra-rules": "^0.0.0-development", | ||
"eslint-plugin-fp": "^2.3.0", | ||
"eslint-plugin-functional": "^2.0.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-jsdoc": "^30.6.1", | ||
"eslint-plugin-no-credentials": "^2.0.9", | ||
"eslint-plugin-prefer-arrow": "^1.2.2", | ||
"eslint-plugin-prettier": "^3.3.0", | ||
"eslint-plugin-react": "^7.21.5", | ||
"eslint-plugin-sonarjs": "^0.5.0", | ||
"prettier": "^2.1.2" | ||
"eslint-plugin-functional": "^4.2.1", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jsdoc": "^39.0.0", | ||
"eslint-plugin-prefer-arrow": "^1.2.3", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-react": "^7.29.4", | ||
"eslint-plugin-sonarjs": "^0.13.0", | ||
"prettier": "^2.6.2" | ||
}, | ||
"devDependencies": { | ||
"danger": "^10.0.0", | ||
"danger-plugin-digitalcitizenship": "*", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.1.3" | ||
"typescript": "^4.6.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
/* eslint-disable */ | ||
module.exports = { | ||
extends: './recommended.js', | ||
plugins: ['react'], | ||
extends: "./recommended.js", | ||
plugins: ["react"], | ||
rules: { | ||
'react/prop-types': 'off', | ||
'react/display-name': 'off', | ||
'react/jsx-key': 'error', | ||
'react/jsx-no-bind': ['error', { allowArrowFunctions: true }], | ||
"react/prop-types": "off", | ||
"react/display-name": "off", | ||
"react/jsx-key": "error", | ||
"react/jsx-no-bind": ["error", { allowArrowFunctions: true }], | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
version: "detect", | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.