Skip to content

Commit

Permalink
Merge pull request #11 from ponbike/feature/deprecate
Browse files Browse the repository at this point in the history
Add warn message in the code
  • Loading branch information
pieter-pon authored Mar 10, 2022
2 parents ebabd8a + a26e53d commit 2c4242a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions bin/cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ var match = process.version.match(/v(\d+)\.(\d+)/)
var major = parseInt(match[1], 10)
var minor = parseInt(match[2], 10)

console.warn('This is no longer supported, please consider using `@pondevelopment/ponstandard` instead.')

if (major >= 14 || (major === 14 && minor >= 14)) {
eval('import("standard-engine")').then((standardEngine) => {
eval('import("../options.js")').then((options) => {
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ import * as opts from './options.js'

const Linter = standardEngine.linter

console.warn('This is no longer supported, please consider using `@pondevelopment/ponstandard` instead.')

export default new Linter(opts)
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ponbike/ponstandard",
"description": "JavaScript Standard Style with custom PON tweaks",
"version": "0.4.2",
"version": "0.4.3",
"deprecated": "This is no longer supported, please consider using `@pondevelopment/ponstandard` instead.",
"author": {
"name": "Pieter Wigboldus",
Expand Down

0 comments on commit 2c4242a

Please sign in to comment.