Skip to content

Instantly share code, notes, and snippets.

@pathsny
Created January 31, 2018 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pathsny/51ce729587febb85d7d49dcbe2e03a3f to your computer and use it in GitHub Desktop.
Save pathsny/51ce729587febb85d7d49dcbe2e03a3f to your computer and use it in GitHub Desktop.
no-flow-fix-me-comments not working
module.exports = {
env: {
browser: true,
es6: true,
},
parser: 'babel-eslint',
extends: ["plugin:flowtype/recommended"],
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
},
sourceType: 'module',
},
plugins: ['flowtype'],
rules: {
'flowtype/no-dupe-keys': 'error',
'flowtype/no-flow-fix-me-comments': 'error',
'flowtype/delimiter-dangle': ['error', 'always']
},
};
{
"scripts": {
"lint": "eslint . && echo \"eslint: no lint errors\""
},
"author": "vsi",
"devDependencies": {
"@babel/core": "^7.0.0-beta.37",
"babel-eslint": "^8.2.1",
"eslint": "^4.16.0",
"eslint-plugin-flowtype": "^2.42.0"
},
"dependencies": {}
}
/* @flow */
'use strict';
type DupKeys = {
a: number,
b: string,
a: number
}
const x: number = 42;
function foo(p: string): void {}
// $FlowFixMe
foo(x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment