Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
epidemian
GitHub Repository: epidemian/eslint-plugin-import
Path: blob/main/tests/files/deprecated.js
829 views
1
// some line comment
2
/**
3
* this function is terrible
4
* @deprecated please use 'x' instead.
5
* @return null
6
*/
7
// another line comment
8
// with two lines
9
export function fn() { return null }
10
11
/**
12
* so terrible
13
* @deprecated this is awful, use NotAsBadClass.
14
*/
15
export default class TerribleClass {
16
17
}
18
19
/**
20
* some flux action type maybe
21
* @deprecated please stop sending/handling this action type.
22
* @type {String}
23
*/
24
export const MY_TERRIBLE_ACTION = "ugh"
25
26
/**
27
* @deprecated this chain is awful
28
* @type {String}
29
*/
30
export const CHAIN_A = "a",
31
/**
32
* @deprecated so awful
33
* @type {String}
34
*/
35
CHAIN_B = "b",
36
37
/**
38
* @deprecated still terrible
39
* @type {String}
40
*/
41
CHAIN_C = "C"
42
43
/**
44
* this one is fine
45
* @return {String} - great!
46
*/
47
export function fine() { return "great!" }
48
49
export function _undocumented() { return "sneaky!" }
50
51