Created
January 31, 2018 02:19
-
-
Save pathsny/51ce729587febb85d7d49dcbe2e03a3f to your computer and use it in GitHub Desktop.
no-flow-fix-me-comments not working
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] | |
}, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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": {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @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