UNPKG

react-static-webpack-plugin

Version:

Build full static sites using React, React Router and Webpack

44 lines (29 loc) 1.1 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], "no-shadow": [0], "array-bracket-spacing": [0], "prefer-const": [0], "func-names": [0], "no-use-before-define": [2, "nofunc"], // 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], }, }