forked from import-js/eslint-plugin-import
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeprecated.js
49 lines (42 loc) · 872 Bytes
/
deprecated.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// some line comment
/**
* this function is terrible
* @deprecated please use 'x' instead.
* @return null
*/
// another line comment
// with two lines
export function fn() { return null }
/**
* so terrible
* @deprecated this is awful, use NotAsBadClass.
*/
export default class TerribleClass {
}
/**
* some flux action type maybe
* @deprecated please stop sending/handling this action type.
* @type {String}
*/
export const MY_TERRIBLE_ACTION = "ugh"
/**
* @deprecated this chain is awful
* @type {String}
*/
export const CHAIN_A = "a",
/**
* @deprecated so awful
* @type {String}
*/
CHAIN_B = "b",
/**
* @deprecated still terrible
* @type {String}
*/
CHAIN_C = "C"
/**
* this one is fine
* @return {String} - great!
*/
export function fine() { return "great!" }
export function _undocumented() { return "sneaky!" }