Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 53 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,59 @@
{
"extends": ["airbnb", "prettier"],
"plugins": ["prettier"],
"env": {
"browser": true,
"es6": true,
"commonjs": true,
"node": true
},
"extends": ["airbnb", "prettier", "prettier/react"],
"plugins": ["prettier", "react", "jsx-a11y"],
"rules": {
"prettier/prettier": ["error"],
"comma-spacing": ["error", { "before": false, "after": true }],
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"func-names": "off",
"prefer-arrow-callback":"off",
"prefer-arrow-callback": "off",
"no-use-before-define": "off",
"max-len": [2, 80, 4, {"ignoreUrls": true}]
}
}
"max-len": [
2,
80,
4,
{
"ignoreUrls": true,
"ignoreComments": true,
"ignorePattern": "^import\\s.+\\sfrom\\s.+;$",
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"quotes": [2, "double"],
"import/no-named-as-default": 0,
"import/no-named-as-default-member": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0,
"consistent-return": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-shadow": "off",
"no-restricted-syntax": "off",
"no-prototype-builtins": "off",
"no-underscore-dangle": "off",
"no-console": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/require-default-props": 0,
"react/forbid-prop-types": 0,
"react/prefer-stateless-function": 0,
"react/jsx-one-expression-per-line": 0,
"react/destructuring-assignment": 0,
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": "off",
"prefer-template": "off",
"jsx-a11y/alt-text": "off",
"react/no-unescaped-entities": "off",
"jsx-a11y/anchor-is-valid": "off",
"react/button-has-type": "off",
"react/prop-types": "off",
"linebreak-style": "off",
"no-debugger": "off"
},
"parser": "babel-eslint"
}
4 changes: 2 additions & 2 deletions config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const env = getClientEnvironment(publicUrl);
module.exports = {
// You may want 'eval' instead if you prefer to see the compiled output in DevTools.
// See the discussion in https://github.com/facebookincubator/create-react-app/issues/343.
devtool: 'cheap-module-source-map',
devtool: 'eval-source-map',
// These are the "entry points" to our application.
// This means they will be the "root" imports that are included in JS bundle.
// The first two entry points enable "hot" CSS and auto-refreshes for JS.
Expand Down Expand Up @@ -65,7 +65,7 @@ module.exports = {
publicPath: publicPath,
// Point sourcemap entries to original disk location (format as URL on Windows)
devtoolModuleFilenameTemplate: info =>
path.resolve(info.absoluteResourcePath).replace(/\\/g, '/'),
"file://" + path.resolve(info.absoluteResourcePath).replace(/\\/g, '/'),
},
resolve: {
// This allows you to set a fallback for where Webpack should look for modules.
Expand Down
Loading