UNPKG

react-static-webpack-plugin

Version:

Build full static sites using React, React Router and Webpack

38 lines (27 loc) 1.08 kB
{ "extends": "airbnb", "parser": "babel-eslint", "rules": { // Babel handles strict for us so it should never be manually added "strict": [2, "never"], // Single quotes on JSX components "jsx-quotes": [2, "prefer-single"], // Indent 2 spaces always "indent": [2, 2], // Omitting curly braces is fine as long as there is only one line under the // statement "curly": [2, "multi-or-nest"], // Console can be useful and can also be stripped about by webpack in prod "no-console": [0], // No spaces before function parentheses "space-before-function-paren": [2, "never"], // Don't require a `new` keyword when calling capitalized functons. Ex: // Immutable.Map({}) "new-cap": [2, { "capIsNew": false }], // Having unsed args is allowed b/c its good for consistency and reminding // what vars are available. Ex: (req, res, next) => res.send(/* ... */) "no-unused-vars": [1, {"vars": "all", "args": "none"}], // Allow multiple components in a single file "react/no-multi-comp": [0], }, }