Skip to content

Commit 78156c9

Browse files
authored
initial migration to azure (#160)
* initial migration to azure * update repo badge * simplify and update azure config * upgrade babel and all other infra
1 parent 04bce8f commit 78156c9

File tree

13 files changed

+2087
-2506
lines changed

13 files changed

+2087
-2506
lines changed

.babelrc

Lines changed: 0 additions & 14 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 38 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ eslint-plugin-flowtype-errors
22
=============================
33

44
[![Build Status](https://travis-ci.org/amilajack/eslint-plugin-flowtype-errors.svg?branch=master)](https://travis-ci.org/amilajack/eslint-plugin-flowtype-errors)
5-
[![Build status](https://ci.appveyor.com/api/projects/status/ag1pm0a914bed8c8/branch/master?svg=true)](https://ci.appveyor.com/project/amilajack/eslint-plugin-flowtype-errors/branch/master)
5+
[![Build Status](https://dev.azure.com/amilajack0438/amilajack/_apis/build/status/amilajack.eslint-plugin-flowtype-errors?branchName=master)](https://dev.azure.com/amilajack0438/amilajack/_build/latest?definitionId=1&branchName=master)
66
[![NPM version](https://badge.fury.io/js/eslint-plugin-flowtype-errors.svg)](http://badge.fury.io/js/eslint-plugin-flowtype-errors)
77
[![Dependency Status](https://img.shields.io/david/amilajack/eslint-plugin-flowtype-errors.svg)](https://david-dm.org/amilajack/eslint-plugin-flowtype-errors)
88
[![npm](https://img.shields.io/npm/dm/eslint-plugin-flowtype-errors.svg)](https://npm-stat.com/charts.html?package=eslint-plugin-flowtype-errors)

appveyor.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

azure-pipelines.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
# Node.js
2-
# Build a general Node.js project with npm.
3-
# Add steps that analyze code, save build artifacts, deploy, and more:
4-
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
5-
6-
trigger:
7-
- master
1+
strategy:
2+
matrix:
3+
linux:
4+
imageName: 'ubuntu-16.04'
5+
mac:
6+
imageName: 'macos-10.13'
7+
windows:
8+
imageName: 'vs2017-win2016'
89

910
pool:
10-
vmImage: 'Ubuntu-16.04'
11+
vmImage: $(imageName)
1112

1213
steps:
1314
- task: NodeTool@0
1415
inputs:
15-
versionSpec: '8.x'
16-
displayName: 'Install Node.js'
16+
versionSpec: '10.x'
1717

1818
- script: |
19-
npm install
20-
npm run build
21-
displayName: 'npm install and build'
19+
yarn && yarn test

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
/* eslint-disable */
2-
module.exports = require('./dist/index');
2+
module.exports = require('./dist/index').default;

package.json

Lines changed: 82 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"version": "3.6.0",
44
"description": "Retrieve Flow errors as ESLint errors.",
55
"author": "Amila Welihinda",
6-
"bugs": {
7-
"url": "https://github.com/amilajack/eslint-plugin-flowtype-errors/issues"
8-
},
6+
"bugs": "https://github.com/amilajack/eslint-plugin-flowtype-errors/issues",
97
"homepage": "https://github.com/amilajack/eslint-plugin-flowtype-errors#readme",
108
"main": "index.js",
119
"scripts": {
@@ -14,13 +12,10 @@
1412
"lint": "eslint --cache --format=node_modules/eslint-formatter-pretty .",
1513
"prettier": "prettier --single-quote --write \"./src/*.js\"",
1614
"preversion": "yarn build",
17-
"spec": "yarn build && jest test/format.spec.js",
15+
"spec": "yarn build && jest",
1816
"test": "yarn flow && yarn lint && yarn spec"
1917
},
20-
"repository": {
21-
"type": "git",
22-
"url": "git+https://github.com/amilajack/eslint-plugin-flowtype-errors.git"
23-
},
18+
"repository": "https://github.com/amilajack/eslint-plugin-flowtype-errors",
2419
"jest": {
2520
"testEnvironment": "node"
2621
},
@@ -35,39 +30,37 @@
3530
"dist"
3631
],
3732
"dependencies": {
38-
"babel-runtime": "^6.26.0",
33+
"@babel/runtime": "^7.0.0",
3934
"find-up": "^3.0.0",
4035
"slash": "^2.0.0"
4136
},
4237
"devDependencies": {
43-
"babel-cli": "^6.26.0",
44-
"babel-eslint": "^9.0.0",
45-
"babel-jest": "^23.4.2",
46-
"babel-plugin-add-module-exports": "^0.2.1",
47-
"babel-plugin-transform-flow-strip-types": "^6.22.0",
48-
"babel-plugin-transform-runtime": "^6.23.0",
49-
"babel-preset-env": "^1.7.0",
50-
"babel-preset-flow": "^6.23.0",
51-
"babel-preset-stage-0": "^6.24.1",
52-
"babel-register": "^6.26.0",
53-
"chai": "^4.1.2",
38+
"@babel/cli": "^7.0.0",
39+
"@babel/core": "^7.0.0",
40+
"@babel/plugin-proposal-class-properties": "^7.0.0",
41+
"@babel/preset-env": "^7.0.0",
42+
"@babel/preset-flow": "^7.0.0",
43+
"@babel/register": "^7.0.0",
44+
"babel-core": "^7.0.0-bridge.0",
45+
"babel-eslint": "^10.0.1",
46+
"babel-jest": "^24.1.0",
47+
"chai": "^4.2.0",
5448
"cross-env": "^5.2.0",
5549
"cross-spawn": "^6.0.5",
56-
"eslint": "4.19.1",
50+
"eslint": "5.14.1",
5751
"eslint-config-airbnb-base": "^13.1.0",
58-
"eslint-config-prettier": "^3.0.1",
59-
"eslint-formatter-pretty": "^1.3.0",
60-
"eslint-nibble-ignore": "^3.0.0",
61-
"eslint-plugin-flowtype": "^2.50.0",
62-
"eslint-plugin-html": "^4.0.5",
63-
"eslint-plugin-import": "^2.14.0",
64-
"eslint-plugin-prettier": "^2.6.2",
65-
"eslint-plugin-vue": "^4.7.1",
52+
"eslint-config-prettier": "^4.0.0",
53+
"eslint-formatter-pretty": "^2.1.1",
54+
"eslint-plugin-flowtype": "^3.4.2",
55+
"eslint-plugin-html": "^5.0.3",
56+
"eslint-plugin-import": "^2.16.0",
57+
"eslint-plugin-prettier": "^3.0.1",
58+
"eslint-plugin-vue": "^5.2.2",
6659
"execa": "^1.0.0",
6760
"flow-bin": "0.93.0",
68-
"jest-cli": "^23.5.0",
69-
"prettier": "^1.14.2",
70-
"regenerator-runtime": "^0.12.1"
61+
"jest-cli": "^24.1.0",
62+
"prettier": "^1.16.4",
63+
"regenerator-runtime": "^0.13.1"
7164
},
7265
"peerDependencies": {
7366
"eslint": ">=4.0.0",
@@ -76,5 +69,62 @@
7669
"engines": {
7770
"node": ">=4.x",
7871
"npm": ">=5.x"
72+
},
73+
"babel": {
74+
"presets": [
75+
[
76+
"@babel/preset-env",
77+
{
78+
"targets": {
79+
"node": 10
80+
},
81+
"useBuiltIns": "usage"
82+
}
83+
],
84+
"@babel/preset-flow"
85+
]
86+
},
87+
"eslintConfig": {
88+
"extends": [
89+
"airbnb-base",
90+
"prettier",
91+
"prettier/flowtype"
92+
],
93+
"parser": "babel-eslint",
94+
"env": {
95+
"node": true,
96+
"es6": true
97+
},
98+
"plugins": [
99+
"flowtype",
100+
"prettier"
101+
],
102+
"rules": {
103+
"consistent-return": "off",
104+
"flowtype/define-flow-type": "error",
105+
"fp/no-arguments": "off",
106+
"fp/no-class": "off",
107+
"fp/no-delete": "off",
108+
"fp/no-events": "off",
109+
"fp/no-get-set": "off",
110+
"fp/no-let": "off",
111+
"fp/no-loops": "off",
112+
"fp/no-mutating-assign": "off",
113+
"fp/no-mutating-methods": "off",
114+
"fp/no-mutation": "off",
115+
"fp/no-nil": "off",
116+
"fp/no-proxy": "off",
117+
"fp/no-rest-parameters": "off",
118+
"fp/no-this": "off",
119+
"fp/no-throw": "off",
120+
"fp/no-unused-expression": "off",
121+
"fp/no-valueof-field": "off",
122+
"prefer-destructuring": "off"
123+
}
124+
},
125+
"renovate": {
126+
"extends": [
127+
"bliss"
128+
]
79129
}
80130
}

renovate.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function createFilteredErrorRule(filter: CollectOutputElement => any) {
152152
};
153153
}
154154

155-
export default {
155+
module.exports = {
156156
rules: {
157157
'enforce-min-coverage': function enforceMinCoverage(
158158
context: EslintContext

0 commit comments

Comments
 (0)