Skip to content

Commit

Permalink
Update eslint config and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jberg committed Sep 21, 2020
1 parent 99e69b3 commit f1e9984
Show file tree
Hide file tree
Showing 3 changed files with 309 additions and 780 deletions.
45 changes: 14 additions & 31 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,37 +1,20 @@
{
"extends": "airbnb",
"extends": "eslint:recommended",
"plugins": ["prettier"],
"env": {
"browser": true,
"commonjs": true,
"node": true,
"es6": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018
},
"rules": {
"arrow-parens": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": ["error", { "properties": "never" }],
"comma-dangle": ["error", {
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "only-multiline",
"exports": "only-multiline",
"functions": "ignore"
}],
"dot-location": ["error", "property"],
"dot-notation": ["error", { "allowKeywords": true }],
"eqeqeq": ["error", "always", { "null": "ignore" }],
"function-paren-newline": ["warn", "consistent"],
"indent": "error",
"max-len": ["error", 100],
"no-confusing-arrow": ["error", { "allowParens": true }],
"curly": "warn",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-mixed-operators": "off",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-underscore-dangle": "off",
"no-unneeded-ternary": ["error", { "defaultAssignment": false }],
"object-curly-spacing": ["error", "always"],
"padded-blocks": ["warn", { blocks: 'never', classes: 'never', switches: 'never' }],
"prefer-destructuring": ["off"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
},
"env": {
"browser": true
"strict": ["error", "global"]
}
}
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,9 @@
"@babel/preset-env": "^7.0.0",
"babel-eslint": "^9.0.0",
"babel-loader": "^8.0.0",
"eslint": "^5.15.1",
"eslint-config-airbnb": "^16.1.0",
"eslint": "^7.9.0",
"eslint-loader": "^2.1.2",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.6.1",
"eslint-plugin-prettier": "^3.1.4",
"webpack": "^4.29.6",
"webpack-cli": "^3.2.3",
"yargs": "^11.0.0"
Expand Down
Loading

0 comments on commit f1e9984

Please sign in to comment.