Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
Use .eslintrc files instead of .yml for eslint configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Duckworth authored and Jonathan Duckworth committed Nov 21, 2017
1 parent c28f3da commit 3cde23a
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 87 deletions.
70 changes: 70 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"env": {
"node": true
},

"extends": [
"airbnb-base",
"./.eslintrc-es6"
],

"parserOptions": {
"sourceType": "script"
},

"rules": {
"curly": ["error", "all"],
"no-undefined": "error",
"strict": ["error", "global"],
"comma-dangle": ["error", "always-multiline"],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-empty": "off",
"func-style": ["error", "expression"],
"keyword-spacing": ["error", {
"overrides": {
"function": {
"after": false
}
}
}],
"no-multiple-empty-lines": "off",
"max-len": ["error", 80],
"max-lines": ["error", 1000],
"padding-line-between-statements": ["error", {
"blankLine": "always",
"prev": "*",
"next": "export"
}, {
"blankLine": "always",
"prev": "directive",
"next": "*"
}],
"consistent-this": ["error", "self"],
"space-before-function-paren": ["error", "never"],
"valid-jsdoc": "error",
"func-names": "off",
"consistent-return": "off",
"no-console": "off",
"indent": ["error", 2, {
"MemberExpression": 0,
"CallExpression": {
"arguments": "off"
},
"FunctionExpression": {
"parameters": "off"
}
}],
"function-paren-newline": "off",
"one-var": "off",
"padded-blocks": "off",
"global-require": "off",
"no-underscore-dangle": "off",
"vars-on-top": "off",
"no-param-reassign": "off",
"one-var-declaration-per-line": "off",
"no-return-assign": "off",
"no-mixed-operators": "off",
"brace-style": "off",
"wrap-iife": ["error", "inside"]
}
}
15 changes: 15 additions & 0 deletions .eslintrc-es6
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"env": {
"es6": "off"
},

"rules": {
"prefer-arrow-callback": "off",
"prefer-template": "off",
"prefer-destructuring": "off",
"import/no-unresolved": "off",
"no-var": "off",
"object-shorthand": "off",
"prefer-rest-params": "off"
}
}
10 changes: 0 additions & 10 deletions .eslintrc-es6.yml

This file was deleted.

77 changes: 0 additions & 77 deletions .eslintrc.yml

This file was deleted.

0 comments on commit 3cde23a

Please sign in to comment.