-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexplicitly-unused.js
142 lines (128 loc) · 4.82 KB
/
explicitly-unused.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/** @type {import('eslint').Linter.Config[]} */
export default [{
name: 'ash-nazg-internal/explicitly-unused',
rules: {
// This file is for indicating those rules available in inherited plugins
// which we have consciously not included (and not help catch any not
// so considered as part of our `build.js` routines). See the README for
// details on why we have decided not to include these.
'@stylistic/function-call-argument-newline': 'off',
'@stylistic/lines-around-comment': 'off',
'@stylistic/newline-per-chained-call': 'off',
'@stylistic/one-var-declaration-per-line': 'off',
'@stylistic/padding-line-between-statements': 'off',
'array-element-newline': 'off',
'arrow-body-style': 'off',
'func-names': 'off',
'func-style': 'off',
'id-blacklist': 'off',
'id-denylist': 'off',
'id-length': 'off',
'id-match': 'off',
'init-declarations': 'off',
'line-comment-position': 'off',
'logical-assignment-operators': 'off',
'max-classes-per-file': 'off',
'max-depth': 'off',
'max-lines-per-function': 'off',
'max-lines': 'off',
'max-params': 'off',
'multiline-comment-style': 'off',
'no-continue': 'off',
'no-inline-comments': 'off',
'no-invalid-this': 'off',
'no-multi-assign': 'off',
'no-negated-condition': 'off',
'no-nested-ternary': 'off',
'no-param-reassign': 'off',
'no-restricted-exports': 'off',
'no-restricted-imports': 'off',
'no-restricted-modules': 'off',
'no-return-await': 'off',
'no-ternary': 'off',
'no-undefined': 'off',
'no-underscore-dangle': 'off',
'no-useless-concat': 'off',
'prefer-arrow-callback': 'off',
'prefer-object-has-own': 'off',
'prefer-template': 'off',
'require-atomic-updates': 'off',
'sort-imports': 'off',
'sort-keys': 'off',
'sort-vars': 'off',
// Node-specific rules that are apparently to be removed in ESLint 7
// (have replacements we are using in eslint-plugin-n)
'callback-return': 'off',
'global-require': 'off',
'no-mixed-requires': 'off',
'no-process-env': 'off',
'no-sync': 'off',
// Deprecated
'n/no-hide-core-modules': 'off',
'n/no-unsupported-features': 'off',
'import/imports-first': 'off',
'unicorn/regex-shorthand': 'off',
// NON-RECOMMENDED (so no need to add to `main.js`, etc. and override)
'import/consistent-type-specifier-style': 'off',
'import/dynamic-import-chunkname': 'off',
'import/exports-last': 'off',
'import/group-exports': 'off',
'import/max-dependencies': 'off',
'import/no-cycle': 'off',
'import/no-default-export': 'off',
'import/no-import-module-exports': 'off',
'import/no-internal-modules': 'off',
'import/no-named-export': 'off',
'import/no-namespace': 'off',
'import/no-nodejs-modules': 'off',
'import/no-relative-packages': 'off',
'import/no-relative-parent-imports': 'off',
'import/no-restricted-paths': 'off',
'import/no-unassigned-import': 'off',
'import/prefer-default-export': 'off',
'n/file-extension-in-import': 'off',
'n/no-restricted-import': 'off',
'n/no-restricted-require': 'off',
'promise/no-native': 'off',
'eslint-comments/no-restricted-disable': 'off',
'eslint-comments/no-use': 'off',
'jsdoc/no-blank-blocks': 'off',
'jsdoc/no-defaults': 'off',
'jsdoc/require-description-complete-sentence': 'off',
'jsdoc/require-hyphen-before-param-description': 'off',
'jsdoc/require-file-overview': 'off',
'jsdoc/match-name': 'off',
'jsdoc/informative-docs': 'off',
'jsdoc/no-blank-block-descriptions': 'off',
// These rules are actually part of recommended, but since it is 'off'
// there, we don't include it in comparisons to show what is
// inherited from `recommended` or unused from the plugin so we
// need to add here
'jsdoc/no-types': 'off',
'jsdoc/no-missing-syntax': 'off',
'jsdoc/no-restricted-syntax': 'off',
'jsdoc/sort-tags': 'off',
'jsdoc/text-escaping': 'off',
'sonarjs/elseif-without-else': 'off',
'unicorn/no-unused-properties': 'off',
'unicorn/no-keyword-prefix': 'off',
'unicorn/prefer-at': 'off',
'unicorn/prefer-json-parse-buffer': 'off',
'unicorn/prefer-string-replace-all': 'off',
'unicorn/prefer-top-level-await': 'off',
'unicorn/string-content': 'off',
// Renamed
'unicorn/no-array-instanceof': 'off',
'unicorn/no-fn-reference-in-iterator': 'off',
'unicorn/no-reduce': 'off',
'unicorn/prefer-dataset': 'off',
'unicorn/prefer-node-append': 'off',
'unicorn/prefer-node-remove': 'off',
'unicorn/prefer-event-key': 'off',
'unicorn/prefer-flat-map': 'off',
'unicorn/prefer-replace-all': 'off',
'unicorn/prefer-starts-ends-with': 'off',
'unicorn/prefer-text-content': 'off',
'unicorn/prefer-trim-start-end': 'off'
}
}];