Skip to content

Commit

Permalink
chore: replace eslint-plugin-prettier with prettier-linter-helpers (
Browse files Browse the repository at this point in the history
#372)

BREAKING CHANGES:
require Node v6
  • Loading branch information
JounQin committed Apr 12, 2020
1 parent 0fc2a4c commit f0887ef
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
10 changes: 0 additions & 10 deletions .travis.yml
Expand Up @@ -15,16 +15,6 @@ script:
- yarn run build
- yarn run test

- > # yarn and tslint-test do not work on node 4
if [ "$TRAVIS_NODE_VERSION" = "6" ]; then
echo '{ "presets": [["@babel/preset-env", { "targets": { "node": "4" } }]] }' > .babelrc.test.json
npm install @babel/cli @babel/core @babel/preset-env
node_modules/.bin/babel node_modules/@babel/code-frame/lib --out-dir node_modules/@babel/code-frame/lib --config-file ./.babelrc.test.json
node_modules/.bin/babel node_modules/@babel/highlight/lib --out-dir node_modules/@babel/highlight/lib --config-file ./.babelrc.test.json
nvm install 4
npm run test
fi
after_script:
- node_modules/.bin/codecov

Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -27,14 +27,14 @@
"release": "standard-version"
},
"dependencies": {
"eslint-plugin-prettier": "^2.2.0",
"lines-and-columns": "^1.1.6",
"prettier-linter-helpers": "^1.0.0",
"tslib": "^1.7.1"
},
"devDependencies": {
"@types/eslint-plugin-prettier": "2.2.0",
"@types/node": "4.9.3",
"@types/prettier": "2.0.0",
"@types/prettier-linter-helpers": "1.0.0",
"codecov": "3.6.5",
"nyc": "11.9.0",
"prettier": "2.0.4",
Expand All @@ -52,7 +52,7 @@
"codecov/**/har-validator": "5.1.0"
},
"engines": {
"node": ">= 4"
"node": ">= 6"
},
"files": [
"/rules/**/*"
Expand Down
2 changes: 1 addition & 1 deletion src/prettierRule.ts
@@ -1,4 +1,4 @@
import * as utils from 'eslint-plugin-prettier';
import * as utils from 'prettier-linter-helpers';
import LineAndColumn from 'lines-and-columns';
import * as path from 'path';
import * as prettier from 'prettier';
Expand Down
19 changes: 14 additions & 5 deletions yarn.lock
Expand Up @@ -22,14 +22,15 @@
version "1.0.0"
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.0.0.tgz#9c13c2574c92d4503b005feca8f2e16cc1611506"

"@types/eslint-plugin-prettier@2.2.0":
version "2.2.0"
resolved "https://registry.yarnpkg.com/@types/eslint-plugin-prettier/-/eslint-plugin-prettier-2.2.0.tgz#26170ee65ce05d811f3ef6fc2987acd525066c7f"

"@types/node@4.9.3":
version "4.9.3"
resolved "https://registry.yarnpkg.com/@types/node/-/node-4.9.3.tgz#a24697a8157ab517996afe0c88fa716550ae419a"

"@types/prettier-linter-helpers@1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@types/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#04d307e41c3c33ecd1e1e3adc3f79cd2bd3c98e7"
integrity sha512-lMw2L2FDbcRI0XwdGfY4CJynlBKaDkwMTX0loAjgS6ipZEcMcK2Jmi/Ms08PCX82+iYmDCLhqxghI+sUVGc70w==

"@types/prettier@2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.0.0.tgz#dc85454b953178cc6043df5208b9e949b54a3bc4"
Expand Down Expand Up @@ -798,9 +799,10 @@ fast-deep-equal@^1.0.0:
version "1.1.0"
resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz#c053477817c86b51daa853c81e059b733d023614"

fast-diff@^1.1.1:
fast-diff@^1.1.1, fast-diff@^1.1.2:
version "1.2.0"
resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03"
integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==

fast-json-stable-stringify@^2.0.0:
version "2.0.0"
Expand Down Expand Up @@ -1904,6 +1906,13 @@ preserve@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"

prettier-linter-helpers@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b"
integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==
dependencies:
fast-diff "^1.1.2"

prettier@2.0.4:
version "2.0.4"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.4.tgz#2d1bae173e355996ee355ec9830a7a1ee05457ef"
Expand Down

0 comments on commit f0887ef

Please sign in to comment.