You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-35Lines changed: 44 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# eslint-plugin-interfaced
2
2
3
-
[ESLint](https://eslint.org) plugin with rules for the approaches adopted by [Interfaced](http://interfaced.tv) company.
3
+
[ESLint](https://eslint.org) plugin with essential rules for [Closure Compiler](https://developers.google.com/closure/compiler/) environment and [JSDoc](http://usejsdoc.org/).
4
4
5
5
## Usage
6
6
@@ -10,7 +10,7 @@
10
10
npm i eslint-plugin-interfaced --save-dev
11
11
```
12
12
13
-
2) Specify "interfaced" as a plugin in your .eslintrc:
13
+
2) Specify "interfaced" as a plugin in your `.eslintrc`:
14
14
15
15
```json
16
16
{
@@ -20,7 +20,7 @@ npm i eslint-plugin-interfaced --save-dev
20
20
}
21
21
```
22
22
23
-
3) Enable all of the rules that you would like to use in your .eslintrc:
23
+
3) Enable all of the rules that you would like to use in your `.eslintrc`:
24
24
25
25
```json
26
26
{
@@ -32,38 +32,47 @@ npm i eslint-plugin-interfaced --save-dev
*[interfaced/event-const-value](docs/rules/event-const-value.md) - enforce event constant value to be a lowercase latin string with dash sign delimiter
55
+
*[interfaced/interface-name-prefix](docs/rules/interface-name-prefix.md) - enforce "I" prefix for interface name
56
+
*[interfaced/singular-enum](docs/rules/singular-enum.md) - enforce enum name to be singular
57
+
58
+
### Stylistic issues
59
+
60
+
*[interfaced/lines-around-class](docs/rules/lines-around-class.md) - enforce newlines before and after class
61
+
*[interfaced/lines-between-methods](docs/rules/lines-between-methods.md) - enforce newlines between methods
62
+
*[interfaced/lines-between-props](docs/rules/lines-between-props.md) - enforce newlines between properties
63
+
*[interfaced/methods-order](docs/rules/methods-order.md) - enforce the specified order for methods
64
+
*[interfaced/props-order](docs/rules/props-order.md) - enforce the specified order for properties
65
+
*[interfaced/typecast-spacing](docs/rules/typecast-spacing.md) - enforce spacing in typecast (JSDoc + parenthesis)
66
+
67
+
### Other
68
+
69
+
*[interfaced/no-empty-method](docs/rules/no-empty-method.md) - disallow empty methods when class is neither abstract, interface nor record
70
+
*[interfaced/no-public-underscore](docs/rules/no-public-underscore.md) - disallow methods and properties with name that starts from "_" without private/protected access modifier
71
+
*[interfaced/prevent-unused-meta-params](docs/rules/prevent-unused-meta-params.md) - prevent interface, record, abstract or overriding method params to be marked as unused
72
+
73
+
### Redefined
74
+
75
+
Some useful rules provided by ESLint are slightly inappropriate for our environment, so we redefine them with some adjusting:
0 commit comments