This website requires JavaScript.
Explore
Help
Register
Sign In
tonyair
/
silverstripe-cms
Watch
1
Star
0
Fork
0
You've already forked silverstripe-cms
mirror of
https://github.com/silverstripe/silverstripe-cms
synced
2024-10-22 08:05:56 +02:00
Code
Issues
Projects
Releases
Wiki
Activity
7d18cda7ee
silverstripe-cms
/
.eslintrc
7 lines
66 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Adding ESLint Not much too lint yet in terms of new code, but it's consistent with framework and asset-admin modules
2016-04-08 05:08:08 +02:00
{
Enforce JS var declaration with value This caught us out recently where code did a strict type check for `myVar === undefined`. The var was defined as `let myVar;`, without a value - so the check returned false (it's `null`). To avoid this situation, we've decided to enforce declarations with values. Note that preference should be given to single, immutable assignments via const where possible. See http://eslint.org/docs/rules/init-declarations
2016-09-13 00:08:32 +02:00
"extends": "airbnb",
"rules": {
"init-declarations": 1
}
Adding ESLint Not much too lint yet in terms of new code, but it's consistent with framework and asset-admin modules
2016-04-08 05:08:08 +02:00
}
Reference in New Issue
Copy Permalink