Skip to content

Commit f1297af

Browse files
committed
Initial implementation of "no-null" rule
1 parent 02acf5e commit f1297af

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

stack/eslint-plugin/src/index.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
3+
4+
import { TSESLint } from '@typescript-eslint/experimental-utils';
5+
6+
import { noNullRule } from './no-null';
7+
8+
interface IPlugin {
9+
rules: { [ruleName: string]: TSESLint.RuleModule<string, unknown[]> };
10+
}
11+
12+
const plugin: IPlugin = {
13+
rules: {
14+
// NOTE: The actual ESLint rule name will be "@rushstack/no-null".
15+
'no-null': noNullRule
16+
}
17+
};
18+
19+
export = plugin;

stack/eslint-plugin/src/no-null.ts

3.11 KB
Binary file not shown.

0 commit comments

Comments
 (0)