Socket
Socket
Sign inDemoInstall

eslint-config-blueflag

Package Overview
Dependencies
264
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.4.0

react.js

23

flow.js
module.exports = {
"plugins": [
"flowtype",
"flow-vars"
"flowtype"
],
"rules": {
"flow-vars/define-flow-type": 1,
"flow-vars/use-flow-type": 1,
"flowtype/require-parameter-type": [2, {"excludeArrowFunctions": true }],
"flowtype/require-return-type": [2, "always", {"excludeArrowFunctions": true}],
"flowtype/space-after-type-colon": [1, "always"],
"flowtype/space-before-type-colon": [1, "never"]
"flowtype/delimiter-dangle": [2, "never"], // Don't allow trailing commas
"flowtype/define-flow-type": 1, // Marks Flow type identifiers as defined
"flowtype/use-flow-type": 1, //Marks Flow type alias declarations as used.
"flowtype/generic-spacing": [2, "never"], // Don't allow spaces in generic type annotations, eg. `Promise< any >`
"flowtype/no-dupe-keys": [2, "never"], // Don't allow duplicates in object annotations
"flowtype/no-primitive-constructor-types": [2, "never"], // Don't allow use of String, Boolean, etc
"flowtype/object-type-delimiter": [2, "comma"], // Enforce commas for object annotation delimiters
"flowtype/require-parameter-type": [2, {"excludeArrowFunctions": "expressionsOnly" }], // Require param type for everything except expression only arrow functions
"flowtype/require-return-type": [2, "always", {"excludeArrowFunctions": "expressionsOnly"}],
"flowtype/require-valid-file-annotation": [2, "always"], // enforce having @flow at top of file
"flowtype/semi": [2, "always"], // require semicolon after type aliases
"flowtype/space-after-type-colon": [2, "always"], // Require space after type annotation colon
"flowtype/space-before-generic-bracket": [2, "never"], // Don't allow spaces between type and generic bracket
"flowtype/space-before-type-colon": [2, "never"]
}
}
module.exports = {
extends: [
"eslint:recommended",
"plugin:react/recommended",
"eslint-config-blueflag/src/parser",
"eslint-config-blueflag/src/react",
"eslint-config-blueflag/src/javascript"
]
]
}
{
"name": "eslint-config-blueflag",
"version": "0.3.0",
"version": "0.4.0",
"repository": {

@@ -23,8 +23,7 @@ "type": "git",

"dependencies": {
"babel-eslint": "^6.0.3",
"eslint": "2.4.0",
"eslint-plugin-flow-vars": "^0.3.0",
"eslint-plugin-flowtype": "^2.2.6",
"eslint-plugin-react": "^5.0.1"
"babel-eslint": "^7.1.1",
"eslint": "3.12.2",
"eslint-plugin-flowtype": "^2.29.1",
"eslint-plugin-react": "^6.8.0"
}
}

@@ -9,5 +9,7 @@ module.exports = {

indent: [2, 4, {
SwitchCase: 1
}]
SwitchCase: 1
}],
"semi": [2, "always"],
"comma-dangle": [2, "never"]
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc