Skip to content

Instantly share code, notes, and snippets.

@inspireui
Last active June 29, 2018 11:07
Show Gist options
  • Save inspireui/44c79d3ba4b53509cc0b4322d20ddfbb to your computer and use it in GitHub Desktop.
Save inspireui/44c79d3ba4b53509cc0b4322d20ddfbb to your computer and use it in GitHub Desktop.
inspire ui eslint style
{
"parser": "babel-eslint",
"extends": ["airbnb", "prettier"],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"modules": true
},
"ecmaVersion": 7,
"sourceType": "module"
},
"plugins": ["import"],
"ecmaFeatures": {
"jsx": true
},
"globals": {
"expect": true,
"setupTest": true,
"fetch": true,
"__DEV__": true
},
"env": {
"es6": true,
"mocha": true
},
"rules": {
"react/jsx-closing-bracket-location": 0,
"import/no-extraneous-dependencies": 0,
"global-require": 0,
"new-cap": [
2,
{
"newIsCap": true,
"capIsNew": false
}
],
"max-len": [1, 160, 2],
"arrow-body-style": 0,
"class-methods-use-this": 0,
"imports-first": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"no-underscore-dangle": 0,
"no-use-before-define": 0,
"react/forbid-prop-types": 0,
"no-return-assign": [2, "except-parens"],
"generator-star-spacing": 0,
"import/prefer-default-export": 0,
"react/jsx-wrap-multilines": 0,
"arrow-parens": 0,
"react/sort-comp": 0,
"react/require-default-props": 0,
"react/jsx-indent": 0,
"import/extensions": "off",
"import/no-unresolved": "off",
"react/no-unescaped-entities": 0,
"import/no-named-as-default": 0,
"no-case-declarations": 0,
"no-nested-ternary": 0,
"no-continue": 0,
"prefer-destructuring": 0,
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment