Skip to content

Commit

Permalink
update linting settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilian committed Mar 15, 2019
1 parent 1aeaf00 commit 459a448
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 40 deletions.
56 changes: 17 additions & 39 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,48 +1,26 @@
{
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": true
},
"extends": ["airbnb", "prettier"],
"env": {
"browser": true,
"node": true
"extends": "erb",
"settings": {
"import/resolver": {
"webpack": {
"config": "configs/webpack.config.eslint.js"
}
}
},
"rules": {
"arrow-parens": ["off"],
"compat/compat": "error",
"consistent-return": "off",
"comma-dangle": "off",
"generator-star-spacing": "off",
"import/no-unresolved": "error",
"import/no-extraneous-dependencies": "off",
"jsx-a11y/anchor-is-valid": "off",
"no-console": "off",
"no-use-before-define": "off",
"no-multi-assign": "off",
"promise/param-names": "error",
"promise/always-return": "error",
"promise/catch-or-return": "error",
"promise/no-native": "off",
"react/sort-comp": [
"prettier/prettier": [
"error",
{
"order": ["type-annotations", "static-methods", "lifecycle", "everything-else", "render"]
"singleQuote": true,
"useTabs": false,
"printWidth": 120,
"tabWidth": 2,
"trailingComma": "es5"
}
],
"react/jsx-no-bind": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/prefer-stateless-function": "off",
"jsx-a11y/label-has-associated-control": "off",
"react/destructuring-assignment": "off"
},
"plugins": ["import", "promise", "compat", "react"],
"settings": {
"import/resolver": {
"webpack": {
"config": "./webpack.config.eslint.js"
}
}
"no-nested-ternary": "off",
"react/destructuring-assignment": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": "off"
}
}
2 changes: 1 addition & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "stylelint-config-standard"
"extends": ["stylelint-config-prettier"]
}
39 changes: 39 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,15 @@
"electron-rebuild": "^1.8.2",
"eslint": "^5.0.0",
"eslint-config-airbnb": "^17.0.0",
"eslint-config-erb": "0.0.2",
"eslint-config-prettier": "^2.9.0",
"eslint-formatter-pretty": "^1.3.0",
"eslint-import-resolver-webpack": "^0.10.0",
"eslint-plugin-compat": "^2.2.0",
"eslint-plugin-flowtype": "^3.4.2",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jsx-a11y": "6.0.3",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-promise": "^3.7.0",
"eslint-plugin-react": "^7.8.2",
"express": "^4.16.4",
Expand Down

0 comments on commit 459a448

Please sign in to comment.