Skip to content

Instantly share code, notes, and snippets.

@lukekarrys
Last active December 7, 2016 17:46
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 lukekarrys/403897c78dc5b0b7387c15851fe48b5a to your computer and use it in GitHub Desktop.
Save lukekarrys/403897c78dc5b0b7387c15851fe48b5a to your computer and use it in GitHub Desktop.
eslint-plugin-import 2.0.0 newline-after-import rule crash
{
"presets": ["es2015"]
}
{
"parser": "babel-eslint",
"plugins": ["import"],
"rules": {
"import/newline-after-import": 2
}
}
node_modules/
*.log
@SomeDecorator(require('./some-file'))
export default class App {}
{
"name": "eslint-plugin-import-v2-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"lint": "DEBUG=eslint-plugin-import:rules:newline-after-import eslint ."
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"babel-eslint": "^7.0.0",
"babel-preset-es2015": "^6.16.0",
"eslint": "^3.6.1",
"eslint-plugin-import": "^2.0.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment